• pid_t getpid(void);
  • pid_t getppid(void);
  • pid_t fork(void);
  • pid_t waitpid(pid_t pid, int *wstatus, int options);
  • int execv(const char *path, char *const argv[]);


Function, Parameter(s), Return ValueDescription
fork()function name
Returns PID, 0, or -1The calling process receives the PID of the newly create process or -1 on failure. The child (the newly created process) receive 0. In case of failure set errno to either EAGAIN or ENOMEM
execv()function name
const char *pathString containing name of to executable (might inlcude path)
char *const argv[]Array of string pointer as arguments
Returns -1 on failureOn success this function does not return.