2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 #include <sys/cdefs.h>
35 #include <sys/_types.h>
37 #ifndef _NL_ITEM_DECLARED
38 typedef __nl_item nl_item;
39 #define _NL_ITEM_DECLARED
42 #define CODESET 0 /* codeset name */
43 #define D_T_FMT 1 /* string for formatting date and time */
44 #define D_FMT 2 /* date format string */
45 #define T_FMT 3 /* time format string */
46 #define T_FMT_AMPM 4 /* a.m. or p.m. time formatting string */
47 #define AM_STR 5 /* Ante Meridian affix */
48 #define PM_STR 6 /* Post Meridian affix */
59 /* abbreviated week day names */
82 /* abbreviated month names */
96 #define ERA 45 /* era description segments */
97 #define ERA_D_FMT 46 /* era date format string */
98 #define ERA_D_T_FMT 47 /* era date and time format string */
99 #define ERA_T_FMT 48 /* era time format string */
100 #define ALT_DIGITS 49 /* alternative symbols for digits */
102 #define RADIXCHAR 50 /* radix char */
103 #define THOUSEP 51 /* separator for thousands */
105 #define YESEXPR 52 /* affirmative response expression */
106 #define NOEXPR 53 /* negative response expression */
108 #if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE <= 500)
109 #define YESSTR 54 /* affirmative response for yes/no queries */
110 #define NOSTR 55 /* negative response for yes/no queries */
113 #define CRNCYSTR 56 /* currency symbol */
116 #define D_MD_ORDER 57 /* month/day order (local extension) */
119 /* standalone months forms for %OB */
134 char *nl_langinfo(nl_item);
136 #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
137 #include <xlocale/_langinfo.h>
141 #endif /* !_LANGINFO_H_ */