Print this page
2964 need POSIX 2008 locale object support


  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1988 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #ifndef _LANGINFO_H
  32 #define _LANGINFO_H
  33 
  34 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.2   */
  35 
  36 #include <sys/feature_tests.h>
  37 #include <nl_types.h>
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 /*
  44  * The seven days of the week in their full beauty
  45  */
  46 
  47 #define DAY_1     1     /* sunday */
  48 #define DAY_2     2     /* monday */
  49 #define DAY_3     3     /* tuesday */
  50 #define DAY_4     4     /* wednesday */
  51 #define DAY_5     5     /* thursday */
  52 #define DAY_6     6     /* friday */
  53 #define DAY_7     7     /* saturday */
  54 
  55 /*


 124 
 125 /*
 126  * Additions for XPG4 (XSH4) Compliance
 127  */
 128 
 129 #define CODESET         49      /* codeset name */
 130 #define T_FMT_AMPM      50      /* am or pm time format string */
 131 #define ERA             51      /* era description segments */
 132 #define ERA_D_FMT       52      /* era date format string */
 133 #define ERA_D_T_FMT     53      /* era date and time format string */
 134 #define ERA_T_FMT       54      /* era time format string */
 135 #define ALT_DIGITS      55      /* alternative symbols for digits */
 136 #define YESEXPR         56      /* affirmative response expression */
 137 #define NOEXPR          57      /* negative response expression */
 138 #define _DATE_FMT       58      /* strftime format for date(1) */
 139 
 140 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 141 #define MAXSTRMSG       58 /* Maximum number of strings in langinfo */
 142 #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 143 





 144 /*
 145  * and the definitions of functions langinfo(3C)
 146  */
 147 #if defined(__STDC__)
 148 char   *nl_langinfo(nl_item);   /* get a string from the database       */

 149 #else
 150 char   *nl_langinfo();          /* get a string from the database       */

 151 #endif
 152 
 153 #ifdef  __cplusplus
 154 }
 155 #endif
 156 
 157 #endif  /* _LANGINFO_H */


  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1988 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #ifndef _LANGINFO_H
  32 #define _LANGINFO_H
  33 


  34 #include <sys/feature_tests.h>
  35 #include <nl_types.h>
  36 
  37 #ifdef  __cplusplus
  38 extern "C" {
  39 #endif
  40 
  41 /*
  42  * The seven days of the week in their full beauty
  43  */
  44 
  45 #define DAY_1     1     /* sunday */
  46 #define DAY_2     2     /* monday */
  47 #define DAY_3     3     /* tuesday */
  48 #define DAY_4     4     /* wednesday */
  49 #define DAY_5     5     /* thursday */
  50 #define DAY_6     6     /* friday */
  51 #define DAY_7     7     /* saturday */
  52 
  53 /*


 122 
 123 /*
 124  * Additions for XPG4 (XSH4) Compliance
 125  */
 126 
 127 #define CODESET         49      /* codeset name */
 128 #define T_FMT_AMPM      50      /* am or pm time format string */
 129 #define ERA             51      /* era description segments */
 130 #define ERA_D_FMT       52      /* era date format string */
 131 #define ERA_D_T_FMT     53      /* era date and time format string */
 132 #define ERA_T_FMT       54      /* era time format string */
 133 #define ALT_DIGITS      55      /* alternative symbols for digits */
 134 #define YESEXPR         56      /* affirmative response expression */
 135 #define NOEXPR          57      /* negative response expression */
 136 #define _DATE_FMT       58      /* strftime format for date(1) */
 137 
 138 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 139 #define MAXSTRMSG       58 /* Maximum number of strings in langinfo */
 140 #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 141 
 142 #ifndef _LOCALE_T_DEFINED
 143 #define _LOCALE_T_DEFINED
 144 typedef struct  _xlocale *locale_t;
 145 #endif
 146 
 147 /*
 148  * and the definitions of functions langinfo(3C)
 149  */
 150 #if defined(__STDC__)
 151 char    *nl_langinfo(nl_item);  /* get a string from the database       */
 152 char    *nl_langinfo_l(nl_item, locale_t);
 153 #else
 154 char    *nl_langinfo();         /* get a string from the database       */
 155 char    *nl_langinfo_l();
 156 #endif
 157 
 158 #ifdef  __cplusplus
 159 }
 160 #endif
 161 
 162 #endif  /* _LANGINFO_H */