Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  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 */


 129  */
 130 
 131 #define CODESET         49      /* codeset name */
 132 #define T_FMT_AMPM      50      /* am or pm time format string */
 133 #define ERA             51      /* era description segments */
 134 #define ERA_D_FMT       52      /* era date format string */
 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 */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  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 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 /*      Copyright (c) 1988 AT&T     */
  30 /*        All Rights Reserved   */
  31 



  32 

  33 #ifndef _LANGINFO_H
  34 #define _LANGINFO_H
  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 */


 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 char   *nl_langinfo(nl_item);   /* get a string from the database       */



 148 
 149 #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
 150 #ifndef _LOCALE_T
 151 #define _LOCALE_T
 152 typedef struct _locale *locale_t;
 153 #endif
 154 

 155 char    *nl_langinfo_l(nl_item, locale_t);


 156 #endif

 157 
 158 #ifdef  __cplusplus
 159 }
 160 #endif
 161 
 162 #endif  /* _LANGINFO_H */