[intro]
[a:index by names]
[s:index by topic]
[#:index by numbers]
[1..64]
[65..128]
[129..192]
[193..256]
[257..]
[ref]
[struc]
[fcntl]
[ioctl]
[pguide]
[man2]
[next]
[back]
[linux]
[main]
[bot]
[top]
Syscalls pages archive (110K->1M),
updated (2.3.0, ver. 1.66) man 2 pages (170K->1,2M)
Common reference which will not be repeated throughout this text:
"P ", according to asmutils-0.14 there are 46 system calls
the names of which are common to the LINUX (2.2/4), FREEBSD, NETBSD, OPENBSD,
BEOS and ATHEOS operating systems, marked "P" to denoting their (sort of) "portability".
"Obsolete ", mentioned but not linked to a corresponding table.
"Not Implemented ", linked for possible future specification and marked in a different colour.
"K4 ", <name> added where differently named w. kernel 2.4+ versions.
i386-PC-Linux System Calls
P access c ch* int - - - : check user's permissions for a file -33-
acct c ch* - - - - : switch process accounting on or off
adjtimex s timex* - - - - : tune kernel clock -124-
afs_syscall
P alarm uint - - - - : set alarm clock for delivery of signal -27-
bdflush int l - - - : start/flsh/tune buf-dirty-flsh daem -134-
break
P brk ul - - - - : change data segment size -45-
capget cap_user_header_t cap_user_data_t - - - : get process capabilities -184-
capset cap_user_header_t c cap_user_data_t - - - : set process capabilities -185-
P chdir c ch* - - - - : change working directory -12-
P chmod c ch* mode_t - - - : change permissions of a file -15-
chown c ch* uid_t gid_t - - : change ownership of a file -182-
P chroot c ch* - - - - : change root directory -61-
clone s pt_regs - - - - : create child process -120-
P close uint - - - - : close a file descriptor -6-
creat c ch* int - - - : create child process -8-
create_module c ch* size_t - - - : create module entry -127-
delete_module c ch* - - - - : delete module entry -129-
P dup2 uint uint - - - : replace 2nd w/ duplicate of 1st fd -63-
P dup uint - - - - : duplicate a file descriptor -41-
P execve s pt_regs - - - - : execute program -11-
P exit int - - - - : terminate the current process -1-
fchdir uint - - - - : change working directory -133-
fchmod int fd uint mode_t - - - : change permissions of a file -94-
fchown int fd uint uid_t gid_t - - : change ownership of a file -95-
fcntl uint uint ul - - : re fcntl.h , manipulate file descriptor -55-
fdatasync uint - - - - : synchronize in-core data with disk -148-
flock uint uint - - - : apply/remove advisory file lock -143-
P fork s pt_regs - - - - : create child process -2-
fstatfs uint s statfs* - - - : get file system statistics -100-
P fstat uint s stat* - - - : get file status -108-
fsync uint - - - - : sync complete in-core state with disk -118-
ftime : (re time) return date and time -35-
ftruncate uint ul - - - : truncate file to specified length -93-
getcwd ch* ul - - - : get current working directory -183-
getdents uint void* uint - - : get directory entries -141-
getegid - - - - - : get group identity -50-
geteuid - - - - - : get user identity -49-
P getgid - - - - - : get group identity -47-
P getgroups int gid_t* - - - : get list of supplementary group IDs -80-
getitimer int s itimerval* - - - : get value of an interval timer -105-
get_kernel_syms s kernel_sym* - - - - : retrieve kernel & module syms -130-
getpgid pid_t - - - - : set/get process group -132-
P getpgrp - - - - - : set/get process group -65-
getpid - - - - - : get process identification -20-
getpmsg
P getppid - - - - - : get process identification -64-
getpriority int int - - - : get program scheduling priority -96-
getresgid gid_t* gid_t* gid_t* - - : get real/effective/saved group ID -171-
getresuid uid_t* uid_t* uid_t* - - : get real/effective/saved user ID -165-
getrlimit uint s rlimit* - - - : get/set resource limits and usage -76-
getrusage int s rusage* - - - : get/set resource limits and usage -77-
getsid pid_t - - - - : get session ID -147-
gettimeofday s timeval* s timezone* - - - : get time -78-
P getuid - - - - - : get user identity -24-
gtty
idle - - - - - : make process 0 idle -112-
init_module c ch* s module* - - - : init loadable module entry -128-
P ioctl uint uint ul - - : re ioctl assignations , control device -54-
ioperm ul ul int - - : set port input/output permissions -101-
iopl ul - - - - : change I/O privilege level -110-
ipc uint int int int void* : System V IPC system calls -117-
P kill int int - - - : send signal to a process -37-
lchown c ch* uid_t gid_t - - : change ownership of a file -16-
P link c ch* c ch* - - - : assign new name to a file -9-
llseek uint ul ul loff_t* uint : reposn r/w file offset -140-
lock
P lseek uint off_t uint - - : reposition read/write file offset -19-
lstat ch* s stat* - - - : get file status -107-
P mkdir c ch* int - - - : create directory -39-
P mknod c ch* int dev_t - - : create dir, special, ordinary file -14-
mlockall int - - - - : disable paging for calling process -152-
mlock ul size_t - - - : disable paging for parts of memory -150-
mmap s mmap_arg_s* - - - - : map files or devices into memory -90-
modify_ldt int void* ul - - : get or set ldt -123-
P mount ch* ch* ch* - - : mount and unmount filesystems -21-
mprotect ul size_t ul - - : control allowable accesses to memory -125-
mpx
mremap ul ul ul ul - : re-map a virtual memory address -163-
msync ul size_t int - - : synchronize file with a memory map -144-
munlockall - - - - - : reenable paging for calling process -153-
munlock ul size_t - - - : reenable paging for parts of memory -151-
munmap ul size_t - - - : unmap files or devices into memory -91-
P nanosleep s timespec* s timespec* - - - : pause execution for specified time -162-
newselect +K4:select int fd_set* fd_set* fd_set* s timeval* : sync I/O multiplexing -142-
nfsservctl int void* void* - - : syscall i.f. to kernel nfs daemon -169-
nice int - - - - : change process priority -34-
oldfstat
oldlstat
oldolduname s oldold_utsname* - - - -
oldstat
olduname s old_utsname* - - - -
P open c ch* int int - - : open / create file or device -5-
pause - - - - - : wait for signal -29-
personality ul - - - - : set process execution domain -136-
P pipe ul* - - - - : create pipe -42-
poll s pollfd* uint l - - : wait for event on file descriptor -168-
prctl ul ul unsigned l ul : operations on a process -172-
pread uint ch* size_t loff_t - : read from file descr at given offset -180-
profil : execution time profile -98-
prof
ptrace l l l l - : process trace -26-
putpmsg
pwrite uint c ch* size_t loff_t - : write to file descriptor at offset -181-
query_module c ch* int ch* size_t size_t* : for bits pertaining to modules -167-
quotactl int c ch* int caddr_t - : manipulate disk quotas -131-
readdir uint void* uint - - : read directory entry -89-
P readlink c ch* ch* int - - : read value of a symbolic link -85-
P read uint ch* size_t - - : read from file descriptor -3-
readv ul c s iovec* ul - - : read or write a vector -145-
P reboot int int int void* - : reboot or enable/disable Ctrl-Alt-Del -88-
P rename c ch* c ch* - - - : change the name or location of a file -38-
P rmdir c ch* - - - - : delete (an empty) directory -40-
rt_sigaction int c s sigaction*, s sigaction*, size_t - : setup rt sighnd (RTL)
rt_sigpending sigset_t* size_t - - - :
rt_sigprocmask int sigset_t* sigset_t* size_t - :
rt_sigqueueinfo int int siginfo_t* - - :
rt_sigreturn ul - - - - :
rt_sigsuspend sigset_t* size_t - - - :
rt_sigtimedwait c sigset_t* siginfo_t* c s timespec* size_t - :
sched_getparam pid_t s sched_param* - - - : get scheduling parameters -155-
sched_get_priority_max - - - - : get static priority rng -159-
sched_get_priority_min - - - - : get static priority rng -160-
sched_getscheduler pid_t - - - - : get scheduling algo/param -157-
sched_rr_get_interval pid_t s timespec* - - - : get SCHED_RR interval -161-
sched_setparam pid_t s sched_param* - - - : set scheduling parameters -154-
sched_setscheduler pid_t int s sched_param* - - : set scheduling algo/param -156-
sched_yield - - - - - : yield the processor -158-
select +K4:oldselect s sel_arg_s* - - - - : synchronous I/O multiplexing -82-
sendfile int int off_t* size_t - : xfer data between file descriptors -187-
setdomainname ch* int - - - : get/set domain name -121-
setfsgid gid_t - - - - : set group id for file system checks -139-
setfsuid uid_t - - - - : set user id for file system checks -138-
P setgid gid_t - - - - : set group identity -46-
setgroups int gid_t* - - - : set list of supplementary group IDs -81-
sethostname ch* int - - - : set host name -74-
setitimer int s itimerval* s itimerval* - - : set an interval timer -104-
P setpgid pid_t pid_t - - -: set/get process group -57-
setpriority int int int - - : set program scheduling priority -97-
setregid gid_t gid_t - - - : set real and / or effective group ID -71-
setresgid gid_t gid_t gid_t - - : set real,effective,saved group ID -170-
setresuid uid_t uid_t uid_t - - : set real, eff. and saved user ID -164-
setreuid uid_t uid_t - - - : set real and / or effective user ID -70-
setrlimit uint s rlimit* - - - : get/set resource limits and usage -75-
P setsid - - - - - : crea session, set process group ID -66-
settimeofday s timeval* s timezone* - - - : set time -79-
P setuid uid_t - - - - : set user identity -23-
sgetmask - - - - -
P sigaction int c s olds old_sigaction* - - : POSIX signal handling functions -67-
sigaltstack c stack_t* stack_t* ul ss - -
P signal int __sighandler_t - - - : ANSI C signal handling -48-
sigpending old_sigset_t* - - - - : POSIX signal handling functions -73-
sigprocmask int old_sigset_t* old_sigset_t* - - : POSIX signal handling functions -126-
sigreturn ul - - - - : ret from sig hnd, cleanup stack -119-
sigsuspend int int old_sigset_t - - : POSIX signal handling functions. -72-
socketcall int ul* - - - : socket system calls -102-
ssetmask - - - -
statfs c ch* s statfs* - - - : get file system statistics -99-
P stat ch* s stat* - - - : get file status -106-
stime int* - - - - : set time -25-
stty
swapoff c ch* - - - - : stop swapping to file/device -115-
swapon c ch* int - - - : start swapping to file/device -87-
P symlink c ch* c ch* - - - : make new name for a file -83-
P sync - - - - - : commit buffer cache to disk -36-
sysctl s __sysctl_args* - - - - : -149-
sysfs int ul ul - - : get file system type information -135-
sysinfo s sysinfo* - - - - : info on overall system statistics -116-
syslog int ch* int - - : read/clr kernel msg buffer; loglevel -103-
times s tms* - - - - : get process times -43-
time int* - - - - : get time in seconds -13-
truncate c ch* ul - - - : truncate file to specified length -92-
ulimit : re getrlimit(2) -58-
umask int - - - - : set file creation mask -60-
umount2 K4(18):umount ch* int - - - : mount and unmount filesystems. -52-
umount K4(18):oldumount ch* - - - - : mount and unmount filesystems. -22-
P uname s new_utsname* - - - - : get name & info about current kernel -122-
P unlink c ch* - - - - : del name & file it refers to -10-
uselib c ch* - - - - : select shared library -86-
ustat dev_t s ustat* - - - : get file system statistics -62-
P utime ch* s utimbuf* - - -: chg access and/or modification times -30-
vfork s pt_regs - - - - : create child process & block parent -190-
vhangup - - - - - : virtually hangup the current tty -111-
vm86old ul s vm86plus_s* - - - : enter virtual 8086 mode -113-
vm86 s vm86_s* - - - - : enter virtual 8086 mode -166-
wait4 ul* int options s rusage* - : wait for process termination, BSD -114-
waitpid pid_t uint* int - - : wait for process termination -7-
writev ul c s iovec* ul - - : read or write a vector -146-
P write uint c ch* size_t - - : write to file descriptor -4-
Kernel 2.4.2, 2.4.20 , 2.6.0
different names wrt previous 2.4 kernels and new, (almost) undocumented system calls; 'K26 ' Kernel v2.6.:
[main]
[back]
[intro]
[bot]
[top]
[a:index]
[#:index]
[1..64]
[65..128]
[129..192]
[193..256]
[257..]
[ref]
[struc]
[ioctl]
[pguide]
H.-Peter Recktenwald, Berlin , 18.Jun.2002 = .hpr.l1 =
updt:8.Mar.04+ :