Print this page
2964 need POSIX 2008 locale object support

Split Close
Expand all
Collapse all
          --- old/usr/src/head/langinfo.h
          +++ new/usr/src/head/langinfo.h
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*      Copyright (c) 1988 AT&T */
  28   28  /*        All Rights Reserved   */
  29   29  
  30   30  
  31   31  #ifndef _LANGINFO_H
  32   32  #define _LANGINFO_H
  33   33  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.2   */
  35      -
  36   34  #include <sys/feature_tests.h>
  37   35  #include <nl_types.h>
  38   36  
  39   37  #ifdef  __cplusplus
  40   38  extern "C" {
  41   39  #endif
  42   40  
  43   41  /*
  44   42   * The seven days of the week in their full beauty
  45   43   */
↓ open down ↓ 88 lines elided ↑ open up ↑
 134  132  #define ERA_T_FMT       54      /* era time format string */
 135  133  #define ALT_DIGITS      55      /* alternative symbols for digits */
 136  134  #define YESEXPR         56      /* affirmative response expression */
 137  135  #define NOEXPR          57      /* negative response expression */
 138  136  #define _DATE_FMT       58      /* strftime format for date(1) */
 139  137  
 140  138  #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 141  139  #define MAXSTRMSG       58 /* Maximum number of strings in langinfo */
 142  140  #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 143  141  
      142 +#ifndef _LOCALE_T_DEFINED
      143 +#define _LOCALE_T_DEFINED
      144 +typedef struct  _xlocale *locale_t;
      145 +#endif
      146 +
 144  147  /*
 145  148   * and the definitions of functions langinfo(3C)
 146  149   */
 147  150  #if defined(__STDC__)
 148      -char   *nl_langinfo(nl_item);   /* get a string from the database       */
      151 +char    *nl_langinfo(nl_item);  /* get a string from the database       */
      152 +char    *nl_langinfo_l(nl_item, locale_t);
 149  153  #else
 150      -char   *nl_langinfo();          /* get a string from the database       */
      154 +char    *nl_langinfo();         /* get a string from the database       */
      155 +char    *nl_langinfo_l();
 151  156  #endif
 152  157  
 153  158  #ifdef  __cplusplus
 154  159  }
 155  160  #endif
 156  161  
 157  162  #endif  /* _LANGINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX