Skip to content

Latest commit

 

History

History
98 lines (60 loc) · 1.76 KB

proc.md

File metadata and controls

98 lines (60 loc) · 1.76 KB

Process management

syscalls_procFork (syscalls_sys_fork)

Forks current process into two processes.


syscalls_procVirtualFork (syscalls_vforksvc)

Forks current process into two processes, but they initialy share the address space until exec() or exit() calls are called. Parent process execution is suspended until exec() or exit() call as well.


syscalls_procExec (syscalls_exec)

GETFROMSTACK(ustack, char *, path, 0);
GETFROMSTACK(ustack, char **, argv, 1);
GETFROMSTACK(ustack, char **, envp, 2);

syscalls_procSpawnSyspage

GETFROMSTACK(ustack, char *, map, 0);
GETFROMSTACK(ustack, char *, name, 1);
GETFROMSTACK(ustack, char **, argv, 2);

syscalls_procSpawn (syscalls_sys_spawn)

GETFROMSTACK(ustack, char *, path, 0);
GETFROMSTACK(ustack, char **, argv, 1);
GETFROMSTACK(ustack, char **, envp, 2);

syscalls_procExit (syscalls_sys_exit)

GETFROMSTACK(ustack, int, code, 0);

syscalls_procWait (syscalls_sys_waitpid)

GETFROMSTACK(ustack, int, pid, 0);
GETFROMSTACK(ustack, int *, stat, 1);
GETFROMSTACK(ustack, int, options, 2);

syscalls_procGetID (syscalls_getpid)

Returns current process identifier


syscalls_procGetParentID (syscalls_getppid)

Returns parent process identifier


syscalls_procSetGroupID (syscalls_sys_setpgid)

GETFROMSTACK(ustack, pid_t, pid, 0);
GETFROMSTACK(ustack, pid_t, pgid, 1);

DEPRECATED syscalls_sys_setpgrp => syscalls_procSetGroupID


syscalls_procGetGroupID (syscalls_sys_getpgid)


DEPRECATED syscalls_sys_getpgrp => syscalls_procGetGroupID


syscalls_procSetSession (syscalls_sys_setsid)