9.12 fork

#define FORK_VFORK 0x1

pid_t fork(int flags, int cluster);

This syscall creates a new process based on the parent process. The created process will only have 1 thread copying the caller one, and will be placed on the passed thread cluster.

flags is a bitmap that can be used to customize the forking operation, the values that can be passed are:

This syscall returns 0 on success for the child, and the new child PID to the parent, in failure, the parent gets -1 with the following errno: