_syscall.2, clock_getres.2, clone.2, copy_file_range.2, create_module.2, delete_module.2, fallocate.2, futex.2, get_kernel_syms.2, get_robust_list.2, getcpu.2, getdents.2, gettid.2, gettimeofday.2, getunwind.2, init_module.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, ioctl_userfaultfd.2, ioprio_set.2, kcmp.2, kexec_load.2, keyctl.2, link.2, llseek.2, memfd_create.2, mmap.2, mq_getsetattr.2, msgctl.2, msgget.2, open_by_handle_at.2, outb.2, perf_event_open.2, pivot_root.2, process_vm_readv.2, query_module.2, readdir.2, recvmmsg.2, rename.2, request_key.2, restart_syscall.2, rt_sigqueueinfo.2, s390_pci_mmio_write.2, s390_runtime_instr.2, sched_setattr.2, seccomp.2, select.2, select_tut.2, send.2, sendmmsg.2, set_thread_area.2, set_tid_address.2, sgetmask.2, shmop.2, sigaction.2, sigprocmask.2, splice.2, spu_create.2, spu_run.2, statx.2, subpage_prot.2, sync_file_range.2, syscall.2, sysctl.2, sysfs.2, tee.2, timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, tkill.2, uselib.2, utimensat.2, vmsplice.2, wait.2, aio_init.3, asinh.3, atan2.3, atanh.3, backtrace.3, basename.3, bswap.3, bzero.3, catgets.3, catopen.3, dladdr.3, dlsym.3, endian.3, envz_add.3, erf.3, erfc.3, error.3, ferror.3, ffs.3, fgetc.3, fmemopen.3, fopen.3, fopencookie.3, fseek.3, ftw.3, futimes.3, getdate.3, getenv.3, getline.3, getlogin.3, getrpcent.3, getsubopt.3, getutmp.3, getw.3, gnu_get_libc_version.3, inet_net_pton.3, isalpha.3, lio_listio.3, makedev.3, malloc_get_state.3, malloc_stats.3, malloc_trim.3, malloc_usable_size.3, matherr.3, memchr.3, nextup.3, ntp_gettime.3, posix_madvise.3, program_invocation_name.3, pthread_atfork.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cleanup_push_defer_np.3, pthread_detach.3, pthread_equal.3, pthread_exit.3, pthread_join.3, pthread_kill.3, pthread_kill_other_threads_np.3, pthread_rwlockattr_setkind_np.3, pthread_self.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setschedprio.3, pthread_testcancel.3, pthread_tryjoin_np.3, pthread_yield.3, puts.3, random.3, random_r.3, rpc.3, sched_getcpu.3, setnetgrent.3, sigwait.3, stdin.3, strerror.3, strfmon.3, timeradd.3, tmpnam.3, toupper.3, towlower.3, towupper.3, ttyname.3, uselocale.3, xdr.3, dsp56k.4, sigevent.7, vdso.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-15 19:26:11 +02:00
parent a458bc4526
commit dbfe9c700e
174 changed files with 271 additions and 280 deletions

View File

@ -40,9 +40,9 @@
_syscall \- invoking a system call without library support (OBSOLETE)
.SH SYNOPSIS
.B #include <linux/unistd.h>
.PP
A _syscall macro
.PP
desired system call
.SH DESCRIPTION
The important thing to know about a system call is its prototype.

View File

@ -34,9 +34,9 @@ clock_getres, clock_gettime, clock_settime \- clock and time functions
.B #include <time.h>
.PP
.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
.PP
.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
.PP
.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).

View File

@ -45,15 +45,15 @@ clone, __clone2 \- create a child process
.SH SYNOPSIS
.nf
/* Prototype for the glibc wrapper function */
.PP
.B #define _GNU_SOURCE
.B #include <sched.h>
.PP
.BI "int clone(int (*" "fn" ")(void *), void *" child_stack ,
.BI " int " flags ", void *" "arg" ", ... "
.BI " /* pid_t *" ptid ", void *" newtls \
", pid_t *" ctid " */ );"
.PP
/* For the prototype of the raw system call, see NOTES */
.fi
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ copy_file_range \- Copy a range of data from one file to another
.nf
.B #include <sys/syscall.h>
.B #include <unistd.h>
.PP
.BI "ssize_t copy_file_range(int " fd_in ", loff_t *" off_in ,
.BI " int " fd_out ", loff_t *" off_out ,
.BI " size_t " len ", unsigned int " flags );

View File

@ -16,7 +16,7 @@ create_module \- create a loadable module entry
.PP
.BI "caddr_t create_module(const char *" name ", size_t " size );
.fi
.PP
.IR Note :
No declaration of this system call is provided in glibc headers; see NOTES.
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ delete_module \- unload a kernel module
.nf
.BI "int delete_module(const char *" name ", int " flags );
.fi
.PP
.IR Note :
No declaration of this system call is provided in glibc headers; see NOTES.
.SH DESCRIPTION

View File

@ -15,7 +15,7 @@ fallocate \- manipulate file space
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.PP
.BI "int fallocate(int " fd ", int " mode ", off_t " offset \
", off_t " len ");
.fi

View File

@ -33,7 +33,7 @@ futex \- fast user-space locking
" \fR /* or: \fBuint32_t \fIval2\fP */
.BI " int *" uaddr2 ", int " val3 );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -16,7 +16,7 @@ get_kernel_syms \- retrieve exported kernel and module symbols
.PP
.BI "int get_kernel_syms(struct kernel_sym *" table );
.fi
.PP
.IR Note :
No declaration of this system call is provided in glibc headers; see NOTES.
.SH DESCRIPTION

View File

@ -39,7 +39,7 @@ get_robust_list, set_robust_list \- get/set list of robust futexes
.BI " size_t *" len_ptr );
.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -19,7 +19,7 @@ getcpu \- determine CPU and NUMA node on which the calling thread is running
.BI "int getcpu(unsigned *" cpu ", unsigned *" node \
", struct getcpu_cache *" tcache );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -38,7 +38,7 @@ getdents, getdents64 \- get directory entries
.BI "int getdents64(unsigned int " fd ", struct linux_dirent64 *" dirp ,
.BI " unsigned int " count );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -32,7 +32,7 @@ gettid \- get thread identification
.PP
.B pid_t gettid(void);
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -43,13 +43,13 @@ gettimeofday, settimeofday \- get / set time
.SH SYNOPSIS
.nf
.B #include <sys/time.h>
.PP
.BI "int gettimeofday(struct timeval *" tv ", struct timezone *" tz );
.PP
.BI "int settimeofday(const struct timeval *" tv \
", const struct timezone *" tz );
.fi
.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):

View File

@ -34,7 +34,7 @@ getunwind \- copy the unwind data to caller's buffer
.PP
.BI "long getunwind(void " *buf ", size_t " buf_size );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -31,11 +31,11 @@ init_module, finit_module \- load a kernel module
.nf
.BI "int init_module(void *" module_image ", unsigned long " len ,
.BI " const char *" param_values );
.PP
.BI "int finit_module(int " fd ", const char *" param_values ,
.BI " int " flags );
.fi
.PP
.IR Note :
glibc provides no header file declaration of
.BR init_module ()

View File

@ -10,11 +10,11 @@ io_cancel \- cancel an outstanding asynchronous I/O operation
.SH SYNOPSIS
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.PP
.BI "int io_cancel(aio_context_t " ctx_id ", struct iocb *" iocb ,
.BI " struct io_event *" result );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -10,10 +10,10 @@ io_destroy \- destroy an asynchronous I/O context
.SH SYNOPSIS
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.PP
.BI "int io_destroy(aio_context_t " ctx_id );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -11,12 +11,12 @@ io_getevents \- read asynchronous I/O events from the completion queue
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.BR "#include <linux/time.h>" " /* Defines 'struct timespec' */"
.PP
.BI "int io_getevents(aio_context_t " ctx_id ", long " min_nr ", long " nr ,
.BI " struct io_event *" events \
", struct timespec *" timeout );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -10,10 +10,10 @@ io_setup \- create an asynchronous I/O context
.SH SYNOPSIS
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.PP
.BI "int io_setup(unsigned " nr_events ", aio_context_t *" ctx_idp );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -10,11 +10,11 @@ io_submit \- submit asynchronous I/O blocks for processing
.SH SYNOPSIS
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.PP
.BI "int io_submit(aio_context_t " ctx_id ", long " nr \
", struct iocb **" iocbpp );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -32,7 +32,7 @@ space
.SH SYNOPSIS
.nf
.B #include <sys/ioctl.h>
.PP
.BI "int ioctl(int " fd ", int " cmd ", ...);"
.fi
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ ioprio_get, ioprio_set \- get/set I/O scheduling class and priority
.BI "int ioprio_get(int " which ", int " who );
.BI "int ioprio_set(int " which ", int " who ", int " ioprio );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -31,11 +31,11 @@ kcmp \- compare two processes to determine if they share a kernel resource
.SH SYNOPSIS
.nf
.B #include <linux/kcmp.h>
.PP
.BI "int kcmp(pid_t " pid1 ", pid_t " pid2 ", int " type ,
.BI " unsigned long " idx1 ", unsigned long " idx2 );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -30,18 +30,18 @@ kexec_load, kexec_file_load \- load a new kernel for later execution
.SH SYNOPSIS
.nf
.B #include <linux/kexec.h>
.PP
.BI "long kexec_load(unsigned long " entry ", unsigned long " nr_segments ","
.BI " struct kexec_segment *" segments \
", unsigned long " flags ");"
.PP
.BI "long kexec_file_load(int " kernel_fd ", int " initrd_fd ","
.br
.BI " unsigned long " cmdline_len \
", const char *" cmdline ","
.BI " unsigned long " flags ");"
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -44,7 +44,7 @@ keyctl \- manipulate the kernel's key management facility
.BI " __kernel_ulong_t " arg3 ", __kernel_ulong_t " arg4 ,
.BI " __kernel_ulong_t " arg5 );
.fi
.PP
No glibc wrapper is provided for this system call; see NOTES.
.SH DESCRIPTION
.BR keyctl ()

View File

@ -37,7 +37,7 @@ link, linkat \- make a new name for a file
.B #include <unistd.h>
.PP
.BI "int link(const char *" oldpath ", const char *" newpath );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
.PP

View File

@ -37,7 +37,7 @@ _llseek \- reposition read/write file offset
.BI " unsigned long " offset_low ", loff_t *" result ,
.BI " unsigned int " whence );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -25,7 +25,7 @@ memfd_create \- create an anonymous file
.B #include <sys/memfd.h>
.PP
.BI "int memfd_create(const char *" name ", unsigned int " flags ");"
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -49,7 +49,7 @@ mmap, munmap \- map or unmap files or devices into memory
.BI " int " fd ", off_t " offset );
.BI "int munmap(void *" addr ", size_t " length );
.fi
.PP
See NOTES for information on feature test macro requirements.
.SH DESCRIPTION
.BR mmap ()

View File

@ -34,7 +34,7 @@ mq_getsetattr \- get/set message queue attributes
.BI "int mq_getsetattr(mqd_t " mqdes ", struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -42,7 +42,7 @@ msgctl \- System V message control operations
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.B #include <sys/msg.h>
.PP
.BI "int msgctl(int " msqid ", int " cmd ", struct msqid_ds *" buf );
.fi
.SH DESCRIPTION

View File

@ -40,7 +40,7 @@ msgget \- get a System V message queue identifier
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.B #include <sys/msg.h>
.PP
.BI "int msgget(key_t " key ", int " msgflg );
.fi
.SH DESCRIPTION

View File

@ -32,11 +32,11 @@ for a pathname and open file via a handle
.B #include <sys/types.h>
.B #include <sys/stat.h>
.B #include <fcntl.h>
.PP
.BI "int name_to_handle_at(int " dirfd ", const char *" pathname ,
.BI " struct file_handle *" handle ,
.BI " int *" mount_id ", int " flags );
.PP
.BI "int open_by_handle_at(int " mount_fd ", struct file_handle *" handle ,
.BI " int " flags );
.fi

View File

@ -31,21 +31,21 @@ outb_p, outw_p, outl_p, inb_p, inw_p, inl_p \- port I/O
.SH SYNOPSIS
.nf
.B #include <sys/io.h>
.PP
.BI "unsigned char inb(unsigned short int " port );
.BI "unsigned char inb_p(unsigned short int " port );
.BI "unsigned short int inw(unsigned short int " port );
.BI "unsigned short int inw_p(unsigned short int " port );
.BI "unsigned int inl(unsigned short int " port );
.BI "unsigned int inl_p(unsigned short int " port );
.PP
.BI "void outb(unsigned char " value ", unsigned short int " port );
.BI "void outb_p(unsigned char " value ", unsigned short int " port );
.BI "void outw(unsigned short int " value ", unsigned short int " port );
.BI "void outw_p(unsigned short int " value ", unsigned short int " port );
.BI "void outl(unsigned int " value ", unsigned short int " port );
.BI "void outl_p(unsigned int " value ", unsigned short int " port );
.PP
.BI "void insb(unsigned short int " port ", void *" addr ,
.BI " unsigned long int " count );
.BI "void insw(unsigned short int " port ", void *" addr ,

View File

@ -36,7 +36,7 @@ perf_event_open \- set up performance monitoring
.BI " pid_t " pid ", int " cpu ", int " group_fd ,
.BI " unsigned long " flags );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -12,7 +12,7 @@
pivot_root \- change the root filesystem
.SH SYNOPSIS
.BI "int pivot_root(const char *" new_root ", const char *" put_old );
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -32,14 +32,14 @@ process_vm_readv, process_vm_writev \- transfer data between process address spa
.SH SYNOPSIS
.nf
.B #include <sys/uio.h>
.PP
.BI "ssize_t process_vm_readv(pid_t " pid ,
.BI " const struct iovec *" local_iov ,
.BI " unsigned long " liovcnt ,
.BI " const struct iovec *" remote_iov ,
.BI " unsigned long " riovcnt ,
.BI " unsigned long " flags ");"
.PP
.BI "ssize_t process_vm_writev(pid_t " pid ,
.BI " const struct iovec *" local_iov ,
.BI " unsigned long " liovcnt ,

View File

@ -17,7 +17,7 @@ query_module \- query the kernel for various bits pertaining to modules
.BI "int query_module(const char *" name ", int " which ", void *" buf ,
.BI " size_t " bufsize ", size_t *" ret );
.fi
.PP
.IR Note :
No declaration of this system call is provided in glibc headers; see NOTES.
.SH DESCRIPTION

View File

@ -36,7 +36,7 @@ readdir \- read directory entry
.BI "int readdir(unsigned int " fd ", struct old_linux_dirent *" dirp ","
.BI " unsigned int " count );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -35,7 +35,7 @@ recvmmsg \- receive multiple messages on a socket
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BI "#include <sys/socket.h>"
.PP
.BI "int recvmmsg(int " sockfd ", struct mmsghdr *" msgvec \
", unsigned int " vlen ","
.br

View File

@ -44,12 +44,12 @@ rename, renameat, renameat2 \- change the name or location of a file
.PP
.BI "int renameat(int " olddirfd ", const char *" oldpath ,
.BI " int " newdirfd ", const char *" newpath );
.PP
.BI "int renameat2(int " olddirfd ", const char *" oldpath ,
.BI " int " newdirfd ", const char *" newpath \
", unsigned int " flags );
.fi
.PP
.IR Note :
There is no glibc wrapper for
.BR renameat2 ();

View File

@ -21,7 +21,7 @@ request_key \- request a key from the kernel's key management facility
.BI " const char *" callout_info ,
.BI " key_serial_t " dest_keyring ");"
.fi
.PP
No glibc wrapper is provided for this system call; see NOTES.
.SH DESCRIPTION
.BR request_key ()

View File

@ -35,7 +35,7 @@
restart_syscall \- restart a system call after interruption by a stop signal
.SH SYNOPSIS
.B int restart_syscall(void);
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -32,7 +32,7 @@ rt_sigqueueinfo, rt_tgsigqueueinfo \- queue a signal and data
.BI "int rt_tgsigqueueinfo(pid_t " tgid ", pid_t " tid ", int " sig ,
.BI " siginfo_t *" uinfo );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ MMIO memory page
.SH SYNOPSIS
.nf
.B #include <asm/unistd.h>
.PP
.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ",
.BI " void *" user_buffer ", size_t " length ");
.br

View File

@ -28,7 +28,7 @@ s390_runtime_instr \- enable/disable s390 CPU run-time instrumentation
.SH SYNOPSIS
.nf
.B #include <asm/runtime_instr.h>
.PP
.BI "int s390_runtime_instr(int " command ", int " signum ");
.fi
.SH DESCRIPTION

View File

@ -30,10 +30,10 @@ set and get scheduling policy and attributes
.SH SYNOPSIS
.nf
.B #include <sched.h>
.PP
.BI "int sched_setattr(pid_t " pid ", struct sched_attr *" attr ,
.BI " unsigned int " flags );
.PP
.BI "int sched_getattr(pid_t " pid ", struct sched_attr *" attr ,
.BI " unsigned int " size ", unsigned int " flags );
.fi

View File

@ -36,7 +36,7 @@ seccomp \- operate on Secure Computing state of the process
.B #include <sys/ptrace.h>
.\" Kees Cook noted: Anything that uses SECCOMP_RET_TRACE returns will
.\" need <sys/ptrace.h>
.PP
.BI "int seccomp(unsigned int " operation ", unsigned int " flags \
", void *" args );
.fi

View File

@ -42,15 +42,11 @@ synchronous I/O multiplexing
.SH SYNOPSIS
.nf
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
.br
.B #include <sys/types.h>
.br
.B #include <unistd.h>
.PP
.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,

View File

@ -36,15 +36,11 @@ synchronous I/O multiplexing
.SH SYNOPSIS
.nf
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
.br
.B #include <sys/types.h>
.br
.B #include <unistd.h>
.PP
.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,

View File

@ -47,11 +47,11 @@ send, sendto, sendmsg \- send a message on a socket
.PP
.BI "ssize_t send(int " sockfd ", const void *" buf ", size_t " len \
", int " flags );
.PP
.BI "ssize_t sendto(int " sockfd ", const void *" buf ", size_t " len \
", int " flags ,
.BI " const struct sockaddr *" dest_addr ", socklen_t " addrlen );
.PP
.BI "ssize_t sendmsg(int " sockfd ", const struct msghdr *" msg \
", int " flags );
.fi

View File

@ -32,7 +32,7 @@ sendmmsg \- send multiple messages on a socket
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BI "#include <sys/socket.h>"
.PP
.BI "int sendmmsg(int " sockfd ", struct mmsghdr *" msgvec \
", unsigned int " vlen ","
.BI " unsigned int " flags ");"

View File

@ -13,11 +13,11 @@ get_thread_area, set_thread_area \- set a GDT entry for thread-local storage
.nf
.B #include <linux/unistd.h>
.B #include <asm/ldt.h>
.PP
.BI "int get_thread_area(struct user_desc *" u_info );
.BI "int set_thread_area(struct user_desc *" u_info );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -31,7 +31,7 @@ set_tid_address \- set pointer to thread ID
.PP
.BI "long set_tid_address(int *" tidptr );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -30,7 +30,7 @@ sgetmask, ssetmask \- manipulation of signal mask (obsolete)
.B "long sgetmask(void);"
.PP
.BI "long ssetmask(long " newmask );
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -45,9 +45,9 @@ shmat, shmdt \- System V shared memory operations
.nf
.B #include <sys/types.h>
.B #include <sys/shm.h>
.PP
.BI "void *shmat(int " shmid ", const void *" shmaddr ", int " shmflg );
.PP
.BI "int shmdt(const void *" shmaddr );
.fi
.SH DESCRIPTION

View File

@ -65,7 +65,7 @@ Feature Test Macro Requirements for glibc (see
.ad l
.BR sigaction ():
_POSIX_C_SOURCE
.PP
.IR siginfo_t :
_POSIX_C_SOURCE >= 199309L
.ad b

View File

@ -35,16 +35,15 @@ sigprocmask, rt_sigprocmask \- examine and change blocked signals
.nf
/* Prototype for the glibc wrapper function */
.BI "int sigprocmask(int " how ", const sigset_t *" set ", sigset_t *" oldset );
.PP
/* Prototype for the underlying system call */
.BI "int rt_sigprocmask(int " how ", const kernel_sigset_t *" set ,
.BI " kernel_sigset_t *" oldset ", size_t " sigsetsize );
.PP
/* Prototype for the legacy system call (deprecated) */
.BI "int sigprocmask(int " how ", const old_kernel_sigset_t *" set ,
.BI " old_kernel_sigset_t *" oldset ); "
.fi
.PP
.in -4n
Feature Test Macro Requirements for glibc (see

View File

@ -30,7 +30,7 @@ splice \- splice data to/from a pipe
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.PP
.BI "ssize_t splice(int " fd_in ", loff_t *" off_in ", int " fd_out ,
.BI " loff_t *" off_out ", size_t " len \
", unsigned int " flags );

View File

@ -29,12 +29,12 @@ spu_create \- create a new spu context
.nf
.B #include <sys/types.h>
.B #include <sys/spu.h>
.PP
.BI "int spu_create(const char *" pathname ", int " flags ", mode_t " mode ");"
.BI "int spu_create(const char *" pathname ", int " flags ", mode_t " mode ","
.BI " int " neighbor_fd ");"
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -29,11 +29,11 @@ spu_run \- execute an SPU context
.SH SYNOPSIS
.nf
.B #include <sys/spu.h>
.PP
.BI "int spu_run(int " fd ", unsigned int *" npc \
", unsigned int *" event ");"
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -37,11 +37,11 @@ statx \- get file status (extended)
.B #include <sys/stat.h>
.B #include <unistd.h>
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.PP
.BI "int statx(int " dirfd ", const char *" pathname ", int " flags ","
.BI " unsigned int " mask ", struct statx *" statxbuf );
.fi
.PP
.IR Note :
There is no glibc wrapper for
.BR statx ();

View File

@ -35,7 +35,7 @@ subpage_prot \- define a subpage protection for an address range
.BI "long subpage_prot(unsigned long " addr ", unsigned long " len ,
.BI " uint32_t *" map ");
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -34,7 +34,7 @@ sync_file_range \- sync a file segment with disk
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.PP
.BI "int sync_file_range(int " fd ", off64_t " offset ", off64_t " nbytes ,
.BI " unsigned int " flags );
.fi

View File

@ -47,7 +47,7 @@ syscall \- indirect system call
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
.BR "#include <sys/syscall.h> " "/* For SYS_xxx definitions */"
.PP
.BI "long syscall(long " number ", ...);"
.fi
.SH DESCRIPTION

View File

@ -38,7 +38,7 @@ sysctl \- read/write system parameters
.PP
.BI "int _sysctl(struct __sysctl_args *" args );
.fi
.PP
.IR Note :
There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION

View File

@ -29,9 +29,9 @@
sysfs \- get filesystem type information
.SH SYNOPSIS
.BI "int sysfs(int " option ", const char *" fsname );
.PP
.BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
.PP
.BI "int sysfs(int " option );
.SH DESCRIPTION
.BR sysfs ()

View File

@ -30,7 +30,7 @@ tee \- duplicating pipe content
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.PP
.BI "ssize_t tee(int " fd_in ", int " fd_out ", size_t " len \
", unsigned int " flags );
.fi

View File

@ -30,11 +30,11 @@ timer_create \- create a POSIX per-process timer
.nf
.B #include <signal.h>
.B #include <time.h>
.PP
.BI "int timer_create(clockid_t " clockid ", struct sigevent *" sevp ,
.BI " timer_t *" timerid );
.fi
.PP
Link with \fI\-lrt\fP.
.PP
.in -4n

View File

@ -29,10 +29,10 @@ timer_delete \- delete a POSIX per-process timer
.SH SYNOPSIS
.nf
.B #include <time.h>
.PP
.BI "int timer_delete(timer_t " timerid );
.fi
.PP
Link with \fI\-lrt\fP.
.PP
.in -4n

View File

@ -29,10 +29,10 @@ timer_getoverrun \- get overrun count for a POSIX per-process timer
.SH SYNOPSIS
.nf
.B #include <time.h>
.PP
.BI "int timer_getoverrun(timer_t " timerid );
.fi
.PP
Link with \fI\-lrt\fP.
.PP
.in -4n

View File

@ -30,13 +30,13 @@ state of POSIX per-process timer
.SH SYNOPSIS
.nf
.B #include <time.h>
.PP
.BI "int timer_settime(timer_t " timerid ", int " flags ,
.BI " const struct itimerspec *" new_value ,
.BI " struct itimerspec *" old_value );
.BI "int timer_gettime(timer_t " timerid ", struct itimerspec *" curr_value );
.fi
.PP
Link with \fI\-lrt\fP.
.PP
.in -4n

View File

@ -35,7 +35,7 @@ tkill, tgkill \- send a signal to a thread
.PP
.BI "int tgkill(int " tgid ", int " tid ", int " sig );
.fi
.PP
.IR Note :
There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION

View File

@ -35,7 +35,7 @@ uselib \- load shared library
.B #include <unistd.h>
.PP
.BI "int uselib(const char *" library );
.PP
.IR Note :
No declaration of this system call is provided in glibc headers; see NOTES.
.SH DESCRIPTION

View File

@ -33,7 +33,7 @@ utimensat, futimens \- change file timestamps with nanosecond precision
.PP
.BI "int utimensat(int " dirfd ", const char *" pathname ,
.BI " const struct timespec " times "[2], int " flags );
.PP
.BI "int futimens(int " fd ", const struct timespec " times [2]);
.fi
.PP

View File

@ -31,7 +31,7 @@ vmsplice \- splice user pages into a pipe
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.B #include <sys/uio.h>
.PP
.BI "ssize_t vmsplice(int " fd ", const struct iovec *" iov ,
.BI " unsigned long " nr_segs ", unsigned int " flags );
.fi

