This commit is contained in:
Michael Kerrisk 2006-07-20 16:16:51 +00:00
parent 134c92adba
commit defcceb3e7
22 changed files with 56 additions and 61 deletions

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -27,7 +27,7 @@ dirname, basename \- Parse pathname components
.B #include <libgen.h>
.sp
.BI "char *dirname(char *" path );
.nl
.br
.BI "char *basename(char *" path );
.fi
.SH DESCRIPTION

View File

@ -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 <unistd.h>
.sp
.BI "size_t confstr(int " "name" ", char *" buf ", size_t " len );

View File

@ -29,7 +29,7 @@ fpathconf, pathconf \- get configuration values for files
.B #include <unistd.h>
.sp
.BI "long fpathconf(int " filedes ", int " name );
.nl
.br
.BI "long pathconf(char *" path ", int " name );
.fi
.SH DESCRIPTION

View File

@ -30,7 +30,7 @@ getline, getdelim \- delimited string input
.B #include <stdio.h>
.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 ()

View File

@ -30,15 +30,15 @@ fgetc, fgets, getc, getchar, gets, ungetc \- input of characters and strings
.B #include <stdio.h>
.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 ()

View File

@ -28,9 +28,9 @@ getw, putw \- input and output of words (ints)
.B #include <stdio.h>
.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

View File

@ -33,11 +33,11 @@ glob, globfree \- find pathnames matching a pattern, free memory from glob()
.B #include <glob.h>
.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

View File

@ -36,29 +36,29 @@ classification routines
.B #include <ctype.h>
.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

View File

@ -32,11 +32,11 @@ calloc, malloc, free, realloc \- Allocate and free dynamic memory
.B #include <stdlib.h>
.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

View File

@ -29,7 +29,6 @@ posix_fallocate \- allocate file space
.B #include <stdlib.h>
.sp
.BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len );
.nl
.fi
.SH DESCRIPTION
The function

View File

@ -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

View File

@ -29,13 +29,13 @@ fputc, fputs, putc, putchar, puts \- output of characters and strings
.B #include <stdio.h>
.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 ()

View File

@ -36,11 +36,11 @@ random, srandom, initstate, setstate \- random number generator
.B #include <stdlib.h>
.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

View File

@ -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

View File

@ -30,7 +30,7 @@ toupper, tolower \- convert letter to upper or lower case
.B #include <ctype.h>
.sp
.BI "int toupper(int " "c" );
.nl
.br
.BI "int tolower(int " "c" );
.fi
.SH DESCRIPTION

View File

@ -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

View File

@ -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;

View File

@ -226,7 +226,7 @@ An example is <news:comp.lang.ada>.
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