Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD


  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  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 /*


 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 */


  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  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  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  32  */
  33 
  34 
  35 #ifndef _LANGINFO_H
  36 #define _LANGINFO_H
  37 


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


 135 #define ERA_D_T_FMT     53      /* era date and time format string */
 136 #define ERA_T_FMT       54      /* era time format string */
 137 #define ALT_DIGITS      55      /* alternative symbols for digits */
 138 #define YESEXPR         56      /* affirmative response expression */
 139 #define NOEXPR          57      /* negative response expression */
 140 #define _DATE_FMT       58      /* strftime format for date(1) */
 141 
 142 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 143 #define MAXSTRMSG       58 /* Maximum number of strings in langinfo */
 144 #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 145 
 146 /*
 147  * and the definitions of functions langinfo(3C)
 148  */
 149 #if defined(__STDC__)
 150 char   *nl_langinfo(nl_item);   /* get a string from the database       */
 151 #else
 152 char   *nl_langinfo();          /* get a string from the database       */
 153 #endif
 154 
 155 #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
 156 #ifndef _LOCALE_T
 157 #define _LOCALE_T
 158 typedef struct locale *locale_t;
 159 #endif
 160 
 161 #if defined(__STDC__)
 162 char    *nl_langinfo_l(nl_item, locale_t);
 163 #else
 164 char    *nl_langinfo_l();
 165 #endif
 166 #endif
 167 
 168 #ifdef  __cplusplus
 169 }
 170 #endif
 171 
 172 #endif  /* _LANGINFO_H */