Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>


   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 2005 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 /*
  32  * An application should not include this header directly.  Instead it
  33  * should be included only through the inclusion of other Sun headers.
  34  *
  35  * The contents of this header is limited to identifiers specified in the
  36  * C Standard.  Any new identifiers specified in future amendments to the
  37  * C Standard must be placed in this header.  If these new identifiers
  38  * are required to also be in the C++ Standard "std" namespace, then for
  39  * anything other than macro definitions, corresponding "using" directives
  40  * must also be added to <locale.h>.
  41  */
  42 
  43 #ifndef _ISO_STDLIB_ISO_H
  44 #define _ISO_STDLIB_ISO_H
  45 
  46 #include <sys/feature_tests.h>
  47 
  48 #ifdef  __cplusplus
  49 extern "C" {
  50 #endif
  51 
  52 #if defined(__STDC__)
  53 extern unsigned char    __ctype[];
  54 #define MB_CUR_MAX      __ctype[520]
  55 #else
  56 extern unsigned char    _ctype[];
  57 #define MB_CUR_MAX      _ctype[520]
  58 #endif



  59 
  60 #if __cplusplus >= 199711L
  61 namespace std {
  62 #endif
  63 
  64 typedef struct {
  65         int     quot;
  66         int     rem;
  67 } div_t;
  68 
  69 typedef struct {
  70         long    quot;
  71         long    rem;
  72 } ldiv_t;
  73 
  74 #if !defined(_SIZE_T) || __cplusplus >= 199711L
  75 #define _SIZE_T
  76 #if defined(_LP64) || defined(_I32LPx)
  77 typedef unsigned long   size_t;         /* size of something in bytes */
  78 #else




   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 2005 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 /*
  27  * Copyright 2013 Garrett D'Amore <garrett@damore.org>
  28  */
  29 
  30 /*      Copyright (c) 1988 AT&T     */
  31 /*        All Rights Reserved   */
  32 
  33 
  34 /*
  35  * An application should not include this header directly.  Instead it
  36  * should be included only through the inclusion of other Sun headers.
  37  *
  38  * The contents of this header is limited to identifiers specified in the
  39  * C Standard.  Any new identifiers specified in future amendments to the
  40  * C Standard must be placed in this header.  If these new identifiers
  41  * are required to also be in the C++ Standard "std" namespace, then for
  42  * anything other than macro definitions, corresponding "using" directives
  43  * must also be added to <locale.h>.
  44  */
  45 
  46 #ifndef _ISO_STDLIB_ISO_H
  47 #define _ISO_STDLIB_ISO_H
  48 
  49 #include <sys/feature_tests.h>
  50 
  51 #ifdef  __cplusplus
  52 extern "C" {
  53 #endif
  54 
  55 #if defined(__STDC__)
  56 unsigned char __mb_cur_max(void);

  57 #else
  58 unsigned char __mb_cur_max();

  59 #endif
  60 #ifndef MB_CUR_MAX
  61 #define MB_CUR_MAX      (__mb_cur_max())
  62 #endif
  63 
  64 #if __cplusplus >= 199711L
  65 namespace std {
  66 #endif
  67 
  68 typedef struct {
  69         int     quot;
  70         int     rem;
  71 } div_t;
  72 
  73 typedef struct {
  74         long    quot;
  75         long    rem;
  76 } ldiv_t;
  77 
  78 #if !defined(_SIZE_T) || __cplusplus >= 199711L
  79 #define _SIZE_T
  80 #if defined(_LP64) || defined(_I32LPx)
  81 typedef unsigned long   size_t;         /* size of something in bytes */
  82 #else