1nl_types.h(0P)             POSIX Programmer's Manual            nl_types.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       nl_types.h — data types
13

SYNOPSIS

15       #include <nl_types.h>
16

DESCRIPTION

18       The <nl_types.h> header shall define at least the following types:
19
20       nl_catd       Used by the message  catalog  functions  catopen(),  cat‐
21                     gets(), and catclose() to identify a catalog descriptor.
22
23       nl_item       Used by nl_langinfo() to identify items of langinfo data.
24                     Values of objects of type nl_item are defined  in  <lang‐
25                     info.h>.
26
27       The  <nl_types.h>  header  shall define at least the following symbolic
28       constants:
29
30       NL_SETD       Used by gencat when no $set directive is specified  in  a
31                     message  text source file. This constant can be passed as
32                     the value of set_id  on  subsequent  calls  to  catgets()
33                     (that  is,  to retrieve messages from the default message
34                     set). The value of NL_SETD is implementation-defined.
35
36       NL_CAT_LOCALE Value that must  be  passed  as  the  oflag  argument  to
37                     catopen()   to  ensure  that  message  catalog  selection
38                     depends on the LC_MESSAGES locale category,  rather  than
39                     directly on the LANG environment variable.
40
41       The following shall be declared as functions and may also be defined as
42       macros. Function prototypes shall be provided.
43
44
45           int       catclose(nl_catd);
46           char     *catgets(nl_catd, int, int, const char *);
47           nl_catd   catopen(const char *, int);
48
49       The following sections are informative.
50

APPLICATION USAGE

52       None.
53

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

61       <langinfo.h>
62
63       The System Interfaces volume of  POSIX.1‐2017,  catclose(),  catgets(),
64       catopen(), nl_langinfo()
65
66       The Shell and Utilities volume of POSIX.1‐2017, gencat
67
69       Portions  of  this text are reprinted and reproduced in electronic form
70       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
71       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
72       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
73       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
74       event of any discrepancy between this version and the original IEEE and
75       The  Open Group Standard, the original IEEE and The Open Group Standard
76       is the referee document. The original Standard can be  obtained  online
77       at http://www.opengroup.org/unix/online.html .
78
79       Any  typographical  or  formatting  errors that appear in this page are
80       most likely to have been introduced during the conversion of the source
81       files  to  man page format. To report such errors, see https://www.ker
82       nel.org/doc/man-pages/reporting_bugs.html .
83
84
85
86IEEE/The Open Group                  2017                       nl_types.h(0P)
Impressum