Linux Basics: Difference between revisions
→List of System Calls
Line 972:
! Type !! System Call !! Description !! Call Syntax
|-
|Rowspan='
|-
|exec || Also used to create processes; but replaces the address space, text segment, data segment etc. of the current process with the new process.<br/> Only the new process exists after exec().<br/> The process which made the system call, wouldn't exist.
Line 981:
|-
|open || open and possibly create a file
|-
|openat || open and possibly create a file
|-
|close || close a file descriptor
Line 1,050 ⟶ 1,052:
|syslog || read and/or clear kernel message ring buffer; set console_loglevel
|-
|ptrace || process trace
|-
getuid get user identity▼
|-
utime change file last access and modification times▼
ustat get filesystem statistics▼
|-
statfs get filesystem statistics▼
sysfs get filesystem type information▼
|-
getpriority get/set program scheduling priority▼
mlock lock and unlock memory▼
|-
sysctl read/write system parameters▼
prctl operations on a process▼
|-
chroot change root directory▼
sync commit filesystem caches to disk▼
|-
mount mount filesystem▼
umount unmount filesystem▼
|-
swapon start swapping to file/device▼
swapoff stop swapping to file/device▼
|-
reboot reboot or enable/disable Ctrl-Alt-Del▼
sethostname set hostname▼
|-
gethostname get hostname▼
ioperm set port input/output permissions▼
|-
init_module load a kernel module▼
delete_module unload a kernel module▼
|-
|-
|-
|-
|-
|-
|-
|-
|-
|-
|-
|-
|io_setup || create an asynchronous I/O context
|-
|ppoll || wait for some event on a file descriptor
|-
|tee || duplicating pipe content
|-
|getcpu || determine CPU and NUMA node on which the calling thread is running
|}
|