aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-01-06 23:16:03 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-01-07 00:05:48 +0100
commit0b174fe0087a52584cd72e43ca703bcff66749a1 (patch)
treebfcc45e6c14c7514d36cda8b78a9d7ef87b65ce3 /man3
parent30e3e116bb7709dde810a9f7d9e11e81876f02bc (diff)
downloadman-pages-0b174fe0087a52584cd72e43ca703bcff66749a1.tar.gz
clone.2, ioctl_tty.2, syslog.2, setlocale.3, stdio.3, console_codes.4, inode.7, namespaces.7, netlink.7, signal-safety.7, socket.7: Better table formatting
In particular, allow for rendering in widths different from (especially less than) 80 columns. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/setlocale.340
-rw-r--r--man3/stdio.3226
2 files changed, 199 insertions, 67 deletions
diff --git a/man3/setlocale.3 b/man3/setlocale.3
index 7005f4fe73..29ef376452 100644
--- a/man3/setlocale.3
+++ b/man3/setlocale.3
@@ -50,32 +50,50 @@ the program's current locale is modified according to the arguments.
The argument
.I category
determines which parts of the program's current locale should be modified.
+.ad l
+.nh
.TS
lB lB
-lB l.
+lB lx.
Category Governs
LC_ALL All of the locale
LC_ADDRESS T{
Formatting of addresses and
-.br
geography-related items (*)
T}
LC_COLLATE String collation
LC_CTYPE Character classification
-LC_IDENTIFICATION Metadata describing the locale (*)
+LC_IDENTIFICATION T{
+Metadata describing the locale (*)
+T}
LC_MEASUREMENT T{
Settings related to measurements
-.br
(metric versus US customary) (*)
T}
-LC_MESSAGES Localizable natural-language messages
-LC_MONETARY Formatting of monetary values
-LC_NAME Formatting of salutations for persons (*)
-LC_NUMERIC Formatting of nonmonetary numeric values
-LC_PAPER Settings related to the standard paper size (*)
-LC_TELEPHONE Formats to be used with telephone services (*)
-LC_TIME Formatting of date and time values
+LC_MESSAGES T{
+Localizable natural-language messages
+T}
+LC_MONETARY T{
+Formatting of monetary values
+T}
+LC_NAME T{
+Formatting of salutations for persons (*)
+T}
+LC_NUMERIC T{
+Formatting of nonmonetary numeric values
+T}
+LC_PAPER T{
+Settings related to the standard paper size (*)
+T}
+LC_TELEPHONE T{
+Formats to be used with telephone services (*)
+T}
+LC_TIME T{
+Formatting of date and time values
+T}
.TE
+.hy
+.ad
.PP
The categories marked with an asterisk in the above table
are GNU extensions.
diff --git a/man3/stdio.3 b/man3/stdio.3
index 7fd0aa8bcc..2086887331 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -180,68 +180,182 @@ and
.B putchar
exist and will be used if the macros definitions are explicitly removed.
.SS List of functions
+.nh
+.ad l
.TS
;
-lb lb
+lb lbx
l l.
Function Description
_
-\fBclearerr\fP(3) check and reset stream status
-\fBfclose\fP(3) close a stream
-\fBfdopen\fP(3) stream open functions
-\fBfeof\fP(3) check and reset stream status
-\fBferror\fP(3) check and reset stream status
-\fBfflush\fP(3) flush a stream
-\fBfgetc\fP(3) get next character or word from input stream
-\fBfgetpos\fP(3) reposition a stream
-\fBfgets\fP(3) get a line from a stream
-\fBfileno\fP(3) return the integer descriptor of the argument stream
-\fBfopen\fP(3) stream open functions
-\fBfprintf\fP(3) formatted output conversion
-\fBfpurge\fP(3) flush a stream
-\fBfputc\fP(3) output a character or word to a stream
-\fBfputs\fP(3) output a line to a stream
-\fBfread\fP(3) binary stream input/output
-\fBfreopen\fP(3) stream open functions
-\fBfscanf\fP(3) input format conversion
-\fBfseek\fP(3) reposition a stream
-\fBfsetpos\fP(3) reposition a stream
-\fBftell\fP(3) reposition a stream
-\fBfwrite\fP(3) binary stream input/output
-\fBgetc\fP(3) get next character or word from input stream
-\fBgetchar\fP(3) get next character or word from input stream
-\fBgets\fP(3) get a line from a stream
-\fBgetw\fP(3) get next character or word from input stream
-\fBmktemp\fP(3) make temporary filename (unique)
-\fBperror\fP(3) system error messages
-\fBprintf\fP(3) formatted output conversion
-\fBputc\fP(3) output a character or word to a stream
-\fBputchar\fP(3) output a character or word to a stream
-\fBputs\fP(3) output a line to a stream
-\fBputw\fP(3) output a character or word to a stream
-\fBremove\fP(3) remove directory entry
-\fBrewind\fP(3) reposition a stream
-\fBscanf\fP(3) input format conversion
-\fBsetbuf\fP(3) stream buffering operations
-\fBsetbuffer\fP(3) stream buffering operations
-\fBsetlinebuf\fP(3) stream buffering operations
-\fBsetvbuf\fP(3) stream buffering operations
-\fBsprintf\fP(3) formatted output conversion
-\fBsscanf\fP(3) input format conversion
-\fBstrerror\fP(3) system error messages
-\fBsys_errlist\fP(3) system error messages
-\fBsys_nerr\fP(3) system error messages
-\fBtempnam\fP(3) temporary file routines
-\fBtmpfile\fP(3) temporary file routines
-\fBtmpnam\fP(3) temporary file routines
-\fBungetc\fP(3) un-get character from input stream
-\fBvfprintf\fP(3) formatted output conversion
-\fBvfscanf\fP(3) input format conversion
-\fBvprintf\fP(3) formatted output conversion
-\fBvscanf\fP(3) input format conversion
-\fBvsprintf\fP(3) formatted output conversion
-\fBvsscanf\fP(3) input format conversion
+\fBclearerr\fP(3) T{
+check and reset stream status
+T}
+\fBfclose\fP(3) T{
+close a stream
+T}
+\fBfdopen\fP(3) T{
+stream open functions
+T}
+\fBfeof\fP(3) T{
+check and reset stream status
+T}
+\fBferror\fP(3) T{
+check and reset stream status
+T}
+\fBfflush\fP(3) T{
+flush a stream
+T}
+\fBfgetc\fP(3) T{
+get next character or word from input stream
+T}
+\fBfgetpos\fP(3) T{
+reposition a stream
+T}
+\fBfgets\fP(3) T{
+get a line from a stream
+T}
+\fBfileno\fP(3) T{
+return the integer descriptor of the argument stream
+T}
+\fBfopen\fP(3) T{
+stream open functions
+T}
+\fBfprintf\fP(3) T{
+formatted output conversion
+T}
+\fBfpurge\fP(3) T{
+flush a stream
+T}
+\fBfputc\fP(3) T{
+output a character or word to a stream
+T}
+\fBfputs\fP(3) T{
+output a line to a stream
+T}
+\fBfread\fP(3) T{
+binary stream input/output
+T}
+\fBfreopen\fP(3) T{
+stream open functions
+T}
+\fBfscanf\fP(3) T{
+input format conversion
+T}
+\fBfseek\fP(3) T{
+reposition a stream
+T}
+\fBfsetpos\fP(3) T{
+reposition a stream
+T}
+\fBftell\fP(3) T{
+reposition a stream
+T}
+\fBfwrite\fP(3) T{
+binary stream input/output
+T}
+\fBgetc\fP(3) T{
+get next character or word from input stream
+T}
+\fBgetchar\fP(3) T{
+get next character or word from input stream
+T}
+\fBgets\fP(3) T{
+get a line from a stream
+T}
+\fBgetw\fP(3) T{
+get next character or word from input stream
+T}
+\fBmktemp\fP(3) T{
+make temporary filename (unique)
+T}
+\fBperror\fP(3) T{
+system error messages
+T}
+\fBprintf\fP(3) T{
+formatted output conversion
+T}
+\fBputc\fP(3) T{
+output a character or word to a stream
+T}
+\fBputchar\fP(3) T{
+output a character or word to a stream
+T}
+\fBputs\fP(3) T{
+output a line to a stream
+T}
+\fBputw\fP(3) T{
+output a character or word to a stream
+T}
+\fBremove\fP(3) T{
+remove directory entry
+T}
+\fBrewind\fP(3) T{
+reposition a stream
+T}
+\fBscanf\fP(3) T{
+input format conversion
+T}
+\fBsetbuf\fP(3) T{
+stream buffering operations
+T}
+\fBsetbuffer\fP(3) T{
+stream buffering operations
+T}
+\fBsetlinebuf\fP(3) T{
+stream buffering operations
+T}
+\fBsetvbuf\fP(3) T{
+stream buffering operations
+T}
+\fBsprintf\fP(3) T{
+formatted output conversion
+T}
+\fBsscanf\fP(3) T{
+input format conversion
+T}
+\fBstrerror\fP(3) T{
+system error messages
+T}
+\fBsys_errlist\fP(3) T{
+system error messages
+T}
+\fBsys_nerr\fP(3) T{
+system error messages
+T}
+\fBtempnam\fP(3) T{
+temporary file routines
+T}
+\fBtmpfile\fP(3) T{
+temporary file routines
+T}
+\fBtmpnam\fP(3) T{
+temporary file routines
+T}
+\fBungetc\fP(3) T{
+un-get character from input stream
+T}
+\fBvfprintf\fP(3) T{
+formatted output conversion
+T}
+\fBvfscanf\fP(3) T{
+input format conversion
+T}
+\fBvprintf\fP(3) T{
+formatted output conversion
+T}
+\fBvscanf\fP(3) T{
+input format conversion
+T}
+\fBvsprintf\fP(3) T{
+formatted output conversion
+T}
+\fBvsscanf\fP(3) T{
+input format conversion
+T}
.TE
+.ad
+.hy
.SH CONFORMING TO
The
.I stdio