iso/stdlib_iso.h


    1 /*  DO NOT EDIT THIS FILE.
    2 
    3     It has been auto-edited by fixincludes from:
    4 
    5 	"/usr/include/iso/stdlib_iso.h"
    6 
    7     This had to be done to correct non-standard usages in the
    8     original, manufacturer supplied header file.  */
    9 
    10 /*
    11  * Copyright (c) 1996-1999, by Sun Microsystems, Inc.
    12  * All Rights reserved.
    13  */
    14 
    15 /*	Copyright (c) 1988 AT&T	*/
    16 /*	  All Rights Reserved  	*/
    17 
    18 /*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
    19 /*	The copyright notice above does not evidence any   	*/
    20 /*	actual or intended publication of such source code.	*/
    21 
    22 /*
    23  * An application should not include this header directly.  Instead it
    24  * should be included only through the inclusion of other Sun headers.
    25  *
    26  * The contents of this header is limited to identifiers specified in the
    27  * C Standard.  Any new identifiers specified in future amendments to the
    28  * C Standard must be placed in this header.  If these new identifiers
    29  * are required to also be in the C++ Standard "std" namespace, then for
    30  * anything other than macro definitions, corresponding "using" directives
    31  * must also be added to .
    32  */
    33 
    34 #ifndef _ISO_STDLIB_ISO_H
    35 #define	_ISO_STDLIB_ISO_H
    36 
    37 #pragma ident	"@(#)stdlib_iso.h	1.2	99/12/21 SMI" /* SVr4.0 1.22 */
    38 
    39 #include 
    40 
    41 #ifdef	__cplusplus
    42 extern "C" {
    43 #endif
    44 
    45 #if defined(__STDC__)
    46 extern unsigned char	__ctype[];
    47 #define	MB_CUR_MAX	__ctype[520]
    48 #else
    49 extern unsigned char	_ctype[];
    50 #define	MB_CUR_MAX	_ctype[520]
    51 #endif
    52 
    53 #if __cplusplus >= 199711L
    54 namespace std {
    55 #endif
    56 
    57 typedef	struct {
    58 	int	quot;
    59 	int	rem;
    60 } div_t;  <typedef:div_t>
    61 
    62 typedef struct {
    63 	long	quot;
    64 	long	rem;
    65 } ldiv_t;  <typedef:ldiv_t>
    66 
    67 #if !defined(_SIZE_T) || __cplusplus >= 199711L
    68 #define	_SIZE_T
    69 #if defined(_LP64) || defined(_I32LPx)
    70 typedef unsigned long	size_t;		/* size of something in bytes */
    71 #else
    72 typedef unsigned int    size_t;		/* (historical version) */
    73 #endif
    74 #endif	/* !_SIZE_T */
    75 
    76 #ifndef	NULL
    77 #if defined(_LP64) && !defined(__cplusplus)
    78 #define	NULL	0L
    79 #else
    80 #define	NULL	0
    81 #endif
    82 #endif
    83 
    84 #define	EXIT_FAILURE	1
    85 #define	EXIT_SUCCESS    0
    86 #define	RAND_MAX	32767
    87 
    88 #ifndef _WCHAR_T
    89 #define	_WCHAR_T
    90 #if defined(_LP64)
    91 #ifndef __cplusplus
    92 typedef	int	wchar_t;
    93 #endif
    94 #else
    95 #ifndef __cplusplus
    96 typedef long	wchar_t;  <typedef:wchar_t>
    97 #endif
    98 #endif
    99 #endif	/* !_WCHAR_T */
    100 
    101 #if defined(__STDC__)
    102 
    103 extern void abort(void);
    104 extern int abs(int);
    105 extern int atexit(void (*)(void));
    106 extern double atof(const char *);
    107 extern int atoi(const char *);
    108 extern long int atol(const char *);
    109 extern void *bsearch(const void *, const void *, size_t, size_t,
    110 	int (*)(const void *, const void *));
    111 extern void *calloc(size_t, size_t);
    112 extern div_t div(int, int);
    113 extern void exit(int);
    114 extern void free(void *);
    115 extern char *getenv(const char *);
    116 extern long int labs(long);
    117 extern ldiv_t ldiv(long, long);
    118 extern void *malloc(size_t);
    119 extern int mblen(const char *, size_t);
    120 extern size_t mbstowcs(wchar_t *, const char *, size_t);
    121 extern int mbtowc(wchar_t *, const char *, size_t);
    122 extern void qsort(void *, size_t, size_t,
    123 	int (*)(const void *, const void *));
    124 extern int rand(void);
    125 extern void *realloc(void *, size_t);
    126 extern void srand(unsigned int);
    127 extern double strtod(const char *, char **);
    128 extern long int strtol(const char *, char **, int);
    129 extern unsigned long int strtoul(const char *, char **, int);
    130 extern int system(const char *);
    131 extern int wctomb(char *, wchar_t);
    132 extern size_t wcstombs(char *, const wchar_t *, size_t);
    133 
    134 #else /* not __STDC__ */
    135 
    136 extern void abort();
    137 extern int abs();
    138 extern int atexit();
    139 extern double atof();
    140 extern int atoi();
    141 extern long int atol();
    142 extern void *bsearch();
    143 extern void *calloc();
    144 extern div_t div();
    145 extern void exit();
    146 extern void free();
    147 extern char *getenv();
    148 extern long int labs();
    149 extern ldiv_t ldiv();
    150 extern void *malloc();
    151 extern int mblen();
    152 extern size_t mbstowcs();
    153 extern int mbtowc();
    154 extern void qsort();
    155 extern int rand();
    156 extern void *realloc();
    157 extern void srand();
    158 extern double strtod();
    159 extern long int strtol();
    160 extern unsigned long strtoul();
    161 extern int system();
    162 extern int wctomb();
    163 extern size_t wcstombs();
    164 
    165 #endif	/* __STDC__ */
    166 
    167 #if __cplusplus >= 199711L
    168 }
    169 #endif /* end of namespace std */
    170 
    171 #ifdef	__cplusplus
    172 }
    173 #endif
    174 
    175 #endif	/* _ISO_STDLIB_ISO_H */