This commit is contained in:
Michael Kerrisk 2007-07-18 20:11:21 +00:00
parent caa2898ec7
commit 657e762d71
7 changed files with 14 additions and 8 deletions

View File

@ -16,7 +16,7 @@ get_thread_area \- Get a Thread Local Storage (TLS) area
.BR get_thread_area ()
returns an entry in the current thread's Thread Local Storage (TLS) array.
The index of the entry corresponds to the value
of \fIu_info->\fR\fIentry_number\fR, passed in by the user.
of \fIu_info->entry_number\fR, passed in by the user.
If the value is in bounds,
.BR get_thread_area ()
copies the corresponding
@ -33,7 +33,7 @@ appropriately.
\fIu_info\fR is an invalid pointer.
.TP
.B EINVAL
\fIu_info->\fR\fIentry_number\fR is out of bounds.
\fIu_info->entry_number\fR is out of bounds.
.SH VERSIONS
A version of
.BR get_thread_area ()

View File

@ -42,7 +42,7 @@ mprotect \- set protection on a region of memory
.BR mprotect ()
changes protection for the calling process's memory page(s)
containing any part of the address range in the
interval [\fIaddr\fP,\fIaddr\fP+\fIlen\fP\-1].
interval [\fIaddr\fP,\ \fIaddr\fP+\fIlen\fP\-1].
.I addr
must be aligned to a page boundary.

View File

@ -45,7 +45,7 @@ set appropriately.
.SH "ERRORS"
.TP
.B EINVAL
\fIu_info->\fR\fIentry_number\fR is out of bounds.
\fIu_info->entry_number\fR is out of bounds.
.TP
.B EFAULT
\fIu_info\fR is an invalid pointer.

View File

@ -39,7 +39,9 @@ At most \fIlen\fP wide characters are written to \fIdest\fP.
The shift state
\fI*ps\fP is updated.
The conversion is effectively performed by repeatedly
calling mbrtowc(\fIdest\fP,\fI*src\fP,\fIn\fP,\fIps\fP) where \fIn\fP is some
calling
.IR "mbrtowc(dest, *src, n, ps)"
where \fIn\fP is some
positive number, as long as this call succeeds, and then incrementing
\fIdest\fP by one and \fI*src\fP by the number of bytes consumed.
The

View File

@ -30,7 +30,9 @@ At most \fIlen\fP wide characters are written to \fIdest\fP.
The shift state
\fI*ps\fP is updated.
The conversion is effectively performed by repeatedly
calling mbrtowc(\fIdest\fP,\fI*src\fP,\fIn\fP,\fIps\fP) where \fIn\fP is some
calling
.IR "mbrtowc(dest, *src, n, ps)"
where \fIn\fP is some
positive number, as long as this call succeeds, and then incrementing
\fIdest\fP by one and \fI*src\fP by the number of bytes consumed.
The conversion can stop for three reasons:

View File

@ -41,7 +41,8 @@ At most \fIlen\fP bytes are written to \fIdest\fP.
The shift state
\fI*ps\fP is updated.
The conversion is effectively performed by repeatedly
calling wcrtomb(\fIdest\fP,\fI*src\fP,\fIps\fP),
calling
.IR "wcrtomb(dest, *src, ps),
as long as this call succeeds,
and then incrementing \fIdest\fP by the
number of bytes written and \fI*src\fP

View File

@ -32,7 +32,8 @@ At most \fIlen\fP bytes are written to \fIdest\fP.
The shift state
\fI*ps\fP is updated.
The conversion is effectively performed by repeatedly
calling wcrtomb(\fIdest\fP,\fI*src\fP,\fIps\fP),
calling
.IR "wcrtomb(dest, *src, ps)" ,
as long as this call succeeds,
and then incrementing \fIdest\fP by the
number of bytes written and \fI*src\fP