CINXE.COM

syscalls

<html> <head> <title>syscalls</title> <META NAME="KEYWORDS" CONTENT="syscalls"> </head> <body BGCOLOR="#ffffff" LINK="#0000ff" VLINK="#0000ff" ALINK="#0000ff" TEXT="#000000"> <center> <h1><b>syscalls</b></h1></center> <PRE> <STRONG><A HREF="/man2/SYSCALLS">SYSCALLS(2)</A></STRONG> Linux Programmer's Manual <STRONG><A HREF="/man2/SYSCALLS">SYSCALLS(2)</A></STRONG> NAME syscalls - Linux system calls SYNOPSIS Linux system calls. DESCRIPTION The system call is the fundamental interface between an application and the Linux kernel. System calls and library wrapper functions System calls are generally not invoked directly, but rather via wrapper functions in glibc (or perhaps some other library). For details of di- rect invocation of a system call, see <STRONG><A HREF="/man2/intro">intro(2)</A></STRONG>. Often, but not always, the name of the wrapper function is the same as the name of the system call that it invokes. For example, glibc contains a function chdir() which invokes the underlying "chdir" system call. Often the glibc wrapper function is quite thin, doing little work other than copying arguments to the right registers before invoking the sys- tem call, and then setting errno appropriately after the system call has returned. (These are the same steps that are performed by <STRONG><A HREF="/man2/syscall">syscall(2)</A></STRONG>, which can be used to invoke system calls for which no wrap- per function is provided.) Note: system calls indicate a failure by returning a negative error number to the caller on architectures with- out a separate error register/flag, as noted in <STRONG><A HREF="/man2/syscall">syscall(2)</A></STRONG>; when this happens, the wrapper function negates the returned error number (to make it positive), copies it to errno, and returns -1 to the caller of the wrapper. Sometimes, however, the wrapper function does some extra work before invoking the system call. For example, nowadays there are (for reasons described below) two related system calls, <STRONG><A HREF="/man2/truncate">truncate(2)</A></STRONG> and trun- <STRONG><A HREF="/man2/cate64">cate64(2)</A></STRONG>, and the glibc truncate() wrapper function checks which of those system calls are provided by the kernel and determines which should be employed. System call list Below is a list of the Linux system calls. In the list, the Kernel column indicates the kernel version for those system calls that were new in Linux 2.2, or have appeared since that kernel version. Note the following points: * Where no kernel version is indicated, the system call appeared in kernel 1.0 or earlier. * Where a system call is marked "1.2" this means the system call prob- ably appeared in a 1.1.x kernel version, and first appeared in a stable kernel with 1.2. (Development of the 1.2 kernel was initi- ated from a branch of kernel 1.0.6 via the 1.1.x unstable kernel se- ries.) * Where a system call is marked "2.0" this means the system call prob- ably appeared in a 1.3.x kernel version, and first appeared in a stable kernel with 2.0. (Development of the 2.0 kernel was initi- ated from a branch of kernel 1.2.x, somewhere around 1.2.10, via the 1.3.x unstable kernel series.) * Where a system call is marked "2.2" this means the system call prob- ably appeared in a 2.1.x kernel version, and first appeared in a stable kernel with 2.2.0. (Development of the 2.2 kernel was initi- ated from a branch of kernel 2.0.21 via the 2.1.x unstable kernel series.) * Where a system call is marked "2.4" this means the system call prob- ably appeared in a 2.3.x kernel version, and first appeared in a stable kernel with 2.4.0. (Development of the 2.4 kernel was initi- ated from a branch of kernel 2.2.8 via the 2.3.x unstable kernel se- ries.) * Where a system call is marked "2.6" this means the system call prob- ably appeared in a 2.5.x kernel version, and first appeared in a stable kernel with 2.6.0. (Development of kernel 2.6 was initiated from a branch of kernel 2.4.15 via the 2.5.x unstable kernel se- ries.) * Starting with kernel 2.6.0, the development model changed, and new system calls may appear in each 2.6.x release. In this case, the exact version number where the system call appeared is shown. This convention continues with the 3.x kernel series, which followed on from kernel 2.6.39, and the 4.x kernel series, which followed on from kernel 3.19. * In some cases, a system call was added to a stable kernel series af- ter it branched from the previous stable kernel series, and then backported into the earlier stable kernel series. For example some system calls that appeared in 2.6.x were also backported into a 2.4.x release after 2.4.15. When this is so, the version where the system call appeared in both of the major kernel series is listed. The list of system calls that are available as at kernel 4.19 (or in a few cases only on older kernels) is as follows: System call Kernel Notes ----------------------------------------------------------------------- <STRONG><A HREF="/man2/_llseek">_llseek(2)</A></STRONG> 1.2 <STRONG><A HREF="/man2/_newselect">_newselect(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/_sysctl">_sysctl(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/accept">accept(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/accept4">accept4(2)</A></STRONG> 2.6.28 <STRONG><A HREF="/man2/access">access(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/acct">acct(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/add_key">add_key(2)</A></STRONG> 2.6.10 <STRONG><A HREF="/man2/adjtimex">adjtimex(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/alarm">alarm(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/alloc_hugepages">alloc_hugepages(2)</A></STRONG> 2.5.36 Removed in 2.5.44 <STRONG><A HREF="/man2/arc_gettls">arc_gettls(2)</A></STRONG> 3.9 ARC only <STRONG><A HREF="/man2/arc_settls">arc_settls(2)</A></STRONG> 3.9 ARC only <STRONG><A HREF="/man2/arc_usr_cmpxchg">arc_usr_cmpxchg(2)</A></STRONG> 4.9 ARC only <STRONG><A HREF="/man2/arch_prctl">arch_prctl(2)</A></STRONG> 2.6 x86_64, x86 since 4.12 <STRONG><A HREF="/man2/atomic_barrier">atomic_barrier(2)</A></STRONG> 2.6.34 m68k only <STRONG><A HREF="/man2/atomic_cmpxchg_32">atomic_cmpxchg_32(2)</A></STRONG> 2.6.34 m68k only <STRONG><A HREF="/man2/bdflush">bdflush(2)</A></STRONG> 1.2 Deprecated (does nothing) since 2.6 <STRONG><A HREF="/man2/bfin_spinlock">bfin_spinlock(2)</A></STRONG> 2.6.22 Blackfin only (port removed in Linux 4.17) <STRONG><A HREF="/man2/bind">bind(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/bpf">bpf(2)</A></STRONG> 3.18 <STRONG><A HREF="/man2/brk">brk(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/breakpoint">breakpoint(2)</A></STRONG> 2.2 ARM OABI only, defined with __ARM_NR prefix <STRONG><A HREF="/man2/cacheflush">cacheflush(2)</A></STRONG> 1.2 Not on x86 <STRONG><A HREF="/man2/capget">capget(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/capset">capset(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/chdir">chdir(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/chmod">chmod(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/chown">chown(2)</A></STRONG> 2.2 See <STRONG><A HREF="/man2/chown">chown(2)</A></STRONG> for version details <STRONG><A HREF="/man2/chown32">chown32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/chroot">chroot(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/clock_adjtime">clock_adjtime(2)</A></STRONG> 2.6.39 <STRONG><A HREF="/man2/clock_getres">clock_getres(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/clock_gettime">clock_gettime(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/clock_nanosleep">clock_nanosleep(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/clock_settime">clock_settime(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/clone2">clone2(2)</A></STRONG> 2.4 IA-64 only <STRONG><A HREF="/man2/clone">clone(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/clone3">clone3(2)</A></STRONG> 5.3 <STRONG><A HREF="/man2/close">close(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/cmpxchg_badaddr">cmpxchg_badaddr(2)</A></STRONG> 2.6.36 Tile only (port removed in Linux 4.17) <STRONG><A HREF="/man2/connect">connect(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/copy_file_range">copy_file_range(2)</A></STRONG> 4.5 <STRONG><A HREF="/man2/creat">creat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/create_module">create_module(2)</A></STRONG> 1.0 Removed in 2.6 <STRONG><A HREF="/man2/delete_module">delete_module(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/dma_memcpy">dma_memcpy(2)</A></STRONG> 2.6.22 Blackfin only (port removed in Linux 4.17) <STRONG><A HREF="/man2/dup">dup(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/dup2">dup2(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/dup3">dup3(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/epoll_create">epoll_create(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/epoll_create1">epoll_create1(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/epoll_ctl">epoll_ctl(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/epoll_pwait">epoll_pwait(2)</A></STRONG> 2.6.19 <STRONG><A HREF="/man2/epoll_wait">epoll_wait(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/eventfd">eventfd(2)</A></STRONG> 2.6.22 <STRONG><A HREF="/man2/eventfd2">eventfd2(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/execv">execv(2)</A></STRONG> 2.0 SPARC/SPARC64 only, for compatibility with SunOS <STRONG><A HREF="/man2/execve">execve(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/execveat">execveat(2)</A></STRONG> 3.19 <STRONG><A HREF="/man2/exit">exit(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/exit_group">exit_group(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/faccessat">faccessat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/fadvise64">fadvise64(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/fadvise64_64">fadvise64_64(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/fallocate">fallocate(2)</A></STRONG> 2.6.23 <STRONG><A HREF="/man2/fanotify_init">fanotify_init(2)</A></STRONG> 2.6.37 <STRONG><A HREF="/man2/fanotify_mark">fanotify_mark(2)</A></STRONG> 2.6.37 <STRONG><A HREF="/man2/fchdir">fchdir(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fchmod">fchmod(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fchmodat">fchmodat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/fchown">fchown(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fchown32">fchown32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/fchownat">fchownat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/fcntl">fcntl(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fcntl64">fcntl64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/fdatasync">fdatasync(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/fgetxattr">fgetxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/finit_module">finit_module(2)</A></STRONG> 3.8 <STRONG><A HREF="/man2/flistxattr">flistxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/flock">flock(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/fork">fork(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/free_hugepages">free_hugepages(2)</A></STRONG> 2.5.36 Removed in 2.5.44 <STRONG><A HREF="/man2/fremovexattr">fremovexattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/fsconfig">fsconfig(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/fsetxattr">fsetxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/fsmount">fsmount(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/fsopen">fsopen(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/fspick">fspick(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/fstat">fstat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fstat64">fstat64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/fstatat64">fstatat64(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/fstatfs">fstatfs(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/fstatfs64">fstatfs64(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/fsync">fsync(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/ftruncate">ftruncate(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/ftruncate64">ftruncate64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/futex">futex(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/futimesat">futimesat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/get_kernel_syms">get_kernel_syms(2)</A></STRONG> 1.0 Removed in 2.6 <STRONG><A HREF="/man2/get_mempolicy">get_mempolicy(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/get_robust_list">get_robust_list(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/get_thread_area">get_thread_area(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/get_tls">get_tls(2)</A></STRONG> 4.15 ARM OABI only, has __ARM_NR prefix <STRONG><A HREF="/man2/getcpu">getcpu(2)</A></STRONG> 2.6.19 <STRONG><A HREF="/man2/getcwd">getcwd(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/getdents">getdents(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/getdents64">getdents64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getdomainname">getdomainname(2)</A></STRONG> 2.2 SPARC, SPARC64; available as <STRONG><A HREF="/man2/osf_getdomainname">osf_getdomainname(2)</A></STRONG> on Alpha since Linux 2.0 <STRONG><A HREF="/man2/getdtablesize">getdtablesize(2)</A></STRONG> 2.0 SPARC (removed in 2.6.26), available since Linux 2.0 on Alpha as <STRONG><A HREF="/man2/osf_getdtablesize">osf_getdtablesize(2)</A></STRONG> <STRONG><A HREF="/man2/getegid">getegid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getegid32">getegid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/geteuid">geteuid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/geteuid32">geteuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getgid">getgid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getgid32">getgid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getgroups">getgroups(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getgroups32">getgroups32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/gethostname">gethostname(2)</A></STRONG> 2.0 Alpha, was available on SPARC up to Linux 2.6.26 <STRONG><A HREF="/man2/getitimer">getitimer(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getpeername">getpeername(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/getpagesize">getpagesize(2)</A></STRONG> 2.0 Not on x86 <STRONG><A HREF="/man2/getpgid">getpgid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getpgrp">getpgrp(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getpid">getpid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getppid">getppid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getpriority">getpriority(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getrandom">getrandom(2)</A></STRONG> 3.17 <STRONG><A HREF="/man2/getresgid">getresgid(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/getresgid32">getresgid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getresuid">getresuid(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/getresuid32">getresuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getrlimit">getrlimit(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getrusage">getrusage(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getsid">getsid(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/getsockname">getsockname(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/getsockopt">getsockopt(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/gettid">gettid(2)</A></STRONG> 2.4.11 <STRONG><A HREF="/man2/gettimeofday">gettimeofday(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getuid">getuid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/getuid32">getuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/getunwind">getunwind(2)</A></STRONG> 2.4.8 IA-64 only; deprecated <STRONG><A HREF="/man2/getxattr">getxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/getxgid">getxgid(2)</A></STRONG> 2.0 Alpha only; see NOTES <STRONG><A HREF="/man2/getxpid">getxpid(2)</A></STRONG> 2.0 Alpha only; see NOTES <STRONG><A HREF="/man2/getxuid">getxuid(2)</A></STRONG> 2.0 Alpha only; see NOTES <STRONG><A HREF="/man2/init_module">init_module(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/inotify_add_watch">inotify_add_watch(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/inotify_init">inotify_init(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/inotify_init1">inotify_init1(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/inotify_rm_watch">inotify_rm_watch(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/io_cancel">io_cancel(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/io_destroy">io_destroy(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/io_getevents">io_getevents(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/io_pgetevents">io_pgetevents(2)</A></STRONG> 4.18 <STRONG><A HREF="/man2/io_setup">io_setup(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/io_submit">io_submit(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/io_uring_enter">io_uring_enter(2)</A></STRONG> 5.1 <STRONG><A HREF="/man2/io_uring_register">io_uring_register(2)</A></STRONG> 5.1 <STRONG><A HREF="/man2/io_uring_setup">io_uring_setup(2)</A></STRONG> 5.1 <STRONG><A HREF="/man2/ioctl">ioctl(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/ioperm">ioperm(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/iopl">iopl(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/ioprio_get">ioprio_get(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/ioprio_set">ioprio_set(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/kcmp">kcmp(2)</A></STRONG> 3.5 <STRONG><A HREF="/man2/kern_features">kern_features(2)</A></STRONG> 3.7 SPARC64 only <STRONG><A HREF="/man2/kexec_file_load">kexec_file_load(2)</A></STRONG> 3.17 <STRONG><A HREF="/man2/kexec_load">kexec_load(2)</A></STRONG> 2.6.13 <STRONG><A HREF="/man2/keyctl">keyctl(2)</A></STRONG> 2.6.10 <STRONG><A HREF="/man2/kill">kill(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/lchown">lchown(2)</A></STRONG> 1.0 See <STRONG><A HREF="/man2/chown">chown(2)</A></STRONG> for version details <STRONG><A HREF="/man2/lchown32">lchown32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/lgetxattr">lgetxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/link">link(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/linkat">linkat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/listen">listen(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/listxattr">listxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/llistxattr">llistxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/lookup_dcookie">lookup_dcookie(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/lremovexattr">lremovexattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/lseek">lseek(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/lsetxattr">lsetxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/lstat">lstat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/lstat64">lstat64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/madvise">madvise(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/mbind">mbind(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/memory_ordering">memory_ordering(2)</A></STRONG> 2.2 SPARC64 only <STRONG><A HREF="/man2/metag_get_tls">metag_get_tls(2)</A></STRONG> 3.9 Metag only (port removed in Linux 4.17) <STRONG><A HREF="/man2/metag_set_fpu_flags">metag_set_fpu_flags(2)</A></STRONG> 3.9 Metag only (port removed in Linux 4.17) <STRONG><A HREF="/man2/metag_set_tls">metag_set_tls(2)</A></STRONG> 3.9 Metag only (port removed in Linux 4.17) <STRONG><A HREF="/man2/metag_setglobalbit">metag_setglobalbit(2)</A></STRONG> 3.9 Metag only (port removed in Linux 4.17) <STRONG><A HREF="/man2/membarrier">membarrier(2)</A></STRONG> 3.17 <STRONG><A HREF="/man2/memfd_create">memfd_create(2)</A></STRONG> 3.17 <STRONG><A HREF="/man2/migrate_pages">migrate_pages(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/mincore">mincore(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/mkdir">mkdir(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/mkdirat">mkdirat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/mknod">mknod(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/mknodat">mknodat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/mlock">mlock(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/mlock2">mlock2(2)</A></STRONG> 4.4 <STRONG><A HREF="/man2/mlockall">mlockall(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/mmap">mmap(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/mmap2">mmap2(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/modify_ldt">modify_ldt(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/mount">mount(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/move_mount">move_mount(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/move_pages">move_pages(2)</A></STRONG> 2.6.18 <STRONG><A HREF="/man2/mprotect">mprotect(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/mq_getsetattr">mq_getsetattr(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mq_notify">mq_notify(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mq_open">mq_open(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mq_timedreceive">mq_timedreceive(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mq_timedsend">mq_timedsend(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mq_unlink">mq_unlink(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/mremap">mremap(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/msgctl">msgctl(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/msgget">msgget(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/msgrcv">msgrcv(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/msgsnd">msgsnd(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/msync">msync(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/munlock">munlock(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/munlockall">munlockall(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/munmap">munmap(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/name_to_handle_at">name_to_handle_at(2)</A></STRONG> 2.6.39 <STRONG><A HREF="/man2/nanosleep">nanosleep(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/newfstatat">newfstatat(2)</A></STRONG> 2.6.16 See <STRONG><A HREF="/man2/stat">stat(2)</A></STRONG> <STRONG><A HREF="/man2/nfsservctl">nfsservctl(2)</A></STRONG> 2.2 Removed in 3.1 <STRONG><A HREF="/man2/nice">nice(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/old_adjtimex">old_adjtimex(2)</A></STRONG> 2.0 Alpha only; see NOTES <STRONG><A HREF="/man2/old_getrlimit">old_getrlimit(2)</A></STRONG> 2.4 Old variant of <STRONG><A HREF="/man2/getrlimit">getrlimit(2)</A></STRONG> that used a different value for RLIM_INFINITY <STRONG><A HREF="/man2/oldfstat">oldfstat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/oldlstat">oldlstat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/oldolduname">oldolduname(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/oldstat">oldstat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/oldumount">oldumount(2)</A></STRONG> 2.4.116 Name of the old <STRONG><A HREF="/man2/umount">umount(2)</A></STRONG> syscall on Alpha <STRONG><A HREF="/man2/olduname">olduname(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/open">open(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/open_by_handle_at">open_by_handle_at(2)</A></STRONG> 2.6.39 <STRONG><A HREF="/man2/open_tree">open_tree(2)</A></STRONG> 5.2 <STRONG><A HREF="/man2/openat">openat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/or1k_atomic">or1k_atomic(2)</A></STRONG> 3.1 OpenRISC 1000 only <STRONG><A HREF="/man2/pause">pause(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/pciconfig_iobase">pciconfig_iobase(2)</A></STRONG> 2.2.15; 2.4 Not on x86 <STRONG><A HREF="/man2/pciconfig_read">pciconfig_read(2)</A></STRONG> 2.0.26; 2.2 Not on x86 <STRONG><A HREF="/man2/pciconfig_write">pciconfig_write(2)</A></STRONG> 2.0.26; 2.2 Not on x86 <STRONG><A HREF="/man2/perf_event_open">perf_event_open(2)</A></STRONG> 2.6.31 Was perf_counter_open() in 2.6.31; renamed in 2.6.32 <STRONG><A HREF="/man2/personality">personality(2)</A></STRONG> 1.2 <STRONG><A HREF="/man2/perfctr">perfctr(2)</A></STRONG> 2.2 SPARC only; removed in 2.6.34 <STRONG><A HREF="/man2/perfmonctl">perfmonctl(2)</A></STRONG> 2.4 IA-64 only <STRONG><A HREF="/man2/pidfd_send_signal">pidfd_send_signal(2)</A></STRONG> 5.1 <STRONG><A HREF="/man2/pidfd_open">pidfd_open(2)</A></STRONG> 5.3 <STRONG><A HREF="/man2/pipe">pipe(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/pipe2">pipe2(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/pivot_root">pivot_root(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/pkey_alloc">pkey_alloc(2)</A></STRONG> 4.8 <STRONG><A HREF="/man2/pkey_free">pkey_free(2)</A></STRONG> 4.8 <STRONG><A HREF="/man2/pkey_mprotect">pkey_mprotect(2)</A></STRONG> 4.8 <STRONG><A HREF="/man2/poll">poll(2)</A></STRONG> 2.0.36; 2.2 <STRONG><A HREF="/man2/ppoll">ppoll(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/prctl">prctl(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/pread">pread(2)</A></STRONG> Used for <STRONG><A HREF="/man2/pread64">pread64(2)</A></STRONG> on AVR32 (port removed in Linux 4.12) and Blackfin (port removed in Linux 4.17) <STRONG><A HREF="/man2/pread64">pread64(2)</A></STRONG> Added as "pread" in 2.2; renamed "pread64" in 2.6 <STRONG><A HREF="/man2/preadv">preadv(2)</A></STRONG> 2.6.30 <STRONG><A HREF="/man2/preadv2">preadv2(2)</A></STRONG> 4.6 <STRONG><A HREF="/man2/prlimit64">prlimit64(2)</A></STRONG> 2.6.36 <STRONG><A HREF="/man2/process_vm_readv">process_vm_readv(2)</A></STRONG> 3.2 <STRONG><A HREF="/man2/process_vm_writev">process_vm_writev(2)</A></STRONG> 3.2 <STRONG><A HREF="/man2/pselect6">pselect6(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/ptrace">ptrace(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/pwrite">pwrite(2)</A></STRONG> Used for <STRONG><A HREF="/man2/pwrite64">pwrite64(2)</A></STRONG> on AVR32 (port removed in Linux 4.12) and Blackfin (port removed in Linux 4.17) <STRONG><A HREF="/man2/pwrite64">pwrite64(2)</A></STRONG> Added as "pwrite" in 2.2; renamed "pwrite64" in 2.6 <STRONG><A HREF="/man2/pwritev">pwritev(2)</A></STRONG> 2.6.30 <STRONG><A HREF="/man2/pwritev2">pwritev2(2)</A></STRONG> 4.6 <STRONG><A HREF="/man2/query_module">query_module(2)</A></STRONG> 2.2 Removed in 2.6 <STRONG><A HREF="/man2/quotactl">quotactl(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/read">read(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/readahead">readahead(2)</A></STRONG> 2.4.13 <STRONG><A HREF="/man2/readdir">readdir(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/readlink">readlink(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/readlinkat">readlinkat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/readv">readv(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/reboot">reboot(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/recv">recv(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/recvfrom">recvfrom(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/recvmsg">recvmsg(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/recvmmsg">recvmmsg(2)</A></STRONG> 2.6.33 <STRONG><A HREF="/man2/remap_file_pages">remap_file_pages(2)</A></STRONG> 2.6 Deprecated since 3.16 <STRONG><A HREF="/man2/removexattr">removexattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/rename">rename(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/renameat">renameat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/renameat2">renameat2(2)</A></STRONG> 3.15 <STRONG><A HREF="/man2/request_key">request_key(2)</A></STRONG> 2.6.10 <STRONG><A HREF="/man2/restart_syscall">restart_syscall(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/riscv_flush_icache">riscv_flush_icache(2)</A></STRONG> 4.15 RISC-V only <STRONG><A HREF="/man2/rmdir">rmdir(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/rseq">rseq(2)</A></STRONG> 4.18 <STRONG><A HREF="/man2/rt_sigaction">rt_sigaction(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigpending">rt_sigpending(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigprocmask">rt_sigprocmask(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigqueueinfo">rt_sigqueueinfo(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigreturn">rt_sigreturn(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigsuspend">rt_sigsuspend(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_sigtimedwait">rt_sigtimedwait(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/rt_tgsigqueueinfo">rt_tgsigqueueinfo(2)</A></STRONG> 2.6.31 <STRONG><A HREF="/man2/rtas">rtas(2)</A></STRONG> 2.6.2 PowerPC/PowerPC64 only <STRONG><A HREF="/man2/s390_runtime_instr">s390_runtime_instr(2)</A></STRONG> 3.7 s390 only <STRONG><A HREF="/man2/s390_pci_mmio_read">s390_pci_mmio_read(2)</A></STRONG> 3.19 s390 only <STRONG><A HREF="/man2/s390_pci_mmio_write">s390_pci_mmio_write(2)</A></STRONG> 3.19 s390 only <STRONG><A HREF="/man2/s390_sthyi">s390_sthyi(2)</A></STRONG> 4.15 s390 only <STRONG><A HREF="/man2/s390_guarded_storage">s390_guarded_storage(2)</A></STRONG> 4.12 s390 only <STRONG><A HREF="/man2/sched_get_affinity">sched_get_affinity(2)</A></STRONG> 2.6 Name of <STRONG><A HREF="/man2/sched_getaffinity">sched_getaffinity(2)</A></STRONG> on SPARC and SPARC64 <STRONG><A HREF="/man2/sched_get_priority_max">sched_get_priority_max(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_get_priority_min">sched_get_priority_min(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_getaffinity">sched_getaffinity(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/sched_getattr">sched_getattr(2)</A></STRONG> 3.14 <STRONG><A HREF="/man2/sched_getparam">sched_getparam(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_getscheduler">sched_getscheduler(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_rr_get_interval">sched_rr_get_interval(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_set_affinity">sched_set_affinity(2)</A></STRONG> 2.6 Name of <STRONG><A HREF="/man2/sched_setaffinity">sched_setaffinity(2)</A></STRONG> on SPARC and SPARC64 <STRONG><A HREF="/man2/sched_setaffinity">sched_setaffinity(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/sched_setattr">sched_setattr(2)</A></STRONG> 3.14 <STRONG><A HREF="/man2/sched_setparam">sched_setparam(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_setscheduler">sched_setscheduler(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/sched_yield">sched_yield(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/seccomp">seccomp(2)</A></STRONG> 3.17 <STRONG><A HREF="/man2/select">select(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/semctl">semctl(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/semget">semget(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/semop">semop(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/semtimedop">semtimedop(2)</A></STRONG> 2.6; 2.4.22 <STRONG><A HREF="/man2/send">send(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/sendfile">sendfile(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/sendfile64">sendfile64(2)</A></STRONG> 2.6; 2.4.19 <STRONG><A HREF="/man2/sendmmsg">sendmmsg(2)</A></STRONG> 3.0 <STRONG><A HREF="/man2/sendmsg">sendmsg(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/sendto">sendto(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/set_mempolicy">set_mempolicy(2)</A></STRONG> 2.6.6 <STRONG><A HREF="/man2/set_robust_list">set_robust_list(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/set_thread_area">set_thread_area(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/set_tid_address">set_tid_address(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/set_tls">set_tls(2)</A></STRONG> 2.6.11 ARM OABI/EABI only (constant has __ARM_NR prefix) <STRONG><A HREF="/man2/setdomainname">setdomainname(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setfsgid">setfsgid(2)</A></STRONG> 1.2 <STRONG><A HREF="/man2/setfsgid32">setfsgid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setfsuid">setfsuid(2)</A></STRONG> 1.2 <STRONG><A HREF="/man2/setfsuid32">setfsuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setgid">setgid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setgid32">setgid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setgroups">setgroups(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setgroups32">setgroups32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/sethae">sethae(2)</A></STRONG> 2.0 Alpha only; see NOTES <STRONG><A HREF="/man2/sethostname">sethostname(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setitimer">setitimer(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setns">setns(2)</A></STRONG> 3.0 <STRONG><A HREF="/man2/setpgid">setpgid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setpgrp">setpgrp(2)</A></STRONG> 2.0 Alternative name for <STRONG><A HREF="/man2/setpgid">setpgid(2)</A></STRONG> on Alpha <STRONG><A HREF="/man2/setpriority">setpriority(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setregid">setregid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setregid32">setregid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setresgid">setresgid(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/setresgid32">setresgid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setresuid">setresuid(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/setresuid32">setresuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setreuid">setreuid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setreuid32">setreuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setrlimit">setrlimit(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setsid">setsid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setsockopt">setsockopt(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/settimeofday">settimeofday(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setuid">setuid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/setuid32">setuid32(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/setup">setup(2)</A></STRONG> 1.0 Removed in 2.2 <STRONG><A HREF="/man2/setxattr">setxattr(2)</A></STRONG> 2.6; 2.4.18 <STRONG><A HREF="/man2/sgetmask">sgetmask(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/shmat">shmat(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/shmctl">shmctl(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/shmdt">shmdt(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/shmget">shmget(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG> <STRONG><A HREF="/man2/shutdown">shutdown(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/sigaction">sigaction(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sigaltstack">sigaltstack(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/signal">signal(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/signalfd">signalfd(2)</A></STRONG> 2.6.22 <STRONG><A HREF="/man2/signalfd4">signalfd4(2)</A></STRONG> 2.6.27 <STRONG><A HREF="/man2/sigpending">sigpending(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sigprocmask">sigprocmask(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sigreturn">sigreturn(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sigsuspend">sigsuspend(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/socket">socket(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/socketpair">socketpair(2)</A></STRONG> 2.0 See notes on <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> <STRONG><A HREF="/man2/spill">spill(2)</A></STRONG> 2.6.13 Xtensa only <STRONG><A HREF="/man2/splice">splice(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/spu_create">spu_create(2)</A></STRONG> 2.6.16 PowerPC/PowerPC64 only <STRONG><A HREF="/man2/spu_run">spu_run(2)</A></STRONG> 2.6.16 PowerPC/PowerPC64 only <STRONG><A HREF="/man2/sram_alloc">sram_alloc(2)</A></STRONG> 2.6.22 Blackfin (port removed in Linux 4.17) <STRONG><A HREF="/man2/sram_free">sram_free(2)</A></STRONG> 2.6.22 Blackfin (port removed in Linux 4.17) <STRONG><A HREF="/man2/ssetmask">ssetmask(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/stat">stat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/stat64">stat64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/statfs">statfs(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/statfs64">statfs64(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/statx">statx(2)</A></STRONG> 4.11 <STRONG><A HREF="/man2/stime">stime(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/subpage_prot">subpage_prot(2)</A></STRONG> 2.6.25 PowerPC/PowerPC64 only <STRONG><A HREF="/man2/swapcontext">swapcontext(2)</A></STRONG> 2.6.3 PowerPC/PowerPC64 only <STRONG><A HREF="/man2/switch_endian">switch_endian(2)</A></STRONG> 4.1 PowerPC64 only <STRONG><A HREF="/man2/swapcontext">swapcontext(2)</A></STRONG> 2.6.3 PowerPC only <STRONG><A HREF="/man2/swapoff">swapoff(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/swapon">swapon(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/symlink">symlink(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/symlinkat">symlinkat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/sync">sync(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sync_file_range">sync_file_range(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/sync_file_range2">sync_file_range2(2)</A></STRONG> 2.6.22 <STRONG><A HREF="/man2/syncfs">syncfs(2)</A></STRONG> 2.6.39 <STRONG><A HREF="/man2/sys_debug_setcontext">sys_debug_setcontext(2)</A></STRONG> 2.6.11 PowerPC only <STRONG><A HREF="/man2/syscall">syscall(2)</A></STRONG> 1.0 Still available on ARM OABI and MIPS O32 ABI <STRONG><A HREF="/man2/sysfs">sysfs(2)</A></STRONG> 1.2 <STRONG><A HREF="/man2/sysinfo">sysinfo(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/syslog">syslog(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/sysmips">sysmips(2)</A></STRONG> 2.6.0 MIPS only <STRONG><A HREF="/man2/tee">tee(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/tgkill">tgkill(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/time">time(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/timer_create">timer_create(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/timer_delete">timer_delete(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/timer_getoverrun">timer_getoverrun(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/timer_gettime">timer_gettime(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/timer_settime">timer_settime(2)</A></STRONG> 2.6 <STRONG><A HREF="/man2/timerfd_create">timerfd_create(2)</A></STRONG> 2.6.25 <STRONG><A HREF="/man2/timerfd_gettime">timerfd_gettime(2)</A></STRONG> 2.6.25 <STRONG><A HREF="/man2/timerfd_settime">timerfd_settime(2)</A></STRONG> 2.6.25 <STRONG><A HREF="/man2/times">times(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/tkill">tkill(2)</A></STRONG> 2.6; 2.4.22 <STRONG><A HREF="/man2/truncate">truncate(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/truncate64">truncate64(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/ugetrlimit">ugetrlimit(2)</A></STRONG> 2.4 <STRONG><A HREF="/man2/umask">umask(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/umount">umount(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/umount2">umount2(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/uname">uname(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/unlink">unlink(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/unlinkat">unlinkat(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/unshare">unshare(2)</A></STRONG> 2.6.16 <STRONG><A HREF="/man2/uselib">uselib(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/ustat">ustat(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/userfaultfd">userfaultfd(2)</A></STRONG> 4.3 <STRONG><A HREF="/man2/usr26">usr26(2)</A></STRONG> 2.4.8.1 ARM OABI only <STRONG><A HREF="/man2/usr32">usr32(2)</A></STRONG> 2.4.8.1 ARM OABI only <STRONG><A HREF="/man2/utime">utime(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/utimensat">utimensat(2)</A></STRONG> 2.6.22 <STRONG><A HREF="/man2/utimes">utimes(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/utrap_install">utrap_install(2)</A></STRONG> 2.2 SPARC64 only <STRONG><A HREF="/man2/vfork">vfork(2)</A></STRONG> 2.2 <STRONG><A HREF="/man2/vhangup">vhangup(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/vm86old">vm86old(2)</A></STRONG> 1.0 Was "vm86"; renamed in 2.0.28/2.2 <STRONG><A HREF="/man2/vm86">vm86(2)</A></STRONG> 2.0.28; 2.2 <STRONG><A HREF="/man2/vmsplice">vmsplice(2)</A></STRONG> 2.6.17 <STRONG><A HREF="/man2/wait4">wait4(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/waitid">waitid(2)</A></STRONG> 2.6.10 <STRONG><A HREF="/man2/waitpid">waitpid(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/write">write(2)</A></STRONG> 1.0 <STRONG><A HREF="/man2/writev">writev(2)</A></STRONG> 2.0 <STRONG><A HREF="/man2/xtensa">xtensa(2)</A></STRONG> 2.6.13 Xtensa only On many platforms, including x86-32, socket calls are all multiplexed (via glibc wrapper functions) through <STRONG><A HREF="/man2/socketcall">socketcall(2)</A></STRONG> and similarly Sys- tem V IPC calls are multiplexed through <STRONG><A HREF="/man2/ipc">ipc(2)</A></STRONG>. Although slots are reserved for them in the system call table, the fol- lowing system calls are not implemented in the standard kernel: <STRONG><A HREF="/man2/afs_syscall">afs_syscall(2)</A></STRONG>, <STRONG><A HREF="/man2/break">break(2)</A></STRONG>, <STRONG><A HREF="/man2/ftime">ftime(2)</A></STRONG>, <STRONG><A HREF="/man2/getpmsg">getpmsg(2)</A></STRONG>, <STRONG><A HREF="/man2/gtty">gtty(2)</A></STRONG>, <STRONG><A HREF="/man2/idle">idle(2)</A></STRONG>, <STRONG><A HREF="/man2/lock">lock(2)</A></STRONG>, <STRONG><A HREF="/man2/madvise1">madvise1(2)</A></STRONG>, <STRONG><A HREF="/man2/mpx">mpx(2)</A></STRONG>, <STRONG><A HREF="/man2/phys">phys(2)</A></STRONG>, <STRONG><A HREF="/man2/prof">prof(2)</A></STRONG>, <STRONG><A HREF="/man2/profil">profil(2)</A></STRONG>, <STRONG><A HREF="/man2/putpmsg">putpmsg(2)</A></STRONG>, <STRONG><A HREF="/man2/security">security(2)</A></STRONG>, <STRONG><A HREF="/man2/stty">stty(2)</A></STRONG>, <STRONG><A HREF="/man2/tuxcall">tuxcall(2)</A></STRONG>, <STRONG><A HREF="/man2/ulimit">ulimit(2)</A></STRONG>, and <STRONG><A HREF="/man2/vserver">vserver(2)</A></STRONG> (see also <STRONG><A HREF="/man2/unimplemented">unimplemented(2)</A></STRONG>). However, <STRONG><A HREF="/man3/ftime">ftime(3)</A></STRONG>, <STRONG><A HREF="/man3/profil">profil(3)</A></STRONG>, and <STRONG><A HREF="/man3/ulimit">ulimit(3)</A></STRONG> exist as library routines. The slot for <STRONG><A HREF="/man2/phys">phys(2)</A></STRONG> is in use since kernel 2.1.116 for <STRONG><A HREF="/man2/umount">umount(2)</A></STRONG>; <STRONG><A HREF="/man2/phys">phys(2)</A></STRONG> will never be implemented. The <STRONG><A HREF="/man2/getpmsg">getpmsg(2)</A></STRONG> and <STRONG><A HREF="/man2/putpmsg">putpmsg(2)</A></STRONG> calls are for kernels patched to support STREAMS, and may never be in the standard kernel. There was briefly <STRONG><A HREF="/man2/set_zone_reclaim">set_zone_reclaim(2)</A></STRONG>, added in Linux 2.6.13, and re- moved in 2.6.16; this system call was never available to user space. NOTES Roughly speaking, the code belonging to the system call with number __NR_xxx defined in /usr/include/asm/unistd.h can be found in the Linux kernel source in the routine sys_xxx(). There are many exceptions, however, mostly because older system calls were superseded by newer ones, and this has been treated somewhat unsystematically. On plat- forms with proprietary operating-system emulation, such as sparc, sparc64, and alpha, there are many additional system calls; mips64 also contains a full set of 32-bit system calls. Over time, changes to the interfaces of some system calls have been necessary. One reason for such changes was the need to increase the size of structures or scalar values passed to the system call. Because of these changes, certain architectures (notably, longstanding 32-bit architectures such as i386) now have various groups of related system calls (e.g., <STRONG><A HREF="/man2/truncate">truncate(2)</A></STRONG> and <STRONG><A HREF="/man2/truncate64">truncate64(2)</A></STRONG>) which perform similar tasks, but which vary in details such as the size of their arguments. (As noted earlier, applications are generally unaware of this: the glibc wrapper functions do some work to ensure that the right system call is invoked, and that ABI compatibility is preserved for old bina- ries.) Examples of systems calls that exist in multiple versions are the following: * By now there are three different versions of <STRONG><A HREF="/man2/stat">stat(2)</A></STRONG>: sys_stat() (slot __NR_oldstat), sys_newstat() (slot __NR_stat), and sys_stat64() (slot __NR_stat64), with the last being the most cur- rent. A similar story applies for <STRONG><A HREF="/man2/lstat">lstat(2)</A></STRONG> and <STRONG><A HREF="/man2/fstat">fstat(2)</A></STRONG>. * Similarly, the defines __NR_oldolduname, __NR_olduname, and __NR_un- ame refer to the routines sys_olduname(), sys_uname() and sys_newu- name(). * In Linux 2.0, a new version of <STRONG><A HREF="/man2/vm86">vm86(2)</A></STRONG> appeared, with the old and the new kernel routines being named sys_vm86old() and sys_vm86(). * In Linux 2.4, a new version of <STRONG><A HREF="/man2/getrlimit">getrlimit(2)</A></STRONG> appeared, with the old and the new kernel routines being named sys_old_getrlimit() (slot __NR_getrlimit) and sys_getrlimit() (slot __NR_ugetrlimit). * Linux 2.4 increased the size of user and group IDs from 16 to 32 bits. To support this change, a range of system calls were added (e.g., <STRONG><A HREF="/man2/chown32">chown32(2)</A></STRONG>, <STRONG><A HREF="/man2/getuid32">getuid32(2)</A></STRONG>, <STRONG><A HREF="/man2/getgroups32">getgroups32(2)</A></STRONG>, <STRONG><A HREF="/man2/setresuid32">setresuid32(2)</A></STRONG>), su- perseding earlier calls of the same name without the "32" suffix. * Linux 2.4 added support for applications on 32-bit architectures to access large files (i.e., files for which the sizes and file offsets can't be represented in 32 bits.) To support this change, replace- ments were required for system calls that deal with file offsets and sizes. Thus the following system calls were added: <STRONG><A HREF="/man2/fcntl64">fcntl64(2)</A></STRONG>, get- <STRONG><A HREF="/man2/dents64">dents64(2)</A></STRONG>, <STRONG><A HREF="/man2/stat64">stat64(2)</A></STRONG>, <STRONG><A HREF="/man2/statfs64">statfs64(2)</A></STRONG>, <STRONG><A HREF="/man2/truncate64">truncate64(2)</A></STRONG>, and their analogs that work with file descriptors or symbolic links. These system calls supersede the older system calls which, except in the case of the "stat" calls, have the same name without the "64" suffix. On newer platforms that only have 64-bit file access and 32-bit UIDs/GIDs (e.g., alpha, ia64, s390x, x86-64), there is just a single version of the UID/GID and file access system calls. On platforms (typically, 32-bit platforms) where the *64 and *32 calls exist, the other versions are obsolete. * The rt_sig* calls were added in kernel 2.2 to support the addition of real-time signals (see <STRONG><A HREF="/man7/signal">signal(7)</A></STRONG>). These system calls supersede the older system calls of the same name without the "rt_" prefix. * The <STRONG><A HREF="/man2/select">select(2)</A></STRONG> and <STRONG><A HREF="/man2/mmap">mmap(2)</A></STRONG> system calls use five or more arguments, which caused problems in the way argument passing on the i386 used to be set up. Thus, while other architectures have sys_select() and sys_mmap() corresponding to __NR_select and __NR_mmap, on i386 one finds old_select() and old_mmap() (routines that use a pointer to an argument block) instead. These days passing five arguments is not a problem any more, and there is a __NR__newselect that corresponds directly to sys_select() and similarly __NR_mmap2. s390x is the only 64-bit architecture that has old_mmap(). Architecture-specific details: Alpha * <STRONG><A HREF="/man2/getxgid">getxgid(2)</A></STRONG> returns a pair of GID and effective GID via registers r0 and r20; it is provided instead of <STRONG><A HREF="/man2/getgid">getgid(2)</A></STRONG> and <STRONG><A HREF="/man2/getegid">getegid(2)</A></STRONG>. * <STRONG><A HREF="/man2/getxpid">getxpid(2)</A></STRONG> returns a pair of PID and parent PID via registers r0 and r20; it is provided instead of <STRONG><A HREF="/man2/getpid">getpid(2)</A></STRONG> and <STRONG><A HREF="/man2/getppid">getppid(2)</A></STRONG>. * <STRONG><A HREF="/man2/old_adjtimex">old_adjtimex(2)</A></STRONG> is a variant of <STRONG><A HREF="/man2/adjtimex">adjtimex(2)</A></STRONG> that uses struct timeval32, for compatibility with OSF/1. * <STRONG><A HREF="/man2/getxuid">getxuid(2)</A></STRONG> returns a pair of GID and effective GID via registers r0 and r20; it is provided instead of <STRONG><A HREF="/man2/getuid">getuid(2)</A></STRONG> and <STRONG><A HREF="/man2/geteuid">geteuid(2)</A></STRONG>. * <STRONG><A HREF="/man2/sethae">sethae(2)</A></STRONG> is used for configuring the Host Address Extension regis- ter on low-cost Alphas in order to access address space beyond first 27 bits. SEE ALSO <STRONG><A HREF="/man2/intro">intro(2)</A></STRONG>, <STRONG><A HREF="/man2/syscall">syscall(2)</A></STRONG>, <STRONG><A HREF="/man2/unimplemented">unimplemented(2)</A></STRONG>, <STRONG><A HREF="/man3/errno">errno(3)</A></STRONG>, <STRONG><A HREF="/man7/libc">libc(7)</A></STRONG>, <STRONG><A HREF="/man7/vdso">vdso(7)</A></STRONG> COLOPHON This page is part of release 5.05 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2019-10-10 <STRONG><A HREF="/man2/SYSCALLS">SYSCALLS(2)</A></STRONG></PRE> <center> <h6>Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2025 <a href="http://www.he.net">Hurricane Electric</a>. All Rights Reserved.</h6></center> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10