Various pages: Use .nf/.fi in SYNOPSIS

The majority of pages use .nf/.fi in SYNOPSIS, but there are
still many that don't and use .br to achieve newlines. Fix many
of those. This brings greater consistency to the pages, which
eases editing and may ease future scripted edits to the pages.

Many of these changes were script-assisted, with some additional
manual edits.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-01-03 12:49:03 +01:00
parent 511bb71b0c
commit c7db92b96a
210 changed files with 423 additions and 205 deletions

View File

@ -26,7 +26,9 @@
.SH NAME .SH NAME
getent \- get entries from Name Service Switch libraries getent \- get entries from Name Service Switch libraries
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B getent\ [\fIoption\fP]...\ \fIdatabase\fP\ \fIkey\fP... .B getent\ [\fIoption\fP]...\ \fIdatabase\fP\ \fIkey\fP...
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.B getent .B getent

View File

@ -15,7 +15,9 @@
.SH NAME .SH NAME
ldd \- print shared object dependencies ldd \- print shared object dependencies
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR ldd " [\fIoption\fP]... \fIfile\fP..." .BR ldd " [\fIoption\fP]... \fIfile\fP..."
.fi
.SH DESCRIPTION .SH DESCRIPTION
.B ldd .B ldd
prints the shared objects (shared libraries) required by each program or prints the shared objects (shared libraries) required by each program or

View File

@ -25,7 +25,9 @@
.SH NAME .SH NAME
memusage \- profile memory usage of a program memusage \- profile memory usage of a program
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR memusage " [\fIoption\fR]... \fIprogram\fR [\fIprogramoption\fR]..." .BR memusage " [\fIoption\fR]... \fIprogram\fR [\fIprogramoption\fR]..."
.fi
.SH DESCRIPTION .SH DESCRIPTION
.B memusage .B memusage
is a bash script which profiles memory usage of the program, is a bash script which profiles memory usage of the program,

View File

@ -24,7 +24,9 @@
.SH NAME .SH NAME
memusagestat \- generate graphic from memory profiling data memusagestat \- generate graphic from memory profiling data
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR memusagestat " [\fIoption\fR]... \fIdatafile\fR [\fIoutfile\fR]" .BR memusagestat " [\fIoption\fR]... \fIdatafile\fR [\fIoutfile\fR]"
.fi
.SH DESCRIPTION .SH DESCRIPTION
.B memusagestat .B memusagestat
creates a PNG file containing a graphical representation of the creates a PNG file containing a graphical representation of the

View File

@ -24,7 +24,9 @@
.SH NAME .SH NAME
mtrace \- interpret the malloc trace log mtrace \- interpret the malloc trace log
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR mtrace " [\fIoption\fR]... [\fIbinary\fR] \fImtracedata\fR" .BR mtrace " [\fIoption\fR]... [\fIbinary\fR] \fImtracedata\fR"
.fi
.SH DESCRIPTION .SH DESCRIPTION
.B mtrace .B mtrace
is a Perl script used to interpret and provide human readable output is a Perl script used to interpret and provide human readable output

View File

@ -30,6 +30,7 @@
.SH NAME .SH NAME
_exit, _Exit \- terminate the calling process _exit, _Exit \- terminate the calling process
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "void _exit(int " status ); .BI "void _exit(int " status );
@ -37,6 +38,7 @@ _exit, _Exit \- terminate the calling process
.B #include <stdlib.h> .B #include <stdlib.h>
.PP .PP
.BI "void _Exit(int " status ); .BI "void _Exit(int " status );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -39,11 +39,13 @@
.SH NAME .SH NAME
_syscall \- invoking a system call without library support (OBSOLETE) _syscall \- invoking a system call without library support (OBSOLETE)
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <linux/unistd.h> .B #include <linux/unistd.h>
.PP .PP
A _syscall macro A _syscall macro
.PP .PP
desired system call desired system call
.fi
.SH DESCRIPTION .SH DESCRIPTION
The important thing to know about a system call is its prototype. The important thing to know about a system call is its prototype.
You need to know how many arguments, their types, You need to know how many arguments, their types,

View File

@ -34,11 +34,12 @@
.SH NAME .SH NAME
chdir, fchdir \- change working directory chdir, fchdir \- change working directory
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int chdir(const char *" path ); .BI "int chdir(const char *" path );
.br
.BI "int fchdir(int " fd ); .BI "int fchdir(int " fd );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -22,10 +22,12 @@
.SH NAME .SH NAME
epoll_ctl \- control interface for an epoll file descriptor epoll_ctl \- control interface for an epoll file descriptor
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/epoll.h> .B #include <sys/epoll.h>
.PP .PP
.BI "int epoll_ctl(int " epfd ", int " op ", int " fd \ .BI "int epoll_ctl(int " epfd ", int " op ", int " fd \
", struct epoll_event *" event ); ", struct epoll_event *" event );
.fi
.SH DESCRIPTION .SH DESCRIPTION
This system call is used to add, modify, or remove This system call is used to add, modify, or remove
entries in the interest list of the entries in the interest list of the

View File

@ -23,9 +23,11 @@
.SH NAME .SH NAME
eventfd \- create a file descriptor for event notification eventfd \- create a file descriptor for event notification
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/eventfd.h> .B #include <sys/eventfd.h>
.PP .PP
.BI "int eventfd(unsigned int " initval ", int " flags ); .BI "int eventfd(unsigned int " initval ", int " flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR eventfd () .BR eventfd ()
creates an "eventfd object" that can be used as creates an "eventfd object" that can be used as

View File

@ -38,11 +38,12 @@
.SH NAME .SH NAME
execve \- execute program execve \- execute program
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int execve(const char *" pathname ", char *const " argv [], .BI "int execve(const char *" pathname ", char *const " argv [],
.br
.BI " char *const " envp []); .BI " char *const " envp []);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR execve () .BR execve ()
executes the program referred to by \fIpathname\fP. executes the program referred to by \fIpathname\fP.

View File

