From defcceb3e7cacea4967e18d108388b3b5489ab93 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 20 Jul 2006 16:16:51 +0000 Subject: [PATCH] ffix --- man2/remap_file_pages.2 | 4 ++-- man2/shmget.2 | 2 +- man2/sync_file_range.2 | 2 +- man2/time.2 | 2 +- man3/basename.3 | 2 +- man3/confstr.3 | 2 +- man3/fpathconf.3 | 2 +- man3/getline.3 | 2 +- man3/gets.3 | 10 +++++----- man3/getw.3 | 4 ++-- man3/glob.3 | 12 ++++++------ man3/isalpha.3 | 26 +++++++++++++------------- man3/malloc.3 | 6 +++--- man3/posix_fallocate.3 | 1 - man3/posix_memalign.3 | 1 - man3/puts.3 | 8 ++++---- man3/random.3 | 6 +++--- man3/rpc.3 | 1 - man3/toupper.3 | 2 +- man5/utmp.5 | 4 ++-- man7/capabilities.7 | 2 +- man7/uri.7 | 16 +++++++--------- 22 files changed, 56 insertions(+), 61 deletions(-) diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2 index cc13bd4f7..11ac7d4e6 100644 --- a/man2/remap_file_pages.2 +++ b/man2/remap_file_pages.2 @@ -44,14 +44,14 @@ additional VMA (Virtual Memory Area) data structures. To create a non-linear mapping we perform the following steps: .TP -\fB1.\fp +\fB1.\fP Use .BR mmap () to create a mapping (which is initially linear). This mapping must be created with the MAP_SHARED flag. .TP -\fB2.\fp +\fB2.\fP Use one or more calls to .BR remap_file_pages () to rearrange the correspondence between the pages of the mapping diff --git a/man2/shmget.2 b/man2/shmget.2 index 4482ffe97..28ecdbee8 100644 --- a/man2/shmget.2 +++ b/man2/shmget.2 @@ -129,7 +129,7 @@ if no physical memory is available. See also the discussion of the file .I /proc/sys/vm/overcommit_memory in -.Br proc (5). +.BR proc (5). .\" As at 2.6.17-rc2, this flag has no effect if SHM_HUGETLB was also .\" specified. .PP diff --git a/man2/sync_file_range.2 b/man2/sync_file_range.2 index 90e93edf4..85f7835ef 100644 --- a/man2/sync_file_range.2 +++ b/man2/sync_file_range.2 @@ -126,7 +126,7 @@ that will ensure that all pages in the specified range which were dirty when .BR sync_file_range() was called are committed to disk. .SH ERRORS -.TB +.TP .B EBADF .I fd is not a valid file descriptor. diff --git a/man2/time.2 b/man2/time.2 index bd782430b..d1ce5b4d9 100644 --- a/man2/time.2 +++ b/man2/time.2 @@ -56,7 +56,7 @@ POSIX.1 defines .I seconds since the Epoch as a value to be interpreted as the number of seconds between a specified time and the Epoch, according to a formula for conversion -from UTC equivalent to conversion on the naïve basis that leap +from UTC equivalent to conversion on the naive basis that leap seconds are ignored and all years divisible by 4 are leap years. This value is not the same as the actual number of seconds between the time and the Epoch, because of leap seconds and because clocks are not diff --git a/man3/basename.3 b/man3/basename.3 index c7b084a88..52bd66dfd 100644 --- a/man3/basename.3 +++ b/man3/basename.3 @@ -27,7 +27,7 @@ dirname, basename \- Parse pathname components .B #include .sp .BI "char *dirname(char *" path ); -.nl +.br .BI "char *basename(char *" path ); .fi .SH DESCRIPTION diff --git a/man3/confstr.3 b/man3/confstr.3 index 263b38f55..824a2f7d0 100644 --- a/man3/confstr.3 +++ b/man3/confstr.3 @@ -34,7 +34,7 @@ confstr \- get configuration dependent string variables .B #define _POSIX_C_SOURCE 2 or .B #define _XOPEN_SOURCE -.nl +.br .B #include .sp .BI "size_t confstr(int " "name" ", char *" buf ", size_t " len ); diff --git a/man3/fpathconf.3 b/man3/fpathconf.3 index 7d357d97d..7f498ad13 100644 --- a/man3/fpathconf.3 +++ b/man3/fpathconf.3 @@ -29,7 +29,7 @@ fpathconf, pathconf \- get configuration values for files .B #include .sp .BI "long fpathconf(int " filedes ", int " name ); -.nl +.br .BI "long pathconf(char *" path ", int " name ); .fi .SH DESCRIPTION diff --git a/man3/getline.3 b/man3/getline.3 index 79ad7482f..48875fe86 100644 --- a/man3/getline.3 +++ b/man3/getline.3 @@ -30,7 +30,7 @@ getline, getdelim \- delimited string input .B #include .sp .BI "ssize_t getline(char **" lineptr ", size_t *" n ", FILE *" stream ); -.nl +.br .BI "ssize_t getdelim(char **" lineptr ", size_t *" n ", int " delim ", FILE *" stream ); .SH DESCRIPTION .BR getline () diff --git a/man3/gets.3 b/man3/gets.3 index bbd8a3bed..5e89e2a9e 100644 --- a/man3/gets.3 +++ b/man3/gets.3 @@ -30,15 +30,15 @@ fgetc, fgets, getc, getchar, gets, ungetc \- input of characters and strings .B #include .sp .BI "int fgetc(FILE *" stream ); -.nl +.br .BI "char *fgets(char *" "s" ", int " "size" ", FILE *" "stream" ); -.nl +.br .BI "int getc(FILE *" stream ); -.nl +.br .BI "int getchar(void);" -.nl +.br .BI "char *gets(char *" "s" ); -.nl +.br .BI "int ungetc(int " c ", FILE *" stream ); .SH DESCRIPTION .BR fgetc () diff --git a/man3/getw.3 b/man3/getw.3 index 4721f2a80..8174ceb3e 100644 --- a/man3/getw.3 +++ b/man3/getw.3 @@ -28,9 +28,9 @@ getw, putw \- input and output of words (ints) .B #include .sp .BI "int getw(FILE *" stream ); -.nl +.br .BI "int putw(int " w ", FILE *" stream ); -.nl +.br .SH DESCRIPTION \fBgetw\fP() reads a word (that is, an \fIint\fP) from \fIstream\fP. It's provided for compatibility with SVID. We recommend you use diff --git a/man3/glob.3 b/man3/glob.3 index 3b4e14a53..c32e46479 100644 --- a/man3/glob.3 +++ b/man3/glob.3 @@ -33,11 +33,11 @@ glob, globfree \- find pathnames matching a pattern, free memory from glob() .B #include .sp .BI "int glob(const char *" pattern ", int " flags , -.nl +.br .BI " int " errfunc "(const char *" epath ", int " eerrno ), -.nl +.br .BI " glob_t *" pglob ); -.nl +.br .BI "void globfree(glob_t *" pglob ); .fi .SH DESCRIPTION @@ -205,10 +205,10 @@ for a read error, and for no found matches. .SH EXAMPLE One example of use is the following code, which simulates typing -.nl +.sp .B ls \-l *.c ../*.c -.nl -in the shell. +.sp +in the shell: .nf .in 10 diff --git a/man3/isalpha.3 b/man3/isalpha.3 index f95a97863..620c3b9fe 100644 --- a/man3/isalpha.3 +++ b/man3/isalpha.3 @@ -36,29 +36,29 @@ classification routines .B #include .sp .BI "int isalnum(int " "c" ); -.nl +.br .BI "int isalpha(int " "c" ); -.nl +.br .BI "int isascii(int " "c" ); -.nl +.br .BI "int isblank(int " "c" ); -.nl +.br .BI "int iscntrl(int " "c" ); -.nl +.br .BI "int isdigit(int " "c" ); -.nl +.br .BI "int isgraph(int " "c" ); -.nl +.br .BI "int islower(int " "c" ); -.nl +.br .BI "int isprint(int " "c" ); -.nl +.br .BI "int ispunct(int " "c" ); -.nl +.br .BI "int isspace(int " "c" ); -.nl +.br .BI "int isupper(int " "c" ); -.nl +.br .BI "int isxdigit(int " "c" ); .fi .SH DESCRIPTION @@ -133,7 +133,7 @@ checks for an uppercase letter. .TP .BR isxdigit () checks for a hexadecimal digits, i.e. one of -.nl +.br .BR "0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F" . .SH "RETURN VALUE" The values returned are non-zero if the character diff --git a/man3/malloc.3 b/man3/malloc.3 index 9bfaed80d..fb1df4a82 100644 --- a/man3/malloc.3 +++ b/man3/malloc.3 @@ -32,11 +32,11 @@ calloc, malloc, free, realloc \- Allocate and free dynamic memory .B #include .sp .BI "void *calloc(size_t " "nmemb" ", size_t " "size" ); -.nl +.br .BI "void *malloc(size_t " "size" ); -.nl +.br .BI "void free(void " "*ptr" ); -.nl +.br .BI "void *realloc(void " "*ptr" ", size_t " "size" ); .fi .SH DESCRIPTION diff --git a/man3/posix_fallocate.3 b/man3/posix_fallocate.3 index 8076a41a1..e2d6c24bd 100644 --- a/man3/posix_fallocate.3 +++ b/man3/posix_fallocate.3 @@ -29,7 +29,6 @@ posix_fallocate \- allocate file space .B #include .sp .BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len ); -.nl .fi .SH DESCRIPTION The function diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3 index 5da78033c..263c19880 100644 --- a/man3/posix_memalign.3 +++ b/man3/posix_memalign.3 @@ -37,7 +37,6 @@ posix_memalign, memalign, valloc \- Allocate aligned memory .sp .BI "void *valloc(size_t " size ); .BI "void *memalign(size_t " boundary ", size_t " size ); -.nl .fi .SH DESCRIPTION The function diff --git a/man3/puts.3 b/man3/puts.3 index aee81d9b9..dbbe730ab 100644 --- a/man3/puts.3 +++ b/man3/puts.3 @@ -29,13 +29,13 @@ fputc, fputs, putc, putchar, puts \- output of characters and strings .B #include .sp .BI "int fputc(int " c ", FILE *" stream ); -.nl +.br .BI "int fputs(const char *" "s" ", FILE *" "stream" ); -.nl +.br .BI "int putc(int " c ", FILE *" stream ); -.nl +.br .BI "int putchar(int " c ); -.nl +.br .BI "int puts(const char *" "s" ); .SH DESCRIPTION .BR fputc () diff --git a/man3/random.3 b/man3/random.3 index e75d7593b..c58e91413 100644 --- a/man3/random.3 +++ b/man3/random.3 @@ -36,11 +36,11 @@ random, srandom, initstate, setstate \- random number generator .B #include .sp .B long int random(void); -.nl +.br .BI "void srandom(unsigned int " seed ); -.nl +.br .BI "char *initstate(unsigned int " seed ", char *" state ", size_t " n ); -.nl +.br .BI "char *setstate(char *" state ); .fi .SH DESCRIPTION diff --git a/man3/rpc.3 b/man3/rpc.3 index 973e10ce8..bad64f8d9 100644 --- a/man3/rpc.3 +++ b/man3/rpc.3 @@ -76,7 +76,6 @@ int uid, gid, len, *aup.gids; Create and return an .SM RPC authentication handle that contains -.UX authentication information. The parameter .I host diff --git a/man3/toupper.3 b/man3/toupper.3 index 3f0f551cf..d6b560314 100644 --- a/man3/toupper.3 +++ b/man3/toupper.3 @@ -30,7 +30,7 @@ toupper, tolower \- convert letter to upper or lower case .B #include .sp .BI "int toupper(int " "c" ); -.nl +.br .BI "int tolower(int " "c" ); .fi .SH DESCRIPTION diff --git a/man5/utmp.5 b/man5/utmp.5 index ad1e43a6a..145168304 100644 --- a/man5/utmp.5 +++ b/man5/utmp.5 @@ -203,7 +203,7 @@ then instead of the call: .sp .ta 3i gettimeofday((struct timeval *) &ut.ut_tv, NULL); -.SP +.sp .fi .RE @@ -218,7 +218,7 @@ struct timeval tv; gettimeofday(&tv, NULL); ut.ut_tv.tv_sec = tv.tv_sec; ut.ut_tv.tv_usec = tv.tv_usec; -.SP +.sp .fi .RE .SH FILES diff --git a/man7/capabilities.7 b/man7/capabilities.7 index 48bf5eb47..483f819ef 100644 --- a/man7/capabilities.7 +++ b/man7/capabilities.7 @@ -269,7 +269,7 @@ Permit I/O port operations and .BR ioperm (2)); access -.IT /proc/kcore . +.IR /proc/kcore . .TP .B CAP_SYS_RESOURCE Permit: use of reserved space on ext2 file systems; diff --git a/man7/uri.7 b/man7/uri.7 index 48419b1ee..1330dd16a 100644 --- a/man7/uri.7 +++ b/man7/uri.7 @@ -226,7 +226,7 @@ An example is . A .I message-id corresponds to the Message-ID of -.UR http://www.ietf.org/rfc/rfc1036.txt +.URL http://www.ietf.org/rfc/rfc1036.txt IETF RFC\ 1036, .UE without the enclosing "<" @@ -508,9 +508,8 @@ This latter system, called the 'new' or 'logical' quoting system by "Hart's Rules" and the "Oxford Dictionary for Writers and Editors", is preferred practice in Great Britain and hackers worldwide (see the -.UR http://www.fwi.uva.nl/~mes/jargon/h/HackerWritingStyle.html -Jargon File's section on Hacker Writing Style -.UE +Jargon File's section on Hacker Writing Style, +.IR http://www.fwi.uva.nl/~mes/jargon/h/HackerWritingStyle.html , for more information). Older documents suggested inserting the prefix "URL:" just before the URI, but this form has never caught on. @@ -613,11 +612,10 @@ the 'userinfo' component of a URI is strongly recommended against except in those rare cases where the 'password' parameter is intended to be public. .SH "CONFORMING TO" .PP -.UR http://www.ietf.org/rfc/rfc2396.txt -IETF RFC\ 2396, -.UE -.UR http://www.w3.org/TR/REC-html40 -HTML 4.0. +.IR http://www.ietf.org/rfc/rfc2396.txt +(IETF RFC\ 2396), +.I http://www.w3.org/TR/REC-html40 +(HTML 4.0). .UE .SH BUGS .PP