View File

@ -55,9 +55,9 @@ wait, waitpid, waitid \- wait for process to change state
.B #include <sys/wait.h>
.PP
.BI "pid_t wait(int *" "wstatus" );
.PP
.BI "pid_t waitpid(pid_t " pid ", int *" wstatus ", int " options );
.PP
.BI "int waitid(idtype_t " idtype ", id_t " id \
", siginfo_t *" infop ", int " options );
/* This is the glibc and POSIX interface; see

View File

@ -30,7 +30,7 @@ aio_init \- asynchronous I/O initialization
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B "#include <aio.h>"
.PP
.BI "void aio_init(const struct aioinit *" init );
.fi
.PP

View File

@ -62,7 +62,7 @@ _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
.PP
.BR asinhf (),
.BR asinhl ():
.RS 4

View File

@ -38,12 +38,12 @@ atan2, atan2f, atan2l \- arc tangent function of two variables
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.BI "double atan2(double " y ", double " x );
.BI "float atan2f(float " y ", float " x );
.BI "long double atan2l(long double " y ", long double " x );
.fi
.PP
Link with \fI\-lm\fP.
.PP
.in -4n

View File

@ -62,7 +62,7 @@ _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
.PP
.BR atanhf (),
.BR atanhl ():
.RS 4

View File

@ -30,17 +30,17 @@ backtrace, backtrace_symbols, backtrace_symbols_fd \- support
for application self-debugging
.SH SYNOPSIS
.B #include <execinfo.h>
.PP
.B int backtrace(void
.BI ** buffer ,
.B int
.IB size );
.PP
.B char **backtrace_symbols(void *const
.BI * buffer ,
.B int
.IB size );
.PP
.B void backtrace_symbols_fd(void *const
.BI * buffer ,
.B int

View File

@ -32,7 +32,7 @@ basename, dirname \- parse pathname components
.B #include <libgen.h>
.PP
.BI "char *dirname(char *" path );
.PP
.BI "char *basename(char *" path );
.fi
.SH DESCRIPTION

View File

@ -28,7 +28,7 @@ bswap_16, bswap_32, bswap_64 \- reverse order of bytes
.SH SYNOPSIS
.nf
.B #include <byteswap.h>
.PP
.BI bswap_16( x );
.BI bswap_32( x );
.BI bswap_64( x );

View File

@ -30,7 +30,7 @@ bzero, explicit_bzero \- zero a byte string
.B #include <strings.h>
.PP
.BI "void bzero(void *" s ", size_t " n );
.PP
.B #include <string.h>
.PP
.BI "void explicit_bzero(void *" s ", size_t " n );

View File

@ -29,7 +29,7 @@ catgets \- get message from a message catalog
.SH SYNOPSIS
.nf
.B #include <nl_types.h>
.PP
.BI "char *catgets(nl_catd " catalog ", int " set_number \
", int " message_number ,
.BI " const char *" message );

View File

@ -32,7 +32,7 @@ catopen, catclose \- open/close a message catalog
.B #include <nl_types.h>
.PP
.BI "nl_catd catopen(const char *" name ", int " flag );
.PP
.BI "int catclose(nl_catd " catalog );
.SH DESCRIPTION
The function

View File

@ -31,12 +31,12 @@ dladdr, dladdr1 \- translate address to symbolic information
.nf
.B #define _GNU_SOURCE
.B #include <dlfcn.h>
.PP
.BI "int dladdr(void *" addr ", Dl_info *" info );
.PP
.BI "int dladdr1(void *" addr ", Dl_info *" info ", void **" \
extra_info ", int " flags );
.PP
Link with \fI\-ldl\fP.
.fi
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ dlsym, dlvsym \- obtain address of a symbol in a shared object or executable
.B #include <dlfcn.h>
.PP
.BI "void *dlsym(void *" handle ", const char *" symbol );
.PP
.B #define _GNU_SOURCE
.br
.B #include <dlfcn.h>

View File

@ -33,17 +33,17 @@ convert values between host and big-/little-endian byte order
.SH SYNOPSIS
.nf
.B #include <endian.h>
.PP
.BI "uint16_t htobe16(uint16_t " host_16bits );
.BI "uint16_t htole16(uint16_t " host_16bits );
.BI "uint16_t be16toh(uint16_t " big_endian_16bits );
.BI "uint16_t le16toh(uint16_t " little_endian_16bits );
.PP
.BI "uint32_t htobe32(uint32_t " host_32bits );
.BI "uint32_t htole32(uint32_t " host_32bits );
.BI "uint32_t be32toh(uint32_t " big_endian_32bits );
.BI "uint32_t le32toh(uint32_t " little_endian_32bits );
.PP
.BI "uint64_t htobe64(uint64_t " host_64bits );
.BI "uint64_t htole64(uint64_t " host_64bits );
.BI "uint64_t be64toh(uint64_t " big_endian_64bits );

View File

@ -14,23 +14,23 @@ envz_remove, envz_strip \- environment string support
.SH SYNOPSIS
.nf
.B "#include <envz.h>"
.PP
.BI "error_t envz_add(char **" envz ", size_t *" envz_len ,
.BI " const char *" name ", const char *" value );
.PP
.BI "char *envz_entry(const char *" envz ", size_t " envz_len \
", const char *" name );
.PP
.BI "char *envz_get(const char *" envz ", size_t " envz_len \
", const char *" name );
.PP
.BI "error_t envz_merge(char **" envz ", size_t *" envz_len ,
.BI " const char *" envz2 ", size_t " envz2_len \
", int " override );
.PP
.BI "void envz_remove(char **" envz ", size_t *" envz_len \
", const char *" name );
.PP
.BI "void envz_strip(char **" envz ", size_t *" envz_len );
.fi
.SH DESCRIPTION

View File

@ -38,11 +38,11 @@ erf, erff, erfl, \- error function
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.BI "double erf(double " x );
.BI "float erff(float " x );
.BI "long double erfl(long double " x );
.PP
.fi
Link with \fI\-lm\fP.
.PP

View File

@ -29,12 +29,12 @@ erfc, erfcf, erfcl \- complementary error function
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.BI "double erfc(double " x );
.BI "float erfcf(float " x );
.BI "long double erfcl(long double " x );
.fi
.PP
Link with \fI\-lm\fP.
.PP
.in -4n

View File

@ -31,16 +31,16 @@ error_print_progname \- glibc error reporting functions
.SH SYNOPSIS
.nf
.B #include <error.h>
.PP
.BI "void error(int " status ", int " errnum ", const char *" format ", ...);"
.PP
.BI "void error_at_line(int " status ", int " errnum ", const char *" filename ,
.BI " unsigned int " linenum ", const char *" format ", ...);"
.PP
.BI "extern unsigned int " error_message_count ;
.PP
.BI "extern int " error_one_per_line ;
.PP
.BI "extern void (*" error_print_progname ") (void);"
.fi
.SH DESCRIPTION

View File

@ -48,11 +48,11 @@ clearerr, feof, ferror, fileno \- check and reset stream status
.B #include <stdio.h>
.PP
.BI "void clearerr(FILE *" stream );
.PP
.BI "int feof(FILE *" stream );
.PP
.BI "int ferror(FILE *" stream );
.PP
.BI "int fileno(FILE *" stream );
.PP
.in -4n

View File

@ -38,7 +38,7 @@ ffs, ffsl, ffsll \- find first bit set in a word
.B #include <strings.h>
.PP
.BI "int ffs(int " i );
.PP
.B #include <string.h>
.PP
.BI "int ffsl(long int " i );

View File

@ -32,13 +32,13 @@ fgetc, fgets, getc, getchar, ungetc \- input of characters and strings
.B #include <stdio.h>
.PP
.BI "int fgetc(FILE *" stream );
.PP
.BI "char *fgets(char *" "s" ", int " "size" ", FILE *" "stream" );
.PP
.BI "int getc(FILE *" stream );
.PP
.B "int getchar(void);"
.PP
.BI "int ungetc(int " c ", FILE *" stream );
.fi
.SH DESCRIPTION

View File

@ -10,7 +10,7 @@ fmemopen \- open memory as stream
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.PP
.BI "FILE *fmemopen(void *"buf ", size_t "size ", const char *" mode ");"
.fi
.PP

View File

@ -49,9 +49,9 @@ fopen, fdopen, freopen \- stream open functions
.B #include <stdio.h>
.PP
.BI "FILE *fopen(const char *" pathname ", const char *" mode );
.PP
.BI "FILE *fdopen(int " fd ", const char *" mode );
.PP
.BI "FILE *freopen(const char *" pathname ", const char *" mode ", FILE *" stream );
.fi
.PP

Some files were not shown because too many files have changed in this diff Show More