@ -27,13 +27,13 @@
.SH NAME .SH NAME
execveat \- execute program relative to a directory file descriptor execveat \- execute program relative to a directory file descriptor
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int execveat(int " dirfd ", const char *" pathname "," .BI "int execveat(int " dirfd ", const char *" pathname ","
.br
.BI " char *const " argv "[], char *const " envp "[]," .BI " char *const " argv "[], char *const " envp "[],"
.br
.BI " int " flags ); .BI " int " flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874 .\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874
The The

View File

@ -25,11 +25,12 @@
.SH NAME .SH NAME
fanotify_init \- create and initialize fanotify group fanotify_init \- create and initialize fanotify group
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <fcntl.h> .B #include <fcntl.h>
.br
.B #include <sys/fanotify.h> .B #include <sys/fanotify.h>
.PP .PP
.BI "int fanotify_init(unsigned int " flags ", unsigned int " event_f_flags ); .BI "int fanotify_init(unsigned int " flags ", unsigned int " event_f_flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
For an overview of the fanotify API, see For an overview of the fanotify API, see
.BR fanotify (7). .BR fanotify (7).

View File

@ -36,9 +36,11 @@
.SH NAME .SH NAME
flock \- apply or remove an advisory lock on an open file flock \- apply or remove an advisory lock on an open file
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/file.h> .B #include <sys/file.h>
.PP .PP
.BI "int flock(int " fd ", int " operation ); .BI "int flock(int " fd ", int " operation );
.fi
.SH DESCRIPTION .SH DESCRIPTION
Apply or remove an advisory lock on the open file specified by Apply or remove an advisory lock on the open file specified by
.IR fd . .IR fd .

View File

@ -40,11 +40,12 @@
.SH NAME .SH NAME
fork \- create a child process fork \- create a child process
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B pid_t fork(void); .B pid_t fork(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR fork () .BR fork ()
creates a new process by duplicating the calling process. creates a new process by duplicating the calling process.

View File

@ -39,11 +39,13 @@
.SH NAME .SH NAME
fsync, fdatasync \- synchronize a file's in-core state with storage device fsync, fdatasync \- synchronize a file's in-core state with storage device
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int fsync(int " fd ); .BI "int fsync(int " fd );
.PP .PP
.BI "int fdatasync(int " fd ); .BI "int fdatasync(int " fd );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -26,13 +26,13 @@
.SH NAME .SH NAME
getgid, getegid \- get group identity getgid, getegid \- get group identity
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/types.h> .B #include <sys/types.h>
.PP .PP
.B gid_t getgid(void); .B gid_t getgid(void);
.br
.B gid_t getegid(void); .B gid_t getegid(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getgid () .BR getgid ()
returns the real group ID of the calling process. returns the real group ID of the calling process.

View File

@ -33,8 +33,8 @@
.SH NAME .SH NAME
getgroups, setgroups \- get/set list of supplementary group IDs getgroups, setgroups \- get/set list of supplementary group IDs
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int getgroups(int " size ", gid_t " list []); .BI "int getgroups(int " size ", gid_t " list []);
@ -42,6 +42,7 @@ getgroups, setgroups \- get/set list of supplementary group IDs
.B #include <grp.h> .B #include <grp.h>
.PP .PP
.BI "int setgroups(size_t " size ", const gid_t *" list ); .BI "int setgroups(size_t " size ", const gid_t *" list );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -43,10 +43,12 @@
.SH NAME .SH NAME
getpeername \- get name of connected peer socket getpeername \- get name of connected peer socket
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/socket.h> .B #include <sys/socket.h>
.PP .PP
.BI "int getpeername(int " sockfd ", struct sockaddr *" addr \ .BI "int getpeername(int " sockfd ", struct sockaddr *" addr \
", socklen_t *" addrlen ); ", socklen_t *" addrlen );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getpeername () .BR getpeername ()
returns the address of the peer connected to the socket returns the address of the peer connected to the socket

View File

@ -26,13 +26,13 @@
.SH NAME .SH NAME
getpid, getppid \- get process identification getpid, getppid \- get process identification
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B pid_t getpid(void); .B pid_t getpid(void);
.br
.B pid_t getppid(void); .B pid_t getppid(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getpid () .BR getpid ()
returns the process ID (PID) of the calling process. returns the process ID (PID) of the calling process.

View File

@ -46,13 +46,13 @@
.SH NAME .SH NAME
getpriority, setpriority \- get/set program scheduling priority getpriority, setpriority \- get/set program scheduling priority
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/time.h> .B #include <sys/time.h>
.br
.B #include <sys/resource.h> .B #include <sys/resource.h>
.PP .PP
.BI "int getpriority(int " which ", id_t " who ); .BI "int getpriority(int " which ", id_t " who );
.br
.BI "int setpriority(int " which ", id_t " who ", int " prio ); .BI "int setpriority(int " which ", id_t " who ", int " prio );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The scheduling priority of the process, process group, or user, as The scheduling priority of the process, process group, or user, as
indicated by indicated by

View File

@ -28,9 +28,11 @@
.SH NAME .SH NAME
getrandom \- obtain a series of random bytes getrandom \- obtain a series of random bytes
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/random.h> .B #include <sys/random.h>
.PP .PP
.BI "ssize_t getrandom(void *"buf ", size_t " buflen ", unsigned int " flags ); .BI "ssize_t getrandom(void *"buf ", size_t " buflen ", unsigned int " flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR getrandom () .BR getrandom ()

View File

@ -29,13 +29,13 @@
.SH NAME .SH NAME
getresuid, getresgid \- get real, effective and saved user/group IDs getresuid, getresgid \- get real, effective and saved user/group IDs
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int getresuid(uid_t *" ruid ", uid_t *" euid ", uid_t *" suid ); .BI "int getresuid(uid_t *" ruid ", uid_t *" euid ", uid_t *" suid );
.br
.BI "int getresgid(gid_t *" rgid ", gid_t *" egid ", gid_t *" sgid ); .BI "int getresgid(gid_t *" rgid ", gid_t *" egid ", gid_t *" sgid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getresuid () .BR getresuid ()
returns the real UID, the effective UID, and the saved set-user-ID returns the real UID, the effective UID, and the saved set-user-ID

View File

@ -65,18 +65,16 @@
.SH NAME .SH NAME
getrlimit, setrlimit, prlimit \- get/set resource limits getrlimit, setrlimit, prlimit \- get/set resource limits
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/time.h> .B #include <sys/time.h>
.br
.B #include <sys/resource.h> .B #include <sys/resource.h>
.PP .PP
.BI "int getrlimit(int " resource ", struct rlimit *" rlim ); .BI "int getrlimit(int " resource ", struct rlimit *" rlim );
.br
.BI "int setrlimit(int " resource ", const struct rlimit *" rlim ); .BI "int setrlimit(int " resource ", const struct rlimit *" rlim );
.PP .PP
.BI "int prlimit(pid_t " pid ", int " resource \ .BI "int prlimit(pid_t " pid ", int " resource ", const struct rlimit *" new_limit ,
", const struct rlimit *" new_limit ,
.br
.BI " struct rlimit *" old_limit ); .BI " struct rlimit *" old_limit );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -40,11 +40,12 @@
.SH NAME .SH NAME
getrusage \- get resource usage getrusage \- get resource usage
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/time.h> .B #include <sys/time.h>
.br
.B #include <sys/resource.h> .B #include <sys/resource.h>
.PP .PP
.BI "int getrusage(int " who ", struct rusage *" usage ); .BI "int getrusage(int " who ", struct rusage *" usage );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getrusage () .BR getrusage ()
returns resource usage measures for returns resource usage measures for

View File

@ -28,11 +28,12 @@
.SH NAME .SH NAME
getsid \- get session ID getsid \- get session ID
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "pid_t getsid(pid_t" " pid" ); .BI "pid_t getsid(pid_t" " pid" );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -27,13 +27,13 @@
.SH NAME .SH NAME
getuid, geteuid \- get user identity getuid, geteuid \- get user identity
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/types.h> .B #include <sys/types.h>
.PP .PP
.B uid_t getuid(void); .B uid_t getuid(void);
.br
.B uid_t geteuid(void); .B uid_t geteuid(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR getuid () .BR getuid ()
returns the real user ID of the calling process. returns the real user ID of the calling process.

View File

@ -33,9 +33,11 @@
.SH NAME .SH NAME
idle \- make process 0 idle idle \- make process 0 idle
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B int idle(void); .B int idle(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR idle () .BR idle ()
is an internal system call used during bootstrap. is an internal system call used during bootstrap.

View File

@ -29,9 +29,11 @@
.SH NAME .SH NAME
inotify_add_watch \- add a watch to an initialized inotify instance inotify_add_watch \- add a watch to an initialized inotify instance
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/inotify.h> .B #include <sys/inotify.h>
.PP .PP
.BI "int inotify_add_watch(int " fd ", const char *" pathname ", uint32_t " mask ); .BI "int inotify_add_watch(int " fd ", const char *" pathname ", uint32_t " mask );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR inotify_add_watch () .BR inotify_add_watch ()
adds a new watch, or modifies an existing watch, adds a new watch, or modifies an existing watch,

View File

@ -28,11 +28,13 @@
.SH NAME .SH NAME
inotify_rm_watch \- remove an existing watch from an inotify instance inotify_rm_watch \- remove an existing watch from an inotify instance
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/inotify.h> .B #include <sys/inotify.h>
.PP .PP
.BI "int inotify_rm_watch(int " fd ", int " wd ); .BI "int inotify_rm_watch(int " fd ", int " wd );
.\" Before glibc 2.10, the second argument was types as uint32_t. .\" Before glibc 2.10, the second argument was types as uint32_t.
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR inotify_rm_watch () .BR inotify_rm_watch ()
removes the watch associated with the watch descriptor removes the watch associated with the watch descriptor

View File

@ -42,11 +42,13 @@
.SH NAME .SH NAME
ioctl \- control device ioctl \- control device
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/ioctl.h> .B #include <sys/ioctl.h>
.PP .PP
.BI "int ioctl(int " fd ", unsigned long " request ", ...);" .BI "int ioctl(int " fd ", unsigned long " request ", ...);"
.\" POSIX says 'request' is int, but glibc has the above .\" POSIX says 'request' is int, but glibc has the above
.\" See https://bugzilla.kernel.org/show_bug.cgi?id=42705 .\" See https://bugzilla.kernel.org/show_bug.cgi?id=42705
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR ioctl () .BR ioctl ()

View File

@ -24,13 +24,13 @@
.SH NAME .SH NAME
ioctl_ficlonerange, ioctl_ficlone \- share some the data of one file with another file ioctl_ficlonerange, ioctl_ficlone \- share some the data of one file with another file
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/ioctl.h> .B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h> .B #include <linux/fs.h>
.PP .PP
.BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg ); .BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );
.br
.BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd ); .BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd );
.fi
.SH DESCRIPTION .SH DESCRIPTION
If a filesystem supports files sharing physical storage between multiple If a filesystem supports files sharing physical storage between multiple
files ("reflink"), this files ("reflink"), this

View File

@ -24,11 +24,12 @@
.SH NAME .SH NAME
ioctl_fideduperange \- share some the data of one file with another file ioctl_fideduperange \- share some the data of one file with another file
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/ioctl.h> .B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h> .B #include <linux/fs.h>
.PP .PP
.BI "int ioctl(int " src_fd ", FIDEDUPERANGE, struct file_dedupe_range *" arg ); .BI "int ioctl(int " src_fd ", FIDEDUPERANGE, struct file_dedupe_range *" arg );
.fi
.SH DESCRIPTION .SH DESCRIPTION
If a filesystem supports files sharing physical storage between multiple If a filesystem supports files sharing physical storage between multiple
files, this files, this

View File

@ -24,13 +24,13 @@
.SH NAME .SH NAME
ioctl_fslabel \- get or set a filesystem label ioctl_fslabel \- get or set a filesystem label
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/ioctl.h> .B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h> .B #include <linux/fs.h>
.PP .PP
.BI "int ioctl(int " fd ", FS_IOC_GETFSLABEL, char " label [FSLABEL_MAX]); .BI "int ioctl(int " fd ", FS_IOC_GETFSLABEL, char " label [FSLABEL_MAX]);
.br
.BI "int ioctl(int " fd ", FS_IOC_SETFSLABEL, char " label [FSLABEL_MAX]); .BI "int ioctl(int " fd ", FS_IOC_SETFSLABEL, char " label [FSLABEL_MAX]);
.fi
.SH DESCRIPTION .SH DESCRIPTION
If a filesystem supports online label manipulation, these If a filesystem supports online label manipulation, these
.BR ioctl (2) .BR ioctl (2)

View File

@ -24,13 +24,13 @@
.SH NAME .SH NAME
ioctl_getfsmap \- retrieve the physical layout of the filesystem ioctl_getfsmap \- retrieve the physical layout of the filesystem
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/ioctl.h> .B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h> .B #include <linux/fs.h>
.br
.B #include <linux/fsmap.h> .B #include <linux/fsmap.h>
.PP .PP
.BI "int ioctl(int " fd ", FS_IOC_GETFSMAP, struct fsmap_head * " arg ); .BI "int ioctl(int " fd ", FS_IOC_GETFSMAP, struct fsmap_head * " arg );
.fi
.SH DESCRIPTION .SH DESCRIPTION
This This
.BR ioctl (2) .BR ioctl (2)

View File

@ -9,9 +9,11 @@
.SH NAME .SH NAME
ioctl_tty \- ioctls for terminals and serial lines ioctl_tty \- ioctls for terminals and serial lines
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <termios.h>" .B "#include <termios.h>"
.PP .PP
.BI "int ioctl(int " fd ", int " cmd ", ...);" .BI "int ioctl(int " fd ", int " cmd ", ...);"
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR ioctl (2) .BR ioctl (2)

View File

@ -35,10 +35,11 @@
.SH NAME .SH NAME
ioperm \- set port input/output permissions ioperm \- set port input/output permissions
.SH SYNOPSIS .SH SYNOPSIS
.B #include <sys/io.h> .nf
/* for glibc */ .BR "#include <sys/io.h>" " /* for glibc */"
.PP .PP
.BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on ); .BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR ioperm () .BR ioperm ()
sets the port access permission bits for the calling thread for sets the port access permission bits for the calling thread for

View File

@ -34,9 +34,11 @@
.SH NAME .SH NAME
iopl \- change I/O privilege level iopl \- change I/O privilege level
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/io.h> .B #include <sys/io.h>
.PP .PP
.BI "int iopl(int " level ); .BI "int iopl(int " level );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR iopl () .BR iopl ()
changes the I/O privilege level of the calling thread, changes the I/O privilege level of the calling thread,

View File

@ -28,7 +28,9 @@
.SH NAME .SH NAME
lookup_dcookie \- return a directory entry's path lookup_dcookie \- return a directory entry's path
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len ); .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len );
.fi
.SH DESCRIPTION .SH DESCRIPTION
Look up the full path of the directory entry specified by the value Look up the full path of the directory entry specified by the value
.IR cookie . .IR cookie .

View File

@ -47,11 +47,12 @@
.SH NAME .SH NAME
lseek \- reposition read/write file offset lseek \- reposition read/write file offset
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence ); .BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR lseek () .BR lseek ()
repositions the file offset of the open file description repositions the file offset of the open file description

View File

@ -36,9 +36,11 @@
.SH NAME .SH NAME
madvise \- give advice about use of memory madvise \- give advice about use of memory
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/mman.h> .B #include <sys/mman.h>
.PP .PP
.BI "int madvise(void *" addr ", size_t " length ", int " advice ); .BI "int madvise(void *" addr ", size_t " length ", int " advice );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -35,11 +35,12 @@
.SH NAME .SH NAME
mincore \- determine whether pages are resident in memory mincore \- determine whether pages are resident in memory
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/mman.h> .B #include <sys/mman.h>
.PP .PP
.BI "int mincore(void *" addr ", size_t " length ", unsigned char *" vec ); .BI "int mincore(void *" addr ", size_t " length ", unsigned char *" vec );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -26,9 +26,11 @@
.SH NAME .SH NAME
msync \- synchronize a file with a memory map msync \- synchronize a file with a memory map
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/mman.h> .B #include <sys/mman.h>
.PP .PP
.BI "int msync(void *" addr ", size_t " length ", int " flags ); .BI "int msync(void *" addr ", size_t " length ", int " flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR msync () .BR msync ()
flushes changes made to the in-core copy of a file that was mapped flushes changes made to the in-core copy of a file that was mapped

View File

@ -35,9 +35,11 @@
.SH NAME .SH NAME
nanosleep \- high-resolution sleep nanosleep \- high-resolution sleep
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <time.h> .B #include <time.h>
.PP .PP
.BI "int nanosleep(const struct timespec *" req ", struct timespec *" rem ); .BI "int nanosleep(const struct timespec *" req ", struct timespec *" rem );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -32,9 +32,11 @@
.SH NAME .SH NAME
nice \- change process priority nice \- change process priority
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int nice(int " inc ); .BI "int nice(int " inc );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -31,9 +31,11 @@
.SH NAME .SH NAME
pause \- wait for signal pause \- wait for signal
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B int pause(void); .B int pause(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR pause () .BR pause ()
causes the calling process (or thread) to sleep causes the calling process (or thread) to sleep

View File

@ -34,9 +34,11 @@
.SH NAME .SH NAME
personality \- set the process execution domain personality \- set the process execution domain
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/personality.h> .B #include <sys/personality.h>
.PP .PP
.BI "int personality(unsigned long " persona ); .BI "int personality(unsigned long " persona );
.fi
.SH DESCRIPTION .SH DESCRIPTION
Linux supports different execution domains, or personalities, for each Linux supports different execution domains, or personalities, for each
process. process.

View File

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

View File

@ -29,11 +29,11 @@
.SH NAME .SH NAME
reboot \- reboot or enable/disable Ctrl-Alt-Del reboot \- reboot or enable/disable Ctrl-Alt-Del
.SH SYNOPSIS .SH SYNOPSIS
.nf
/* Since kernel version 2.1.30 there are symbolic names LINUX_REBOOT_* /* Since kernel version 2.1.30 there are symbolic names LINUX_REBOOT_*
for the constants and a fourth argument to the call: */ for the constants and a fourth argument to the call: */
.PP .PP
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <linux/reboot.h> .B #include <linux/reboot.h>
.PP .PP
.BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg ); .BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg );
@ -44,10 +44,10 @@ reboot \- reboot or enable/disable Ctrl-Alt-Del
wrapper around the system call: */ wrapper around the system call: */
.PP .PP
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/reboot.h> .B #include <sys/reboot.h>
.PP .PP
.BI "int reboot(int " cmd ); .BI "int reboot(int " cmd );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR reboot () .BR reboot ()

