From e7522c21ca0bd53b5cad0e3b7a640b18daecb708 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 17 Oct 2022 18:56:04 +0200 Subject: [PATCH] libc: Document fork() --- libs/libc/include/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/libc/include/unistd.h b/libs/libc/include/unistd.h index 80add4cb..deb3c3cc 100644 --- a/libs/libc/include/unistd.h +++ b/libs/libc/include/unistd.h @@ -22,7 +22,9 @@ extern "C" int execve(const char*, char* const[], char* const[]); /* Not implemented. */ int execvp(const char*, char* const[]); - /* Not implemented. */ + + /* Creates an identical copy (child) of the current process (parent). Returns 0 to the child, and the child's PID to + * the parent. */ pid_t fork(void); /* Terminates the program with the status code status. */