Skip to content

Latest commit

 

History

History
202 lines (139 loc) · 5.59 KB

process.asc

File metadata and controls

202 lines (139 loc) · 5.59 KB

process

abort

void abort()
Defines: write rt_sigaction memcpy getpid kill
../src/process/abort.c l.3 manpage: abort

atexit

int atexit( functionp* func )
Defines: globals

register functions, which are callen on exit in reverse order
 the switch mini_atexit takes a optional number,
 which defines the maximum numbers of functions to be registered.
 (defaults to 8)
clone

int clone( int clone_flags, unsigned long stack, void *parent_tid, void *child_tid)
../include/syscall_stubs.h l.225

clone_t

int clone_t(int flags)
../src/process/clone.c l.7

execl

int execl(const char pathname, const char arg0,…​ )
Defines: execve environ
../src/exec/execl.c l.6 manpage: execl

execv

int execv(const char pathname, char *const argv[])
*Defines:
environ execve
execute a file Size: ~300B ../src/exec/_execv.c l.4 manpage: execv

execve

int execve( const char filename, char const* argv, char* const* envp)
execute program Size: ~53B ../include/syscall_stubs.h l.134 manpage: execve

execveat

int execveat( int dirfd, const char filename, char const* argv, char* const* envp, int flags)
execute program relative to a directory file descriptor Size: ~158B ../include/syscall_stubs.h l.173

execvp

int execvp(const char file, char *const argv[])
*Defines:
execve access environ
execute a file Size: ~556B ../src/exec/_execvp.c l.4 manpage: execvp

execvpe

int execvpe(const char file, char *const argv[], char *const envp[])
*Defines:
environ access execve
execute a file

When invoked with a filename, starting with "." or "/",
 interprets this as absolute path. (calls execve with the pathname)
 Looks for file in the PATH environment, othwerise.

Size: ~556B ../src/exec/execvp.c l.11

fexecve

int fexecve(int fd, char const argv[], char *const envp[])
*execute a file
Size: ~151B ../include/fexecve.h l.3 manpage: fexecve

fexecveat

int fexecveat(int fd, char *const argv[], char *const envp[])
Size: ~151B ../include/fexecveat.h l.3

fork

int DEF_syscall(fork,0)
create a new process ../include/syscall_stubs.h l.138 manpage: fork

getenv

char* getenv(const char* name)
Defines: environ
get value of an environment variable Size: ~106B ../src/system/getenv.c l.5 manpage: getenv

getpgrp

int DEF_syscall(getpgrp,0)
get the process group ID of the calling process ../include/syscall_stubs.h l.207 manpage: getpgrp

getpid

int DEF_syscall(getpid,0 )
get the process ID ../include/syscall_stubs.h l.159 manpage: getpid

getppid

int DEF_syscall(getppid,0)
get the parent process ID ../include/syscall_stubs.h l.204 manpage: getppid

setpgid

int setpgid( pid_t pid, pid_t pgid)
set process group ID for job control Size: ~63B ../include/syscall_stubs.h l.205 manpage: setpgid

setsid

int DEF_syscall(setsid,0 )
create session and set process group ID ../include/syscall_stubs.h l.160 manpage: setsid

system

int system( const char* command )
Defines: environ wait4 write execve vfork
issue a command Size: ~326B ../src/exec/system.c l.4 manpage: system

vexec

int vexec( const char* path, char* const* argv, char* const* envp )
Defines: wait4 seterrno vfork execve exit

execute a path, wait until the executed file exits.
 Deviating of system() an absolute pathname is taken.
 sets errno on error.
vexec_q

int vexec_q( const char* path, char* const* argv, char* const* envp )
Defines: vfork execve exit wait4 seterrno

execute a path, wait until the executed file exits,
 do not write any output of the process. (close stdout)
 Deviating of system() an absolute pathname is taken.
vfork

int DEF_syscall(vfork,0)
create a child process and block parent ../include/syscall_stubs.h l.139 manpage: vfork