nl_types.h(7POSIX)
π PROLOG π
okay bestie, quick heads up before we dive in: this page is part of the POSIX Programmer's Manual (it's the nl_types.h(7POSIX) page, if you're keeping track). The Linux implementation of this interface may differ β so if you're on Linux and something's giving weird, go consult the corresponding Linux manual page for the deets on Linux behavior. And lowkey? The interface might not even be implemented on Linux at all. π Just so you know.
β¨ NAME β¨
nl_types.h β data types π
πΈ SYNOPSIS πΈ
#include <nl_types.h>
π¦ DESCRIPTION π¦
So the <nl_types.h> header shall define at least these types, bestie:
nl_catdβ this one gets used by the message catalog functionscatopen(),catgets(), andcatclose()to identify a catalog descriptor. it's the little ID badge for your catalog, fr fr. πnl_itemβ this one is used bynl_langinfo()to identify items of langinfo data. Values of objects of typenl_itemare defined in<langinfo.h>. iykyk. β¨
The <nl_types.h> header shall also define at least these symbolic constants:
NL_SETDβ used bygencatwhen no$setdirective is specified in a message text source file. This constant can be passed as the value of set_id on subsequent calls tocatgets()(that is, to retrieve messages from the default message set). The value ofNL_SETDis implementation-defined. so don't go assuming a number, okay? πNL_CAT_LOCALEβ the value that must be passed as the oflag argument tocatopen()to ensure that message catalog selection depends on theLC_MESSAGESlocale category, rather than directly on theLANGenvironment variable. yes queen, locale-aware behavior. π
The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided. π
int catclose(nl_catd);
char *catgets(nl_catd, int, int, const char *);
nl_catd catopen(const char *, int);
The following sections are informative. π
π APPLICATION USAGE π
None. literally nothing. moving on bestie. π«Ά
π RATIONALE π
None. nope, not a crumb. π
β FUTURE DIRECTIONS β
None. the future is lookingβ¦ uneventful. π
π₯ SEE ALSO π₯
<langinfo.h>- The System Interfaces volume of POSIX.1β2017,
catclose(),catgets(),catopen(),nl_langinfo() - The Shell and Utilities volume of POSIX.1β2017,
gencat
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.
In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. π«‘
The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
aaaand that's the whole page, bestie! π this little icon was brought to you by IEEE/The Open Group, dated 2017 β so when you see nl_types.h(7POSIX) in the wild, you know exactly whose name is on it. slay, stay safe, and may your catalogs always open. πβ¨πΈ
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms