catopen.3: Remove ancient Linux libc details

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-06-29 10:36:00 +02:00
parent ee5f0bfd2a
commit 3ef5eb1237
1 changed files with 33 additions and 32 deletions

View File

@ -148,45 +148,46 @@ POSIX.1-2001.
.\" In XPG 1987, Vol. 3 it says:
.\" .I "The flag argument of catopen is reserved for future use"
.\" .IR "and should be set to 0" .
It is unclear what the source was for the constants
.B MCLoadBySet
and
.B MCLoadAll
(see below).
.\"
.\" It is unclear what the source was for the constants
.\" .B MCLoadBySet
.\" and
.\" .B MCLoadAll
.\" (see below).
.SH NOTES
The above is the POSIX.1-2001 description.
The glibc value for
.B NL_CAT_LOCALE
is 1.
(Compare
.B MCLoadAll
below.)
.\" (Compare
.\" .B MCLoadAll
.\" below.)
The default path varies, but usually looks at a number of places below
.IR /usr/share/locale .
.SS Linux notes
These functions are available for Linux since libc 4.4.4c.
In the case of linux libc4 and libc5, the catalog descriptor
.I nl_catd
is a
.BR mmap (2)'ed
area of memory and not a file descriptor.
The
.I flag
argument to
.BR catopen ()
should be either
.B MCLoadBySet
(=0) or
.B MCLoadAll
(=1).
The former value indicates that a set from the catalog is to be
loaded when needed, whereas the latter causes the initial call to
.BR catopen ()
to load the entire catalog into memory.
The default search path varies, but usually looks at a number of places below
.I /etc/locale
and
.IR /usr/lib/locale .
.\" .SS Linux notes
.\" These functions are available for Linux since libc 4.4.4c.
.\" In the case of linux libc4 and libc5, the catalog descriptor
.\" .I nl_catd
.\" is a
.\" .BR mmap (2)'ed
.\" area of memory and not a file descriptor.
.\" The
.\" .I flag
.\" argument to
.\" .BR catopen ()
.\" should be either
.\" .B MCLoadBySet
.\" (=0) or
.\" .B MCLoadAll
.\" (=1).
.\" The former value indicates that a set from the catalog is to be
.\" loaded when needed, whereas the latter causes the initial call to
.\" .BR catopen ()
.\" to load the entire catalog into memory.
.\" The default search path varies, but usually looks at a number of places below
.\" .I /etc/locale
.\" and
.\" .IR /usr/lib/locale .
.SH SEE ALSO
.BR catgets (3),
.BR setlocale (3)