Print this page
2964 need POSIX 2008 locale object support

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/locale_iso.h
          +++ new/usr/src/head/iso/locale_iso.h
↓ open down ↓ 107 lines elided ↑ open up ↑
 108  108  #endif
 109  109  
 110  110  #if     defined(__STDC__)
 111  111  extern char     *setlocale(int, const char *);
 112  112  extern struct lconv *localeconv(void);
 113  113  #else
 114  114  extern char   *setlocale();
 115  115  extern struct lconv     *localeconv();
 116  116  #endif
 117  117  
      118 +/* XXX */
      119 +typedef struct _xlocale *locale_t;
      120 +
      121 +locale_t        duplocale(locale_t);
      122 +int             freelocale(locale_t);
      123 +locale_t        newlocale(int, const char *, locale_t);
      124 +const char      *querylocale(int, locale_t);
      125 +locale_t        uselocale(locale_t);
      126 +
 118  127  #if __cplusplus >= 199711L
 119  128  }
 120  129  #endif /* end of namespace std */
 121  130  
 122  131  #ifdef  __cplusplus
 123  132  }
 124  133  #endif
 125  134  
 126  135  #endif  /* _ISO_LOCALE_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX