Files, Devices
Memory
Process Control
System
Timing
Networking
VM86
unimplemented, undocumented
2.6. kernel; falsely or ambiguously described syscalls
Files, Devices
fcntl uint uint ul - - : re fcntl.h , manipulate file descriptor -55-
P ioctl uint uint ul - - : re ioctl assignations , control device -54-
Access
P access c ch* int - - - : check user's permissions for a file -33-
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-
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-
lchown c ch* uid_t gid_t - - : change ownership of a file -16-
Files De-/Allocation
P close uint - - - - : close a file descriptor -6-
P dup2 uint uint - - - : replace 2nd w/ duplicate of 1st fd -63-
P dup uint - - - - : duplicate a file descriptor -41-
P link c ch* c ch* - - - : assign new name to a file -9-
P mknod c ch* int dev_t - - : create dir, special, ordinary file -14-
P open c ch* int int - - : open / create file or device -5-
P pipe ul* - - - - : create pipe -42-
P rename c ch* c ch* - - - : change the name or location of a file -38-
P unlink c ch* - - - - : del name & file it refers to -10-
Devices Opr
P mount ch* ch* ch* - - : mount and unmount filesystems -21-
umount2 K4(18):umount ch* int - - - : mount and unmount filesystems. -52-
umount K4(18):oldumount ch* - - - - : mount and unmount filesystems. -22-
swapoff c ch* - - - - : stop swapping to file/device -115-
swapon c ch* int - - - : start swapping to file/device -87-
FS Control
P chdir c ch* - - - - : change working directory -12-
P chroot c ch* - - - - : change root directory -61-
fchdir uint - - - - : change working directory -133-
flock uint uint - - - : apply/remove advisory file lock -143-
fstatfs uint s statfs* - - - : get file system statistics -100-
getcwd ch* ul - - - : get current working directory -183-
P mkdir c ch* int - - - : create directory -39-
P rmdir c ch* - - - - : delete (an empty) directory -40-
statfs c ch* s statfs* - - - : get file system statistics -99-
P symlink c ch* c ch* - - - : make new name for a file -83-
umask int - - - - : set file creation mask -60-
ustat dev_t s ustat* - - - : get file system statistics -62-
Read
P fstat uint s stat* - - - : get file status -108-
getdents uint void* uint - - : get directory entries -141-
llseek uint ul ul loff_t* uint : reposn r/w file offset -140-
P lseek uint off_t uint - - : reposition read/write file offset -19-
lstat ch* s stat* - - - : get file status -107-
pread uint ch* size_t loff_t - : read from file descr at given offset -180-
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 stat ch* s stat* - - - : get file status -106-
uselib c ch* - - - - : select shared library -86-
Write
fdatasync uint - - - - : synchronize in-core data with disk -148-
ftruncate uint ul - - - : truncate file to specified length -93-
fsync uint - - - - : sync complete in-core state with disk -118-
pwrite uint c ch* size_t loff_t - : write to file descriptor at offset -181-
truncate c ch* ul - - - : truncate file to specified length -92-
writev ul c s iovec* ul - - : read or write a vector -146-
P write uint c ch* size_t - - : write to file descriptor -4-
P utime ch* s utimbuf* - - -: chg access and/or modification times -30-
P sync - - - - - : commit buffer cache to disk -36-
R/W
sendfile int int off_t* size_t - : xfer data between file descriptors -187-
Memory
P brk ul - - - - : change data segment size -45-
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-
mprotect ul size_t ul - - : control allowable accesses to memory -125-
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-
Process Control
acct c ch* - - - - : switch process accounting on or off
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-
clone s pt_regs - - - - : create child process -120-
creat c ch* int - - - : create child process -8-
P execve s pt_regs - - - - : execute program -11-
P exit int - - - - : terminate the current process -1-
P fork s pt_regs - - - - : create child process -2-
getpriority int int - - - : get program scheduling priority -96-
idle - - - - - : make process 0 idle -112-
init_module c ch* s module* - - - : init loadable module entry -128-
ipc uint int int int void* : System V IPC system calls -117-
newselect +K4:select int fd_set* fd_set* fd_set* s timeval* : sync I/O multiplexing -142-
nice int - - - - : change process priority -34-
personality ul - - - - : set process execution domain -136-
prctl ul ul unsigned l ul : operations on a process -172-
ptrace l l l l - : process trace -26-
select +K4:oldselect s sel_arg_s* - - - - : synchronous I/O multiplexing -82-
setpriority int int int - - : set program scheduling priority -97-
vfork s pt_regs - - - - : create child process & block parent -190-
vhangup - - - - - : virtually hangup the current tty -111-
Access Rights
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-
getpgid pid_t - - - - : set/get process group -132-
P getpgrp - - - - - : set/get process group -65-
getpid - - - - - : get process identification -20-
P getppid - - - - - : get process identification -64-
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-
getsid pid_t - - - - : get session ID -147-
P getuid - - - - - : get user identity -24-
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-
P setpgid pid_t pid_t - - -: set/get process group -57-
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-
P setsid - - - - - : crea session, set process group ID -66-
P setuid uid_t - - - - : set user identity -23-
RT-Signals
Signals
P alarm uint - - - - : set alarm clock for delivery of signal -27-
P kill int int - - - : send signal to a process -37-
pause - - - - - : wait for signal -29-
poll s pollfd* uint l - - : wait for event on file descriptor -168-
sgetmask - - - - - -68-
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-
ssetmask - - - - -69-
ssetmask - - - -
wait4 ul* int options s rusage* - : wait for process termination, BSD -114-
waitpid pid_t uint* int - - : wait for process termination -7-
System
bdflush int l - - - : start/flsh/tune buf-dirty-flsh daemon -134-
ioperm ul ul int - - : set port input/output permissions -101-
iopl ul - - - - : change I/O privilege level -110-
modify_ldt int void* ul - - : get or set ldt -123-
quotactl int c ch* int caddr_t - : manipulate disk quotas -131-
P reboot int int int void* - : reboot or enable/disable Ctrl-Alt-Del -88-
Kernel
get_kernel_syms s kernel_sym* - - - - : retrieve kernel & module syms -130-
getpmsg
getrlimit uint s rlimit* - - - : get/set resource limits and usage -76-
getrusage int s rusage* - - - : get/set resource limits and usage -77-
setrlimit uint s rlimit* - - - : get/set resource limits and usage -75-
sysctl s __sysctl_args* - - - -
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-
ulimit : re getrlimit(2) -58-
P uname s new_utsname* - - - - : get name & info about current kernel -122-
Modules, Libraries
create_module c ch* size_t - - - : create module entry -127-
delete_module c ch* - - - - : delete module entry -129-
query_module c ch* int ch* size_t size_t* : for bits pertaining to modules -167-
Network
nfsservctl int void* void* - - : syscall i.f. to kernel nfs daemon -169-
setdomainname ch* int - - - : get/set domain name -121-
sethostname ch* int - - - : set host name -74-
Scheduler
Timing
adjtimex s timex* - - - - : tune kernel clock -124-
getitimer int s itimerval* - - - : get value of an interval timer -105-
gettimeofday s timeval* s timezone* - - - : get time -78-
P nanosleep s timespec* s timespec* - - - : pause execution for specified time -162-
pause - - - - - : wait for signal -29-
profil : execution time profile -98-
setitimer int s itimerval* s itimerval* - - : set an interval timer -104-
settimeofday s timeval* s timezone* - - - : set time -79-
stime int* - - - - : set time -25-
times s tms* - - - - : get process times -43-
time int* - - - - : get time in seconds -13-
Networking
socketcall int ul* - - - : socket system calls -102-
VM86
vm86old ul s vm86plus_s* - - - : enter virtual 8086 mode -113-
vm86 s vm86_s* - - - - : enter virtual 8086 mode -166-
Unimplemented or Undocumented
Kernel 2.4.2, 2.4.20 , 2.6.0
different names wrt previous 2.4 kernels and new, (almost) undocumented system calls; 'K6 ' 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+ :