Various pages: clean-ups after "bring more whitespace consistency in SYNOPSIS"

Cleann-ups after commit 15d6565317.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-01-01 22:24:55 +01:00
parent 15d6565317
commit 7b5d39f48f
13 changed files with 27 additions and 28 deletions

View File

@ -30,10 +30,12 @@
.SH NAME
brk, sbrk \- change data segment size
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.PP
.BI "int brk(void *" addr );
.BI "void *sbrk(intptr_t " increment );
.fi
.PP
.RS -4
Feature Test Macro Requirements for glibc (see

View File

@ -26,12 +26,14 @@
.SH NAME
pread, pwrite \- read from or write to a file descriptor at a given offset
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.PP
.BI "ssize_t pread(int " fd ", void *" buf ", size_t " count \
", off_t " offset );
.BI "ssize_t pwrite(int " fd ", const void *" buf ", size_t " count \
", off_t " offset );
.fi
.PP
.RS -4
Feature Test Macro Requirements for glibc (see

View File

@ -11,10 +11,12 @@
.SH NAME
a64l, l64a \- convert between long and base-64
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
.PP
.BI "long a64l(const char *" str64 );
.BI "char *l64a(long " value );
.fi
.PP
.RS -4
Feature Test Macro Requirements for glibc (see

View File

@ -41,7 +41,7 @@ atan, atanf, atanl \- arc tangent function
.PP
.BI "double atan(double " x );
.BI "float atanf(float " x );
.BI "long double atanl( long double " x );
.BI "long double atanl(long double " x );
.PP
.fi
Link with \fI\-lm\fP.

View File

@ -29,24 +29,14 @@
backtrace, backtrace_symbols, backtrace_symbols_fd \- support
for application self-debugging
.SH SYNOPSIS
.nf
.B #include <execinfo.h>
.PP
.B int backtrace(void
.BI ** buffer ,
.B int
.IB size );
.BI "int backtrace(void **" buffer ", int " 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
.IB size ,
.B int
.IB fd );
.BI "char **backtrace_symbols(void *const *" buffer ", int " size );
.BI "void backtrace_symbols_fd(void *const *" buffer ", int " size ", int " fd );
.fi
.SH DESCRIPTION
.BR backtrace ()
returns a backtrace for the calling program,

View File

@ -29,11 +29,12 @@
.SH NAME
catopen, catclose \- open/close a message catalog
.SH SYNOPSIS
.nf
.B #include <nl_types.h>
.PP
.BI "nl_catd catopen(const char *" name ", int " flag );
.PP
.BI "int catclose(nl_catd " catalog );
.fi
.SH DESCRIPTION
The function
.BR catopen ()

View File

@ -10,11 +10,13 @@
.SH NAME
fmax, fmaxf, fmaxl \- determine maximum of two floating-point numbers
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.BI "double fmax(double " x ", double " y );
.BI "float fmaxf(float " x ", float " y );
.BI "long double fmaxl(long double " x ", long double " y );
.fi
.PP
Link with \fI\-lm\fP.
.PP

View File

@ -38,12 +38,10 @@ network address and service translation
.PP
.BI "int getaddrinfo_a(int " "mode" ", struct gaicb *" "list[]" ,
.BI " int " "nitems" ", struct sigevent *" "sevp" );
.PP
.BI "int gai_suspend(const struct gaicb * const " "list[]" ", int " "nitems" ,
.BI " const struct timespec *" "timeout" );
.PP
.BI "int gai_error(struct gaicb *" "req" );
.PP
.BI "int gai_cancel(struct gaicb *" "req" );
.PP
Link with \fI\-lanl\fP.

View File

@ -28,10 +28,12 @@
.SH NAME
getdirentries \- get directory entries in a filesystem-independent format
.SH SYNOPSIS
.nf
.B #include <dirent.h>
.PP
.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " \
nbytes ", off_t *" basep );
.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes ,
.BI " off_t *" basep );
.fi
.PP
.RS -4
Feature Test Macro Requirements for glibc (see

View File

@ -33,14 +33,14 @@ lckpwdf, ulckpwdf \- get shadow password file entry
.B #include <shadow.h>
.PP
.BI "int getspent_r(struct spwd *" spbuf ,
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI "int getspnam_r(const char *" name ", struct spwd *" spbuf ,
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.PP
.BI "int fgetspent_r(FILE *" stream ", struct spwd *" spbuf ,
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI "int sgetspent_r(const char *" s ", struct spwd *" spbuf ,
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.fi
.PP
.RS -4

View File

@ -26,10 +26,12 @@
.SH NAME
login, logout \- write utmp and wtmp entries
.SH SYNOPSIS
.nf
.B #include <utmp.h>
.PP
.BI "void login(const struct utmp *" ut );
.BI "int logout(const char *" ut_line );
.fi
.PP
Link with \fI\-lutil\fP.
.SH DESCRIPTION

View File

@ -31,7 +31,7 @@ mq_getattr, mq_setattr \- get/set message queue attributes
.PP
.BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr );
.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.BI " struct mq_attr *" oldattr );
.fi
.PP
Link with \fI\-lrt\fP.

View File

@ -32,12 +32,10 @@ random number generator
.B #include <stdlib.h>
.PP
.BI "int random_r(struct random_data *" buf ", int32_t *" result );
.PP
.BI "int srandom_r(unsigned int " seed ", struct random_data *" buf );
.PP
.BI "int initstate_r(unsigned int " seed ", char *" statebuf ,
.BI " size_t " statelen ", struct random_data *" buf );
.PP
.BI "int setstate_r(char *" statebuf ", struct random_data *" buf );
.fi
.PP