View File

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

View File

@ -31,9 +31,11 @@
.SH NAME .SH NAME
rmdir \- delete a directory rmdir \- delete a directory
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int rmdir(const char *" pathname ); .BI "int rmdir(const char *" pathname );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR rmdir () .BR rmdir ()
deletes a directory, which must be empty. deletes a directory, which must be empty.

View File

@ -30,9 +30,11 @@
.SH NAME .SH NAME
sched_rr_get_interval \- get the SCHED_RR interval for the named process sched_rr_get_interval \- get the SCHED_RR interval for the named process
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sched.h> .B #include <sched.h>
.PP .PP
.BI "int sched_rr_get_interval(pid_t " pid ", struct timespec *" tp ); .BI "int sched_rr_get_interval(pid_t " pid ", struct timespec *" tp );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR sched_rr_get_interval () .BR sched_rr_get_interval ()
writes into the writes into the

View File

@ -30,9 +30,11 @@
.SH NAME .SH NAME
sched_yield \- yield the processor sched_yield \- yield the processor
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sched.h> .B #include <sched.h>
.PP .PP
.B int sched_yield(void); .B int sched_yield(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR sched_yield () .BR sched_yield ()
causes the calling thread to relinquish the CPU. causes the calling thread to relinquish the CPU.

View File

@ -20,6 +20,7 @@
.SH NAME .SH NAME
sendfile \- transfer data between file descriptors sendfile \- transfer data between file descriptors
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/sendfile.h> .B #include <sys/sendfile.h>
.PP .PP
.BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" \ .BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" \
@ -28,22 +29,16 @@ sendfile \- transfer data between file descriptors
.\" in the notes, not in the header. .\" in the notes, not in the header.
.\" .\"
.\" .B #include <features.h> .\" .B #include <features.h>
.\" .br
.\" .B #if (__GLIBC__==2 && __GLIBC_MINOR__>=1) || __GLIBC__>2 .\" .B #if (__GLIBC__==2 && __GLIBC_MINOR__>=1) || __GLIBC__>2
.\" .br
.\" .B #include <sys/sendfile.h> .\" .B #include <sys/sendfile.h>
.\" .br
.\" #else .\" #else
.\" .br
.\" .B #include <sys/types.h> .\" .B #include <sys/types.h>
.\" .br
.\" .B /* No system prototype before glibc 2.1. */ .\" .B /* No system prototype before glibc 2.1. */
.\" .br
.\" .BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" \ .\" .BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" \
.\" offset ", size_t" " count" ) .\" offset ", size_t" " count" )
.\" .br
.\" .B #endif .\" .B #endif
.\" .\"
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR sendfile () .BR sendfile ()
copies data between one file descriptor and another. copies data between one file descriptor and another.

View File

@ -30,13 +30,13 @@
.SH NAME .SH NAME
seteuid, setegid \- set effective user or group ID seteuid, setegid \- set effective user or group ID
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int seteuid(uid_t " euid ); .BI "int seteuid(uid_t " euid );
.br
.BI "int setegid(gid_t " egid ); .BI "int setegid(gid_t " egid );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -33,9 +33,11 @@
.SH NAME .SH NAME
setfsgid \- set group identity used for filesystem checks setfsgid \- set group identity used for filesystem checks
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/fsuid.h> .B #include <sys/fsuid.h>
.PP .PP
.BI "int setfsgid(uid_t " fsgid ); .BI "int setfsgid(uid_t " fsgid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
On Linux, a process has both a filesystem group ID and an effective group ID. On Linux, a process has both a filesystem group ID and an effective group ID.
The (Linux-specific) filesystem group ID is used The (Linux-specific) filesystem group ID is used

View File

@ -33,9 +33,11 @@
.SH NAME .SH NAME
setfsuid \- set user identity used for filesystem checks setfsuid \- set user identity used for filesystem checks
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/fsuid.h> .B #include <sys/fsuid.h>
.PP .PP
.BI "int setfsuid(uid_t " fsuid ); .BI "int setfsuid(uid_t " fsuid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
On Linux, a process has both a filesystem user ID and an effective user ID. On Linux, a process has both a filesystem user ID and an effective user ID.
The (Linux-specific) filesystem user ID is used The (Linux-specific) filesystem user ID is used

View File

@ -31,11 +31,12 @@
.SH NAME .SH NAME
setgid \- set group identity setgid \- set group identity
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int setgid(gid_t " gid ); .BI "int setgid(gid_t " gid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR setgid () .BR setgid ()
sets the effective group ID of the calling process. sets the effective group ID of the calling process.

View File

@ -28,13 +28,13 @@
.SH NAME .SH NAME
setresuid, setresgid \- set real, effective and saved user or group ID setresuid, setresgid \- set real, effective and saved user or group ID
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int setresuid(uid_t " ruid ", uid_t " euid ", uid_t " suid ); .BI "int setresuid(uid_t " ruid ", uid_t " euid ", uid_t " suid );
.br
.BI "int setresgid(gid_t " rgid ", gid_t " egid ", gid_t " sgid ); .BI "int setresgid(gid_t " rgid ", gid_t " egid ", gid_t " sgid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR setresuid () .BR setresuid ()
sets the real user ID, the effective user ID, and the sets the real user ID, the effective user ID, and the

View File

@ -47,13 +47,13 @@
.SH NAME .SH NAME
setreuid, setregid \- set real and/or effective user or group ID setreuid, setregid \- set real and/or effective user or group ID
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int setreuid(uid_t " ruid ", uid_t " euid ); .BI "int setreuid(uid_t " ruid ", uid_t " euid );
.br
.BI "int setregid(gid_t " rgid ", gid_t " egid ); .BI "int setregid(gid_t " rgid ", gid_t " egid );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -32,14 +32,14 @@
.SH NAME .SH NAME
setsid \- creates a session and sets the process group ID setsid \- creates a session and sets the process group ID
.SH SYNOPSIS .SH SYNOPSIS
.nf
.ad l .ad l
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B pid_t setsid(void); .B pid_t setsid(void);
.br
.ad b .ad b
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR setsid () .BR setsid ()
creates a new session if the calling process is not a creates a new session if the calling process is not a

View File

@ -32,11 +32,12 @@
.SH NAME .SH NAME
setuid \- set user identity setuid \- set user identity
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "int setuid(uid_t " uid ); .BI "int setuid(uid_t " uid );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR setuid () .BR setuid ()
sets the effective user ID of the calling process. sets the effective user ID of the calling process.

View File

@ -35,9 +35,11 @@
.SH NAME .SH NAME
setup \- setup devices and filesystems, mount root filesystem setup \- setup devices and filesystems, mount root filesystem
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B int setup(void); .B int setup(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR setup () .BR setup ()
is called once from within is called once from within

View File

@ -47,13 +47,14 @@
.SH NAME .SH NAME
shmctl \- System V shared memory control shmctl \- System V shared memory control
.SH SYNOPSIS .SH SYNOPSIS
.nf
.ad l .ad l
.B #include <sys/ipc.h> .B #include <sys/ipc.h>
.br
.B #include <sys/shm.h> .B #include <sys/shm.h>
.PP .PP
.BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf ); .BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf );
.ad b .ad b
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR shmctl () .BR shmctl ()
performs the control operation specified by performs the control operation specified by

View File

@ -39,13 +39,14 @@
.SH NAME .SH NAME
shmget \- allocates a System V shared memory segment shmget \- allocates a System V shared memory segment
.SH SYNOPSIS .SH SYNOPSIS
.nf
.ad l .ad l
.B #include <sys/ipc.h> .B #include <sys/ipc.h>
.br
.B #include <sys/shm.h> .B #include <sys/shm.h>
.PP .PP
.BI "int shmget(key_t " key ", size_t " size ", int " shmflg ); .BI "int shmget(key_t " key ", size_t " size ", int " shmflg );
.ad b .ad b
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR shmget () .BR shmget ()
returns the identifier of the System\ V shared memory segment returns the identifier of the System\ V shared memory segment

View File

@ -41,9 +41,11 @@
.SH NAME .SH NAME
shutdown \- shut down part of a full-duplex connection shutdown \- shut down part of a full-duplex connection
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/socket.h> .B #include <sys/socket.h>
.PP .PP
.BI "int shutdown(int " sockfd ", int " how ); .BI "int shutdown(int " sockfd ", int " how );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR shutdown () .BR shutdown ()

View File

@ -27,9 +27,11 @@
.SH NAME .SH NAME
sigaltstack \- set and/or get signal stack context sigaltstack \- set and/or get signal stack context
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <signal.h> .B #include <signal.h>
.PP .PP
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss ); .BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -37,11 +37,13 @@
.SH NAME .SH NAME
signal \- ANSI C signal handling signal \- ANSI C signal handling
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <signal.h> .B #include <signal.h>
.PP .PP
.B typedef void (*sighandler_t)(int); .B typedef void (*sighandler_t)(int);
.PP .PP
.BI "sighandler_t signal(int " signum ", sighandler_t " handler ); .BI "sighandler_t signal(int " signum ", sighandler_t " handler );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR WARNING : .BR WARNING :
the behavior of the behavior of

View File

@ -21,9 +21,11 @@
.SH NAME .SH NAME
signalfd \- create a file descriptor for accepting signals signalfd \- create a file descriptor for accepting signals
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/signalfd.h> .B #include <sys/signalfd.h>
.PP .PP
.BI "int signalfd(int " fd ", const sigset_t *" mask ", int " flags ); .BI "int signalfd(int " fd ", const sigset_t *" mask ", int " flags );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR signalfd () .BR signalfd ()
creates a file descriptor that can be used to accept signals creates a file descriptor that can be used to accept signals

View File

@ -30,9 +30,11 @@
.SH NAME .SH NAME
sigpending, rt_sigpending \- examine pending signals sigpending, rt_sigpending \- examine pending signals
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <signal.h> .B #include <signal.h>
.PP .PP
.BI "int sigpending(sigset_t *" set ); .BI "int sigpending(sigset_t *" set );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -31,7 +31,9 @@
.SH NAME .SH NAME
sigreturn, rt_sigreturn \- return from signal handler and cleanup stack frame sigreturn, rt_sigreturn \- return from signal handler and cleanup stack frame
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BI "int sigreturn(...);" .BI "int sigreturn(...);"
.fi
.SH DESCRIPTION .SH DESCRIPTION
If the Linux kernel determines that an unblocked If the Linux kernel determines that an unblocked
signal is pending for a process, then, signal is pending for a process, then,

View File

@ -30,9 +30,11 @@
.SH NAME .SH NAME
sigsuspend, rt_sigsuspend \- wait for a signal sigsuspend, rt_sigsuspend \- wait for a signal
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <signal.h> .B #include <signal.h>
.PP .PP
.BI "int sigsuspend(const sigset_t *" mask ); .BI "int sigsuspend(const sigset_t *" mask );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -43,11 +43,12 @@
.SH NAME .SH NAME
socket \- create an endpoint for communication socket \- create an endpoint for communication
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR "#include <sys/types.h>" " /* See NOTES */" .BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h> .B #include <sys/socket.h>
.PP .PP
.BI "int socket(int " domain ", int " type ", int " protocol ); .BI "int socket(int " domain ", int " type ", int " protocol );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR socket () .BR socket ()
creates an endpoint for communication and returns a file descriptor creates an endpoint for communication and returns a file descriptor

View File

@ -26,9 +26,11 @@
.SH NAME .SH NAME
socketcall \- socket system calls socketcall \- socket system calls
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <linux/net.h> .B #include <linux/net.h>
.PP .PP
.BI "int socketcall(int " call ", unsigned long *" args ); .BI "int socketcall(int " call ", unsigned long *" args );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR socketcall () .BR socketcall ()
is a common kernel entry point for the socket system calls. is a common kernel entry point for the socket system calls.

View File

@ -43,12 +43,13 @@
.SH NAME .SH NAME
socketpair \- create a pair of connected sockets socketpair \- create a pair of connected sockets
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR "#include <sys/types.h>" " /* See NOTES */" .BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h> .B #include <sys/socket.h>
.PP .PP
.BI "int socketpair(int " domain ", int " type ", int " protocol \ .BI "int socketpair(int " domain ", int " type ", int " protocol \
", int " sv [2]); ", int " sv [2]);
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR socketpair () .BR socketpair ()

View File

@ -29,11 +29,12 @@
.SH NAME .SH NAME
statfs, fstatfs \- get filesystem statistics statfs, fstatfs \- get filesystem statistics
.SH SYNOPSIS .SH SYNOPSIS
.nf
.BR "#include <sys/vfs.h> " "/* or <sys/statfs.h> */" .BR "#include <sys/vfs.h> " "/* or <sys/statfs.h> */"
.PP .PP
.BI "int statfs(const char *" path ", struct statfs *" buf ); .BI "int statfs(const char *" path ", struct statfs *" buf );
.br
.BI "int fstatfs(int " fd ", struct statfs *" buf ); .BI "int fstatfs(int " fd ", struct statfs *" buf );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR statfs () .BR statfs ()

View File

@ -31,9 +31,11 @@
.SH NAME .SH NAME
stime \- set time stime \- set time
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <time.h> .B #include <time.h>
.PP .PP
.BI "int stime(const time_t *" t ); .BI "int stime(const time_t *" t );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -43,13 +43,13 @@
.SH NAME .SH NAME
swapon, swapoff \- start/stop swapping to file/device swapon, swapoff \- start/stop swapping to file/device
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/swap.h> .B #include <sys/swap.h>
.PP .PP
.BI "int swapon(const char *" path ", int " swapflags ); .BI "int swapon(const char *" path ", int " swapflags );
.br
.BI "int swapoff(const char *" path ); .BI "int swapoff(const char *" path );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR swapon () .BR swapon ()
sets the swap area to the file or block device specified by sets the swap area to the file or block device specified by

View File

@ -37,11 +37,13 @@
.SH NAME .SH NAME
sync, syncfs \- commit filesystem caches to disk sync, syncfs \- commit filesystem caches to disk
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.B void sync(void); .B void sync(void);
.PP .PP
.BI "int syncfs(int " fd ); .BI "int syncfs(int " fd );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -32,7 +32,9 @@
.SH NAME .SH NAME
syscalls \- Linux system calls syscalls \- Linux system calls
.SH SYNOPSIS .SH SYNOPSIS
.nf
Linux system calls. Linux system calls.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The system call is the fundamental interface between an application The system call is the fundamental interface between an application
and the Linux kernel. and the Linux kernel.

View File

@ -36,9 +36,11 @@
.SH NAME .SH NAME
sysinfo \- return system information sysinfo \- return system information
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/sysinfo.h> .B #include <sys/sysinfo.h>
.PP .PP
.BI "int sysinfo(struct sysinfo *" info ); .BI "int sysinfo(struct sysinfo *" info );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR sysinfo () .BR sysinfo ()
returns certain statistics on memory and swap usage, returns certain statistics on memory and swap usage,

View File

@ -30,9 +30,11 @@
.SH NAME .SH NAME
time \- get time in seconds time \- get time in seconds
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <time.h> .B #include <time.h>
.PP .PP
.BI "time_t time(time_t *" tloc ); .BI "time_t time(time_t *" tloc );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR time () .BR time ()
returns the time as the number of seconds since the returns the time as the number of seconds since the

View File

@ -39,9 +39,11 @@
.SH NAME .SH NAME
times \- get process times times \- get process times
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/times.h> .B #include <sys/times.h>
.PP .PP
.BI "clock_t times(struct tms *" buf ); .BI "clock_t times(struct tms *" buf );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR times () .BR times ()
stores the current process times in the stores the current process times in the

View File

@ -44,13 +44,13 @@
.SH NAME .SH NAME
truncate, ftruncate \- truncate a file to a specified length truncate, ftruncate \- truncate a file to a specified length
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.br
.B #include <sys/types.h> .B #include <sys/types.h>
.PP .PP
.BI "int truncate(const char *" path ", off_t " length ); .BI "int truncate(const char *" path ", off_t " length );
.br
.BI "int ftruncate(int " fd ", off_t " length ); .BI "int ftruncate(int " fd ", off_t " length );
.fi
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -35,11 +35,12 @@
.SH NAME .SH NAME
umask \- set file mode creation mask umask \- set file mode creation mask
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/types.h> .B #include <sys/types.h>
.br
.B #include <sys/stat.h> .B #include <sys/stat.h>
.PP .PP
.BI "mode_t umask(mode_t " mask ); .BI "mode_t umask(mode_t " mask );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR umask () .BR umask ()
sets the calling process's file mode creation mask (umask) to sets the calling process's file mode creation mask (umask) to

View File

@ -28,9 +28,11 @@
.SH NAME .SH NAME
uname \- get name and information about current kernel uname \- get name and information about current kernel
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/utsname.h> .B #include <sys/utsname.h>
.PP .PP
.BI "int uname(struct utsname *" buf ); .BI "int uname(struct utsname *" buf );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR uname () .BR uname ()
returns system information in the structure pointed to by returns system information in the structure pointed to by

