131 lines
4.7 KiB
C
131 lines
4.7 KiB
C
/* @(#)42 1.9 src/bos/usr/include/langinfo.h, libcnls, bos411, 9428A410j 1/12/93 16:59:47 */
|
|
|
|
/*
|
|
* COMPONENT_NAME: (LIBCNLS) Standard C Library National Language Support
|
|
*
|
|
* FUNCTIONS:
|
|
*
|
|
* ORIGINS: 27
|
|
*
|
|
* (C) COPYRIGHT International Business Machines Corp. 1989, 1992
|
|
* All Rights Reserved
|
|
* Licensed Materials - Property of IBM
|
|
*
|
|
* US Government Users Restricted Rights - Use, duplication or
|
|
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
*/
|
|
|
|
#ifndef _H_LANGINFO
|
|
#define _H_LANGINFO
|
|
|
|
#ifndef _H_STANDARDS
|
|
#include <standards.h>
|
|
#endif
|
|
|
|
#ifndef _H_NL_TYPES
|
|
#include <nl_types.h>
|
|
#endif
|
|
|
|
#ifdef _XOPEN_SOURCE
|
|
|
|
#define D_T_FMT 1 /* string for formatting date and time */
|
|
#define D_FMT 2 /* string for formatting date */
|
|
#define T_FMT 3 /* string for formatting time */
|
|
#define AM_STR 4 /* string for a.m. */
|
|
#define PM_STR 5 /* string for p.m. */
|
|
|
|
#define ABDAY_1 6 /* abbreviated first day of the week (Sun) */
|
|
#define ABDAY_2 7 /* abbreviated second day of the week (Mon) */
|
|
#define ABDAY_3 8 /* abbreviated third day of the week (Tue) */
|
|
#define ABDAY_4 9 /* abbreviated fourth day of the week (Wed) */
|
|
#define ABDAY_5 10 /* abbreviated fifth day of the week (Thu) */
|
|
#define ABDAY_6 11 /* abbreviated sixth day of the week (Fri) */
|
|
#define ABDAY_7 12 /* abbreviated seventh day of the week (Sat) */
|
|
|
|
#define DAY_1 13 /* name of the first day of the week (Sunday) */
|
|
#define DAY_2 14 /* name of the second day of the week (Monday) */
|
|
#define DAY_3 15 /* name of the third day of the week (Tuesday) */
|
|
#define DAY_4 16 /* name of the fourth day of the week (Wednesday) */
|
|
#define DAY_5 17 /* name of the fifth day of the week (Thursday) */
|
|
#define DAY_6 18 /* name of the sixth day of the week (Friday) */
|
|
#define DAY_7 19 /* name of the seventh day of the week (Saturday) */
|
|
|
|
#define ABMON_1 20 /* abbreviated first month (Jan) */
|
|
#define ABMON_2 21 /* abbreviated second month (Feb) */
|
|
#define ABMON_3 22 /* abbreviated third month (Mar) */
|
|
#define ABMON_4 23 /* abbreviated fourth month (Apr) */
|
|
#define ABMON_5 24 /* abbreviated fifth month (May) */
|
|
#define ABMON_6 25 /* abbreviated sixth month (Jun) */
|
|
#define ABMON_7 26 /* abbreviated seventh month (Jul) */
|
|
#define ABMON_8 27 /* abbreviated eighth month (Aug) */
|
|
#define ABMON_9 28 /* abbreviated ninth month (Sep) */
|
|
#define ABMON_10 29 /* abbreviated tenth month (Oct) */
|
|
#define ABMON_11 30 /* abbreviated eleventh month (Nov) */
|
|
#define ABMON_12 31 /* abbreviated twelveth month (Dec) */
|
|
|
|
#define MON_1 32 /* name of the first month (January) */
|
|
#define MON_2 33 /* name of the second month (February) */
|
|
#define MON_3 34 /* name of the third month (March) */
|
|
#define MON_4 35 /* name of the fourth month (April) */
|
|
#define MON_5 36 /* name of the fifth month (May) */
|
|
#define MON_6 37 /* name of the sixth month (June) */
|
|
#define MON_7 38 /* name of the seventh month (July) */
|
|
#define MON_8 39 /* name of the eighth month (August) */
|
|
#define MON_9 40 /* name of the ninth month (September) */
|
|
#define MON_10 41 /* name of the tenth month (October) */
|
|
#define MON_11 42 /* name of the eleventh month (November) */
|
|
#define MON_12 43 /* name of the twelveth month (December) */
|
|
|
|
#define RADIXCHAR 44 /* radix character */
|
|
#define THOUSEP 45 /* separator for thousands */
|
|
#define YESSTR 46 /* affiramitive response for yes/no queries */
|
|
#define NOSTR 47 /* negative response for yes/no queries */
|
|
#define CRNCYSTR 48 /* currency symbol; - leading, + trailing */
|
|
#define CODESET 49 /* codeset name */
|
|
|
|
/* Additional constants defined in XPG4 */
|
|
|
|
#define T_FMT_AMPM 55 /* am/pm time formating string */
|
|
#define ERA 56 /* era description segments */
|
|
#define ERA_D_FMT 57 /* era date format string */
|
|
#define ERA_D_T_FMT 58 /* era date and time format string */
|
|
#define ERA_T_FMT 59 /* era time format string */
|
|
#define ALT_DIGITS 60 /* alternative symbols for digits */
|
|
#define YESEXPR 61 /* affirmative response expression */
|
|
#define NOEXPR 62 /* negative response expression */
|
|
|
|
#ifdef _NO_PROTO
|
|
extern char *nl_langinfo();
|
|
#else
|
|
extern char *nl_langinfo(nl_item);
|
|
#endif
|
|
|
|
#endif /* _XOPEN_SOURCE */
|
|
|
|
#ifdef _ALL_SOURCE
|
|
|
|
#ifndef __H_LOCALEDEF
|
|
#include <sys/localedef.h>
|
|
#endif
|
|
|
|
/*
|
|
* nl_items to support implementation of NLgetenv
|
|
*/
|
|
#define NLLDATE 50
|
|
#define NLTMISC 51
|
|
#define NLTSTRS 52
|
|
#define NLTUNITS 53
|
|
#define NLYEAR 54
|
|
|
|
/**********
|
|
** if this number changes, it MUST be changed
|
|
** in sys/localedef.h
|
|
**********/
|
|
#ifndef _NL_NUM_ITEMS
|
|
#define _NL_NUM_ITEMS 63
|
|
#endif
|
|
|
|
#endif /* _ALL_SOURCE */
|
|
|
|
#endif /* _H_LANGINFO */
|