langinfo.h revision 72169
168765Sobrien/* 2218822Sdim * Copyright (c) 2001 Alexey Zelkin 368765Sobrien * All rights reserved. 468765Sobrien * 568765Sobrien * Redistribution and use in source and binary forms, with or without 668765Sobrien * modification, are permitted provided that the following conditions 768765Sobrien * are met: 868765Sobrien * 1. Redistributions of source code must retain the above copyright 968765Sobrien * notice, this list of conditions and the following disclaimer. 1068765Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1168765Sobrien * notice, this list of conditions and the following disclaimer in the 12104834Sobrien * documentation and/or other materials provided with the distribution. 13104834Sobrien * 14104834Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15104834Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16104834Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17104834Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18104834Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19104834Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20104834Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2168765Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2268765Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2368765Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2468765Sobrien * SUCH DAMAGE. 2568765Sobrien * 2668765Sobrien * $FreeBSD: head/include/langinfo.h 72169 2001-02-08 17:12:03Z phantom $ 2768765Sobrien */ 28218822Sdim 29218822Sdim#ifndef _LANGINFO_H 3068765Sobrien#define _LANGINFO_H 3168765Sobrien 3268765Sobrien#include <sys/cdefs.h> 3368765Sobrien#include <nl_types.h> 3468765Sobrien 3568765Sobrien#define CODESET 0 /* codeset name */ 3668765Sobrien#define D_T_FMT 1 /* string for formatting date and time */ 3768765Sobrien#define D_FMT 2 /* date format string */ 3868765Sobrien#define T_FMT 3 /* time format string */ 3968765Sobrien#define T_FMT_AMPM 4 /* a.m. or p.m. time formatting string */ 4068765Sobrien#define AM_STR 5 /* Ante Meridian affix */ 4168765Sobrien#define PM_STR 6 /* Post Meridian affix */ 4268765Sobrien 4368765Sobrien/* week day names */ 4468765Sobrien#define DAY_1 7 4568765Sobrien#define DAY_2 8 4668765Sobrien#define DAY_3 9 4768765Sobrien#define DAY_4 10 4868765Sobrien#define DAY_5 11 4968765Sobrien#define DAY_6 12 5068765Sobrien#define DAY_7 13 5168765Sobrien 5268765Sobrien/* abbreviated week day names */ 5368765Sobrien#define ABDAY_1 14 5468765Sobrien#define ABDAY_2 15 5568765Sobrien#define ABDAY_3 16 5668765Sobrien#define ABDAY_4 17 5768765Sobrien#define ABDAY_5 18 5868765Sobrien#define ABDAY_6 19 59218822Sdim#define ABDAY_7 20 6068765Sobrien 6168765Sobrien/* month names */ 6268765Sobrien#define MON_1 21 6368765Sobrien#define MON_2 22 6468765Sobrien#define MON_3 23 6568765Sobrien#define MON_4 24 6668765Sobrien#define MON_5 25 6768765Sobrien#define MON_6 26 6868765Sobrien#define MON_7 27 6968765Sobrien#define MON_8 28 70218822Sdim#define MON_9 29 7168765Sobrien#define MON_10 30 7268765Sobrien#define MON_11 31 7368765Sobrien#define MON_12 32 7468765Sobrien 7568765Sobrien/* abbreviated month names */ 7668765Sobrien#define ABMON_1 33 7768765Sobrien#define ABMON_2 34 7868765Sobrien#define ABMON_3 35 7968765Sobrien#define ABMON_4 36 8068765Sobrien#define ABMON_5 37 8168765Sobrien#define ABMON_6 38 8268765Sobrien#define ABMON_7 39 8368765Sobrien#define ABMON_8 40 8468765Sobrien#define ABMON_9 41 8568765Sobrien#define ABMON_10 42 86218822Sdim#define ABMON_11 43 8768765Sobrien#define ABMON_12 44 8868765Sobrien 8968765Sobrien#define ERA 45 /* era description segments */ 9068765Sobrien#define ERA_D_FMT 46 /* era date format string */ 9168765Sobrien#define ERA_D_T_FMT 47 /* era date and time format string */ 9268765Sobrien#define ERA_T_FMT 48 /* era time format string */ 9368765Sobrien#define ALT_DIGITS 49 /* alternative symbols for digits */ 9468765Sobrien 9568765Sobrien#define RADIXCHAR 50 /* radix char */ 9668765Sobrien#define THOUSEP 51 /* separator for thousands */ 9768765Sobrien 9868765Sobrien#define YESEXPR 52 /* affirmative response expression */ 99218822Sdim#define NOEXPR 53 /* negative response expression */ 10068765Sobrien#define YESSTR 54 /* affirmative response for yes/no queries */ 10168765Sobrien#define NOSTR 55 /* negative response for yes/no queries */ 10268765Sobrien 10368765Sobrien#define CRNCYSTR 56 /* currency symbol */ 10468765Sobrien 10568765Sobrien__BEGIN_DECLS 10668765Sobrienchar *nl_langinfo(nl_item); 10768765Sobrien__END_DECLS 108218822Sdim 10968765Sobrien#endif /* _LANGINFO_H */ 11068765Sobrien