langinfo.h revision 72169
172169Sphantom/* 272169Sphantom * Copyright (c) 2001 Alexey Zelkin 372169Sphantom * All rights reserved. 472169Sphantom * 572169Sphantom * Redistribution and use in source and binary forms, with or without 672169Sphantom * modification, are permitted provided that the following conditions 772169Sphantom * are met: 872169Sphantom * 1. Redistributions of source code must retain the above copyright 972169Sphantom * notice, this list of conditions and the following disclaimer. 1072169Sphantom * 2. Redistributions in binary form must reproduce the above copyright 1172169Sphantom * notice, this list of conditions and the following disclaimer in the 1272169Sphantom * documentation and/or other materials provided with the distribution. 1372169Sphantom * 1472169Sphantom * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1572169Sphantom * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1672169Sphantom * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1772169Sphantom * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1872169Sphantom * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1972169Sphantom * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2072169Sphantom * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2172169Sphantom * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2272169Sphantom * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2372169Sphantom * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2472169Sphantom * SUCH DAMAGE. 2572169Sphantom * 2672169Sphantom * $FreeBSD: head/include/langinfo.h 72169 2001-02-08 17:12:03Z phantom $ 2772169Sphantom */ 2872169Sphantom 2972169Sphantom#ifndef _LANGINFO_H 3072169Sphantom#define _LANGINFO_H 3172169Sphantom 3272169Sphantom#include <sys/cdefs.h> 3372169Sphantom#include <nl_types.h> 3472169Sphantom 3572169Sphantom#define CODESET 0 /* codeset name */ 3672169Sphantom#define D_T_FMT 1 /* string for formatting date and time */ 3772169Sphantom#define D_FMT 2 /* date format string */ 3872169Sphantom#define T_FMT 3 /* time format string */ 3972169Sphantom#define T_FMT_AMPM 4 /* a.m. or p.m. time formatting string */ 4072169Sphantom#define AM_STR 5 /* Ante Meridian affix */ 4172169Sphantom#define PM_STR 6 /* Post Meridian affix */ 4272169Sphantom 4372169Sphantom/* week day names */ 4472169Sphantom#define DAY_1 7 4572169Sphantom#define DAY_2 8 4672169Sphantom#define DAY_3 9 4772169Sphantom#define DAY_4 10 4872169Sphantom#define DAY_5 11 4972169Sphantom#define DAY_6 12 5072169Sphantom#define DAY_7 13 5172169Sphantom 5272169Sphantom/* abbreviated week day names */ 5372169Sphantom#define ABDAY_1 14 5472169Sphantom#define ABDAY_2 15 5572169Sphantom#define ABDAY_3 16 5672169Sphantom#define ABDAY_4 17 5772169Sphantom#define ABDAY_5 18 5872169Sphantom#define ABDAY_6 19 5972169Sphantom#define ABDAY_7 20 6072169Sphantom 6172169Sphantom/* month names */ 6272169Sphantom#define MON_1 21 6372169Sphantom#define MON_2 22 6472169Sphantom#define MON_3 23 6572169Sphantom#define MON_4 24 6672169Sphantom#define MON_5 25 6772169Sphantom#define MON_6 26 6872169Sphantom#define MON_7 27 6972169Sphantom#define MON_8 28 7072169Sphantom#define MON_9 29 7172169Sphantom#define MON_10 30 7272169Sphantom#define MON_11 31 7372169Sphantom#define MON_12 32 7472169Sphantom 7572169Sphantom/* abbreviated month names */ 7672169Sphantom#define ABMON_1 33 7772169Sphantom#define ABMON_2 34 7872169Sphantom#define ABMON_3 35 7972169Sphantom#define ABMON_4 36 8072169Sphantom#define ABMON_5 37 8172169Sphantom#define ABMON_6 38 8272169Sphantom#define ABMON_7 39 8372169Sphantom#define ABMON_8 40 8472169Sphantom#define ABMON_9 41 8572169Sphantom#define ABMON_10 42 8672169Sphantom#define ABMON_11 43 8772169Sphantom#define ABMON_12 44 8872169Sphantom 8972169Sphantom#define ERA 45 /* era description segments */ 9072169Sphantom#define ERA_D_FMT 46 /* era date format string */ 9172169Sphantom#define ERA_D_T_FMT 47 /* era date and time format string */ 9272169Sphantom#define ERA_T_FMT 48 /* era time format string */ 9372169Sphantom#define ALT_DIGITS 49 /* alternative symbols for digits */ 9472169Sphantom 9572169Sphantom#define RADIXCHAR 50 /* radix char */ 9672169Sphantom#define THOUSEP 51 /* separator for thousands */ 9772169Sphantom 9872169Sphantom#define YESEXPR 52 /* affirmative response expression */ 9972169Sphantom#define NOEXPR 53 /* negative response expression */ 10072169Sphantom#define YESSTR 54 /* affirmative response for yes/no queries */ 10172169Sphantom#define NOSTR 55 /* negative response for yes/no queries */ 10272169Sphantom 10372169Sphantom#define CRNCYSTR 56 /* currency symbol */ 10472169Sphantom 10572169Sphantom__BEGIN_DECLS 10672169Sphantomchar *nl_langinfo(nl_item); 10772169Sphantom__END_DECLS 10872169Sphantom 10972169Sphantom#endif /* _LANGINFO_H */ 110