Section2
From Linux Man Pages
System calls (functions provided by the kernel)
Contents |
_
_exit, _Exit - terminate the current process
2:_Exit
2:_llseek
2:_newselect
2:_sysctl
A
accept - accept a connection on a socket
access - check user's permissions for a file
acct - switch process accounting on or off
adjtimex - tune kernel clock
2:afs_syscall
alarm - set an alarm clock for delivery of a signal
alloc_hugepages, free_hugepages - allocate or free huge pages
arch_prctl - Set architecture specific thread state.
B
bdflush - start, flush, or tune buffer-dirty-flush daemon
bind - bind a name to a socket
2:break
brk, sbrk - change data segment size
C
cacheflush - flush contents of instruction and/or data cache
capget, capset - set/get process capabilities
2:capset
chdir, fchdir - change working directory
chmod, fchmod - change permissions of a file
chown, fchown, lchown - change ownership of a file
chroot - change root directory
clone - create a child process
close - close a file descriptor
connect - initiate a connection on a socket
2:creat
create_module - create a loadable module entry
D
delete_module - delete a loadable module entry
dup, dup2 - duplicate a file descriptor
2:dup2
E
epoll_create - open an epoll file descriptor
epoll_ctl - control interface for an epoll descriptor
epoll_wait - wait for an I/O event on an epoll file descriptor
execve - execute program
exit
F
2:fchdir
2:fchmod
2:fchown
fcntl - manipulate file descriptor
fdatasync - synchronize a file's in-core data with that on disk
flock - apply or remove an advisory lock on an open file
fork - create a child process
2:free_hugepages
2:fstat
2:fstatfs
2:fstatvfs
fsync, fdatasync - synchronize a file's complete in-core state with that on disk
2:ftruncate
futex - Fast Userspace Locking system call
G
get_kernel_syms - retrieve exported kernel and module symbols
get_thread_area - Get a Thread Local Storage (TLS) area
getcontext, setcontext - get or set the user context
getdents - get directory entries
getdomainname, setdomainname - get/set domain name
getdtablesize - get descriptor table size
2:getegid
2:geteuid
getgid, getegid - get group identity
getgroups, setgroups - get/set list of supplementary group IDs
gethostid, sethostid - get or set the unique identifier of the current host
gethostname, sethostname - get/set host name
getitimer, setitimer - get or set value of an interval timer
getpagesize - get memory page size
getpeername - get name of connected peer socket
2:getpgid
2:getpgrp
getpid, getppid - get process identification
2:getpmsg
2:getppid
getpriority, setpriority - get/set program scheduling priority
2:getresgid
getresuid, getresgid - get real, effective and saved user or group ID
getrlimit, getrusage, setrlimit - get/set resource limits and usage
2:getrusage
getsid - get session ID
getsockname - get socket name
getsockopt, setsockopt - get and set options on sockets
gettid - get thread identification
gettimeofday, settimeofday - get / set time
getuid, geteuid - get user identity
2:gtty
I
idle - make process 0 idle
2:inb
2:inb_p
init_module - initialize a loadable module entry
2:inl
2:inl_p
2:insb
2:insl
2:insw
intro - Introduction to system calls
2:inw
2:inw_p
io_cancel - Cancel an outstanding asynchronous I/O operation
io_destroy - Destroy an asynchronous I/O context
io_getevents - Read asynchronous I/O events from the completion queue
io_setup - Create an asynchronous I/O context
io_submit - Submit asynchronous I/O blocks for processing
ioctl - control device
ioctl_list - list of ioctl calls in Linux/i386 kernel
ioperm - set port input/output permissions
iopl - change I/O privilege level
ipc - System V IPC system calls
K
kill - send signal to a process
killpg - send signal to a process group
L
2:lchown
link - make a new name for a file
listen - listen for connections on a socket
_llseek - reposition read/write file offset
2:lock
lookup_dcookie - return a directory entry's path
lseek - reposition read/write file offset
2:lstat
M
madvise - give advice about use of memory
mincore - get information on whether pages are in core
mkdir - create a directory
mknod - create a special or ordinary file
mlock - disable paging for some parts of memory
mlockall - disable paging for calling process
mmap, munmap - map or unmap files or devices into memory
mmap2 - map files or devices into memory
modify_ldt - get or set ldt
mount, umount - mount and unmount filesystems.
mprotect - control allowable accesses to a region of memory
2:mpx
mremap - re-map a virtual memory address
msgctl - message control operations
msgget - get a message queue identifier
msgop - message operations
2:msgrcv
2:msgsnd
msync - synchronize a file with a memory map
munlock - reenable paging for some parts of memory
munlockall - reenable paging for calling process
2:munmap
N
nanosleep - pause execution for a specified time
nfsservctl - syscall interface to kernel nfs daemon
nice - change process priority
O
oldfstat, oldlstat, oldstat, oldolduname, olduname - obsolete system calls
2:oldfstat
2:oldlstat
2:oldolduname
2:oldstat
2:olduname
open, creat - open and possibly create a file or device
outb, outw, outl, outsb, outsw, outsl - port output
inb, inw, inl, insb, insw, insl - port input
outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - paused I/O
2:outb_p
2:outl
2:outl_p
2:outsb
2:outsl
2:outsw
2:outw
2:outw_p
P
pause - wait for signal
2:pciconfig_iobase
pciconfig_read, pciconfig_write, pciconfig_iobase - pci device information handling
2:pciconfig_write
personality - set the process execution domain
pipe - create pipe
pivot_root - change the root file system
poll - wait for some event on a file descriptor
posix_fadvise - predeclare an access pattern for file data
prctl - operations on a process
pread, pwrite - read from or write to a file descriptor at a given offset
2:prof
2:pselect
ptrace - process trace
2:putpmsg
2:pwrite
query_module - query the kernel for various bits pertaining to modules.
quotactl - manipulate disk quotas
R
read - read from a file descriptor
readahead - Read in advance one or more pages of a file within a page cache
readdir - read directory entry
readlink - read value of a symbolic link
readv, writev - read or write data into multiple buffers
reboot - reboot or enable/disable Ctrl-Alt-Del
recv, recvfrom, recvmsg - receive a message from a socket
2:recvfrom
2:recvmsg
rename - change the name or location of a file
rmdir - delete a directory
S
2:sbrk
sched_get_priority_max, sched_get_priority_min - get static priority range
2:sched_get_priority_min
2:sched_getaffinity
2:sched_getparam
2:sched_getscheduler
sched_rr_get_interval - get the SCHED_RR interval for the named process
sched_setaffinity, sched_getaffinity - set and get a process's CPU affinity mask
sched_setparam, sched_getparam - set and get scheduling parameters
sched_setscheduler, sched_getscheduler - set and get scheduling algorithm/parameters
sched_yield - yield the processor
2:security
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - synchronous I/O multiplexing
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - synchronous I/O multiplexing
semctl - semaphore control operations
semget - get a semaphore set identifier
semop, semtimedop - semaphore operations
2:semtimedop
send, sendto, sendmsg - send a message from a socket
sendfile - transfer data between file descriptors
2:sendmsg
2:sendto
set_thread_area - Set a Thread Local Storage (TLS) area
2:setcontext
2:setdomainname
2:setegid
seteuid, setegid - set effective user or group ID
setfsgid - set group identity used for file system checks
setfsuid - set user identity used for file system checks
setgid - set group identity
2:setgroups
2:sethostid
2:sethostname
2:setitimer
setpgid, getpgid, setpgrp, getpgrp - set/get process group
2:setpgrp
2:setpriority
2:setregid
2:setresgid
setresuid, setresgid - set real, effective and saved user or group ID
setreuid, setregid - set real and/or effective user or group ID
2:setrlimit
setsid - creates a session and sets the process group ID
2:setsockopt
2:settimeofday
setuid - set user identity
setup - setup devices and file systems, mount root file system
2:sgetmask
2:shmat
shmctl - shared memory control
2:shmdt
shmget - allocates a shared memory segment
shmop - shared memory operations
shutdown - shut down part of a full-duplex connection
sigaction, sigprocmask, sigpending, sigsuspend - POSIX signal handling functions.
sigaltstack - set and/or get signal stack context
sigblock, siggetmask, sigsetmask, sigmask - manipulate the signal mask
2:siggetmask
2:sigmask
signal - ANSI C signal handling
sigpause - atomically release blocked signals and wait for interrupt
2:sigpending
2:sigprocmask
sigqueue - queue a signal and data to a process
sigreturn - return from signal handler and cleanup stack frame
2:sigsetmask
2:sigsuspend
2:sigtimedwait
sigvec - BSD software signal facilities
sigwaitinfo, sigtimedwait - synchronously wait for queued signals
socket - create an endpoint for communication
socketcall - socket system calls
socketpair - create a pair of connected sockets
2:ssetmask
stat, fstat, lstat - get file status
statfs, fstatfs - get file system statistics
statvfs, fstatvfs - get file system statistics
stime - set time
2:stty
2:swapoff
swapon, swapoff - start/stop swapping to file/device
symlink - make a new name for a file
sync - commit buffer cache to disk.
2:syscall
none - list of all system calls
sysctl - read/write system parameters
sysfs - get file system type information
sysinfo - returns information on overall system statistics
syslog, klogctl - read and/or clear kernel message ring buffer; set console_loglevel
T
time - get time in seconds
times - get process times
tkill - send a signal to a single process
truncate, ftruncate - truncate a file to a specified length
U
umask - set file creation mask
2:umount
2:umount2
uname - get name and information about current kernel
exit_group, madvise1, rt_sigaction, rt_sigpending, rt_sigprocmask, rt_sigqueueinfo, rt_sigreturn, rt_sigsuspend, rt_sigtimedwait, ugetrlimit - undocumented system calls
afs_syscall, break, ftime, getpmsg, gtty, lock, mpx, prof, profil, putpmsg, security, stty, ulimit - unimplemented system calls
unlink - delete a name and possibly the file it refers to
uselib - select shared library
ustat - get file system statistics
utime, utimes - change access and/or modification times of an inode
2:utimes
V
vfork - create a child process and block parent
vhangup - virtually hangup the current tty
vm86old, vm86 - enter virtual 8086 mode
W
wait, waitpid - wait for process termination
2:wait3
wait3, wait4 - wait for process termination, BSD style
2:waitpid
write - write to a file descriptor
2:writev