View File

@ -29,7 +29,9 @@ afs_syscall, break, fattach, fdetach, ftime, getmsg, getpmsg, gtty, isastream,
lock, madvise1, mpx, prof, profil, putmsg, putpmsg, security, lock, madvise1, mpx, prof, profil, putmsg, putpmsg, security,
stty, tuxcall, ulimit, vserver \- unimplemented system calls stty, tuxcall, ulimit, vserver \- unimplemented system calls
.SH SYNOPSIS .SH SYNOPSIS
.nf
Unimplemented system calls. Unimplemented system calls.
.fi
.SH DESCRIPTION .SH DESCRIPTION
These system calls are not implemented in the Linux kernel. These system calls are not implemented in the Linux kernel.
.SH RETURN VALUE .SH RETURN VALUE

View File

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

View File

@ -40,9 +40,11 @@
.SH NAME .SH NAME
write \- write to a file descriptor write \- write to a file descriptor
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <unistd.h> .B #include <unistd.h>
.PP .PP
.BI "ssize_t write(int " fd ", const void *" buf ", size_t " count ); .BI "ssize_t write(int " fd ", const void *" buf ", size_t " count );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR write () .BR write ()
writes up to writes up to

View File

@ -28,17 +28,15 @@ Programmer's Manual"
__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high \- __ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high \-
Set the Program Priority Register Set the Program Priority Register
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/platform/ppc.h> .B #include <sys/platform/ppc.h>
.PP .PP
.B void __ppc_set_ppr_med(void); .B void __ppc_set_ppr_med(void);
.br
.B void __ppc_set_ppr_very_low(void); .B void __ppc_set_ppr_very_low(void);
.br
.B void __ppc_set_ppr_low(void); .B void __ppc_set_ppr_low(void);
.br
.B void __ppc_set_ppr_med_low(void); .B void __ppc_set_ppr_med_low(void);
.br
.B void __ppc_set_ppr_med_high(void); .B void __ppc_set_ppr_med_high(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
These functions provide access to the These functions provide access to the
.I Program Priority Register .I Program Priority Register

View File

@ -28,13 +28,13 @@ Manual"
__ppc_yield, __ppc_mdoio, __ppc_mdoom \- __ppc_yield, __ppc_mdoio, __ppc_mdoom \-
Hint the processor to release shared resources Hint the processor to release shared resources
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <sys/platform/ppc.h> .B #include <sys/platform/ppc.h>
.PP .PP
.B void __ppc_yield(void); .B void __ppc_yield(void);
.br
.B void __ppc_mdoio(void); .B void __ppc_mdoio(void);
.br
.B void __ppc_mdoom(void); .B void __ppc_mdoom(void);
.fi
.SH DESCRIPTION .SH DESCRIPTION
These functions These functions
provide hints about the usage of resources that are shared with other provide hints about the usage of resources that are shared with other

View File

@ -9,9 +9,11 @@
.SH NAME .SH NAME
__setfpucw \- set FPU control word on i386 architecture (obsolete) __setfpucw \- set FPU control word on i386 architecture (obsolete)
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <i386/fpu_control.h> .B #include <i386/fpu_control.h>
.PP .PP
.BI "void __setfpucw(unsigned short " control_word ); .BI "void __setfpucw(unsigned short " control_word );
.fi
.SH DESCRIPTION .SH DESCRIPTION
.BR __setfpucw () .BR __setfpucw ()
transfers transfers

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_cancel \- cancel an outstanding asynchronous I/O request aio_cancel \- cancel an outstanding asynchronous I/O request
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "int aio_cancel(int " fd ", struct aiocb *" aiocbp ); .BI "int aio_cancel(int " fd ", struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_cancel () .BR aio_cancel ()

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_error \- get error status of asynchronous I/O operation aio_error \- get error status of asynchronous I/O operation
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "int aio_error(const struct aiocb *" aiocbp ); .BI "int aio_error(const struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_error () .BR aio_error ()

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_fsync \- asynchronous file synchronization aio_fsync \- asynchronous file synchronization
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "int aio_fsync(int " op ", struct aiocb *" aiocbp ); .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_fsync () .BR aio_fsync ()

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_read \- asynchronous read aio_read \- asynchronous read
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "int aio_read(struct aiocb *" aiocbp ); .BI "int aio_read(struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_read () .BR aio_read ()

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_return \- get return status of asynchronous I/O operation aio_return \- get return status of asynchronous I/O operation
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "ssize_t aio_return(struct aiocb *" aiocbp ); .BI "ssize_t aio_return(struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_return () .BR aio_return ()

View File

@ -25,11 +25,13 @@
.SH NAME .SH NAME
aio_write \- asynchronous write aio_write \- asynchronous write
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B "#include <aio.h>" .B "#include <aio.h>"
.PP .PP
.BI "int aio_write(struct aiocb *" aiocbp ); .BI "int aio_write(struct aiocb *" aiocbp );
.PP .PP
Link with \fI\-lrt\fP. Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR aio_write () .BR aio_write ()

View File

@ -44,9 +44,11 @@
.SH NAME .SH NAME
alloca \- allocate memory that is automatically freed alloca \- allocate memory that is automatically freed
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <alloca.h> .B #include <alloca.h>
.PP .PP
.BI "void *alloca(size_t " size ); .BI "void *alloca(size_t " size );
.fi
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR alloca () .BR alloca ()

View File

@ -26,11 +26,13 @@
.SH NAME .SH NAME
bsd_signal \- signal handling with BSD semantics bsd_signal \- signal handling with BSD semantics
.SH SYNOPSIS .SH SYNOPSIS
.fi
.B #include <signal.h> .B #include <signal.h>
.PP .PP
.B typedef void (*sighandler_t)(int); .B typedef void (*sighandler_t)(int);
.PP .PP
.BI "sighandler_t bsd_signal(int " signum ", sighandler_t " handler ); .BI "sighandler_t bsd_signal(int " signum ", sighandler_t " handler );
.nf
.PP .PP
.RS -4 .RS -4
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

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