.\" Modified Thu Dec 13 22:51:19 2001 by Martin Schulze <joey@infodrom.org>
.\" Modified 2001-12-14 aeb
.\"
-.TH CATOPEN 3 2014-08-19 "GNU" "Linux Programmer's Manual"
+.TH CATOPEN 3 2015-08-08 "GNU" "Linux Programmer's Manual"
.SH NAME
catopen, catclose \- open/close a message catalog
.SH SYNOPSIS
.B #include <nl_types.h>
-.sp
+.PP
.BI "nl_catd catopen(const char *" name ", int " flag );
-
+.PP
.BI "int catclose(nl_catd " catalog );
.SH DESCRIPTION
The function
then the
.B FD_CLOEXEC
flag will be set.
-.LP
+.PP
The argument
.I name
specifies the name of the message catalog to be opened.
.B LC_MESSAGES
part of the locale may invalidate
open catalog descriptors.
-.LP
+.PP
The
.I flag
argument to
Otherwise, it will use the
.B LANG
environment variable.
-.LP
+.PP
The function
.BR catclose ()
closes the message catalog identified by
possible values for the
.BR open (2)
call.
-.LP
+.PP
The function
.BR catclose ()
returns 0 on success, or \-1 on failure.
T} Thread safety MT-Safe
.TE
.SH CONFORMING TO
-POSIX.1-2001.
+POSIX.1-2001, POSIX.1-2008.
.\" 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" .
.\" .B MCLoadAll
.\" (see below).
.SH NOTES
-The above is the POSIX.1-2001 description.
+The above is the POSIX.1 description.
The glibc value for
.B NL_CAT_LOCALE
is 1.