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

Split Close
Expand all
Collapse all
          --- old/usr/src/head/langinfo.h
          +++ new/usr/src/head/langinfo.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  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 +/*
       31 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       32 + */
  30   33  
       34 +
  31   35  #ifndef _LANGINFO_H
  32   36  #define _LANGINFO_H
  33   37  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.2   */
  35      -
  36   38  #include <sys/feature_tests.h>
  37   39  #include <nl_types.h>
  38   40  
  39   41  #ifdef  __cplusplus
  40   42  extern "C" {
  41   43  #endif
  42   44  
  43   45  /*
  44   46   * The seven days of the week in their full beauty
  45   47   */
↓ open down ↓ 97 lines elided ↑ open up ↑
 143  145  
 144  146  /*
 145  147   * and the definitions of functions langinfo(3C)
 146  148   */
 147  149  #if defined(__STDC__)
 148  150  char   *nl_langinfo(nl_item);   /* get a string from the database       */
 149  151  #else
 150  152  char   *nl_langinfo();          /* get a string from the database       */
 151  153  #endif
 152  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 +
 153  168  #ifdef  __cplusplus
 154  169  }
 155  170  #endif
 156  171  
 157  172  #endif  /* _LANGINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX