/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2001 Alexey Zelkin <[email protected]>4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND16* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE17* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE18* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE19* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL20* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS21* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT23* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY24* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF25* SUCH DAMAGE.26*/2728#ifndef _LANGINFO_H_29#define _LANGINFO_H_3031#include <sys/cdefs.h>32#include <sys/_types.h>3334#ifndef _NL_ITEM_DECLARED35typedef __nl_item nl_item;36#define _NL_ITEM_DECLARED37#endif3839#define CODESET 0 /* codeset name */40#define D_T_FMT 1 /* string for formatting date and time */41#define D_FMT 2 /* date format string */42#define T_FMT 3 /* time format string */43#define T_FMT_AMPM 4 /* a.m. or p.m. time formatting string */44#define AM_STR 5 /* Ante Meridian affix */45#define PM_STR 6 /* Post Meridian affix */4647/* week day names */48#define DAY_1 749#define DAY_2 850#define DAY_3 951#define DAY_4 1052#define DAY_5 1153#define DAY_6 1254#define DAY_7 135556/* abbreviated week day names */57#define ABDAY_1 1458#define ABDAY_2 1559#define ABDAY_3 1660#define ABDAY_4 1761#define ABDAY_5 1862#define ABDAY_6 1963#define ABDAY_7 206465/* month names */66#define MON_1 2167#define MON_2 2268#define MON_3 2369#define MON_4 2470#define MON_5 2571#define MON_6 2672#define MON_7 2773#define MON_8 2874#define MON_9 2975#define MON_10 3076#define MON_11 3177#define MON_12 327879/* abbreviated month names */80#define ABMON_1 3381#define ABMON_2 3482#define ABMON_3 3583#define ABMON_4 3684#define ABMON_5 3785#define ABMON_6 3886#define ABMON_7 3987#define ABMON_8 4088#define ABMON_9 4189#define ABMON_10 4290#define ABMON_11 4391#define ABMON_12 449293#define ERA 45 /* era description segments */94#define ERA_D_FMT 46 /* era date format string */95#define ERA_D_T_FMT 47 /* era date and time format string */96#define ERA_T_FMT 48 /* era time format string */97#define ALT_DIGITS 49 /* alternative symbols for digits */9899#define RADIXCHAR 50 /* radix char */100#define THOUSEP 51 /* separator for thousands */101102#define YESEXPR 52 /* affirmative response expression */103#define NOEXPR 53 /* negative response expression */104105#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE <= 500)106#define YESSTR 54 /* affirmative response for yes/no queries */107#define NOSTR 55 /* negative response for yes/no queries */108#endif109110#define CRNCYSTR 56 /* currency symbol */111112#if __BSD_VISIBLE113#define D_MD_ORDER 57 /* month/day order (local extension) */114#endif115116/* standalone months forms for %OB */117#define ALTMON_1 58118#define ALTMON_2 59119#define ALTMON_3 60120#define ALTMON_4 61121#define ALTMON_5 62122#define ALTMON_6 63123#define ALTMON_7 64124#define ALTMON_8 65125#define ALTMON_9 66126#define ALTMON_10 67127#define ALTMON_11 68128#define ALTMON_12 69129130__BEGIN_DECLS131char *nl_langinfo(nl_item);132133#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)134#include <xlocale/_langinfo.h>135#endif136__END_DECLS137138#endif /* !_LANGINFO_H_ */139140141