4 * Definitions for common types, variables, and functions.
16 #define __need_wchar_t
19 #include <sys/reent.h>
23 int quot
; /* quotient */
24 int rem
; /* remainder */
29 long quot
; /* quotient */
30 long rem
; /* remainder */
37 #define EXIT_FAILURE 1
38 #define EXIT_SUCCESS 0
40 #define RAND_MAX __RAND_MAX
42 extern __IMPORT
int __mb_cur_max
;
44 #define MB_CUR_MAX __mb_cur_max
46 _VOID
_EXFUN(abort
,(_VOID
) _ATTRIBUTE ((noreturn
)));
47 int _EXFUN(abs
,(int));
48 int _EXFUN(atexit
,(_VOID (*__func
)(_VOID
)));
49 double _EXFUN(atof
,(const char *__nptr
));
50 #ifndef __STRICT_ANSI__
51 float _EXFUN(atoff
,(const char *__nptr
));
53 int _EXFUN(atoi
,(const char *__nptr
));
54 long _EXFUN(atol
,(const char *__nptr
));
55 _PTR
_EXFUN(bsearch
,(const _PTR __key
,
59 int _EXPARM(_compar
,(const _PTR
, const _PTR
))));
60 _PTR
_EXFUN(calloc
,(size_t __nmemb
, size_t __size
));
61 div_t _EXFUN(div
,(int __numer
, int __denom
));
62 _VOID
_EXFUN(exit
,(int __status
) _ATTRIBUTE ((noreturn
)));
63 _VOID
_EXFUN(free
,(_PTR
));
64 char * _EXFUN(getenv
,(const char *__string
));
65 char * _EXFUN(_getenv_r
,(struct _reent
*, const char *__string
));
66 char * _EXFUN(_findenv
,(_CONST
char *, int *));
67 char * _EXFUN(_findenv_r
,(struct _reent
*, _CONST
char *, int *));
68 long _EXFUN(labs
,(long));
69 ldiv_t _EXFUN(ldiv
,(long __numer
, long __denom
));
70 _PTR
_EXFUN(malloc
,(size_t __size
));
71 int _EXFUN(mblen
,(const char *, size_t));
72 int _EXFUN(_mblen_r
,(struct _reent
*, const char *, size_t, int *));
73 int _EXFUN(mbtowc
,(wchar_t *, const char *, size_t));
74 int _EXFUN(_mbtowc_r
,(struct _reent
*, wchar_t *, const char *, size_t, int *));
75 int _EXFUN(wctomb
,(char *, wchar_t));
76 int _EXFUN(_wctomb_r
,(struct _reent
*, char *, wchar_t, int *));
77 size_t _EXFUN(mbstowcs
,(wchar_t *, const char *, size_t));
78 size_t _EXFUN(_mbstowcs_r
,(struct _reent
*, wchar_t *, const char *, size_t, int *));
79 size_t _EXFUN(wcstombs
,(char *, const wchar_t *, size_t));
80 size_t _EXFUN(_wcstombs_r
,(struct _reent
*, char *, const wchar_t *, size_t, int *));
81 #ifndef __STRICT_ANSI__
83 int _EXFUN(mkstemp
,(char *));
84 char * _EXFUN(mktemp
,(char *));
87 _VOID
_EXFUN(qsort
,(_PTR __base
, size_t __nmemb
, size_t __size
, int(*_compar
)(const _PTR
, const _PTR
)));
88 int _EXFUN(rand
,(_VOID
));
89 _PTR
_EXFUN(realloc
,(_PTR __r
, size_t __size
));
90 _VOID
_EXFUN(srand
,(unsigned __seed
));
91 double _EXFUN(strtod
,(const char *__n
, char **_end_PTR
));
92 double _EXFUN(_strtod_r
,(struct _reent
*,const char *__n
, char **_end_PTR
));
93 #ifndef __STRICT_ANSI__
94 float _EXFUN(strtodf
,(const char *__n
, char **_end_PTR
));
96 long _EXFUN(strtol
,(const char *__n
, char **_end_PTR
, int __base
));
97 long _EXFUN(_strtol_r
,(struct _reent
*,const char *__n
, char **_end_PTR
, int __base
));
98 unsigned long _EXFUN(strtoul
,(const char *_n_PTR
, char **_end_PTR
, int __base
));
99 unsigned long _EXFUN(_strtoul_r
,(struct _reent
*,const char *_n_PTR
, char **_end_PTR
, int __base
));
100 int _EXFUN(system
,(const char *__string
));
102 #ifndef __STRICT_ANSI__
103 int _EXFUN(putenv
,(const char *__string
));
104 int _EXFUN(_putenv_r
,(struct _reent
*, const char *__string
));
105 int _EXFUN(setenv
,(const char *__string
, const char *__value
, int __overwrite
));
106 int _EXFUN(_setenv_r
,(struct _reent
*, const char *__string
, const char *__value
, int __overwrite
));
108 char * _EXFUN(gcvt
,(double,int,char *));
109 char * _EXFUN(gcvtf
,(float,int,char *));
110 char * _EXFUN(fcvt
,(double,int,int *,int *));
111 char * _EXFUN(fcvtf
,(float,int,int *,int *));
112 char * _EXFUN(ecvt
,(double,int,int *,int *));
113 char * _EXFUN(ecvtbuf
,(double, int, int*, int*, char *));
114 char * _EXFUN(fcvtbuf
,(double, int, int*, int*, char *));
115 char * _EXFUN(ecvtf
,(float,int,int *,int *));
116 char * _EXFUN(dtoa
,(double, int, int, int *, int*, char**));
117 int _EXFUN(rand_r
,(unsigned *__seed
));
119 double _EXFUN(drand48
,(_VOID
));
120 double _EXFUN(_drand48_r
,(struct _reent
*));
121 double _EXFUN(erand48
,(unsigned short [3]));
122 double _EXFUN(_erand48_r
,(struct _reent
*, unsigned short [3]));
123 long _EXFUN(jrand48
,(unsigned short [3]));
124 long _EXFUN(_jrand48_r
,(struct _reent
*, unsigned short [3]));
125 _VOID
_EXFUN(lcong48
,(unsigned short [7]));
126 _VOID
_EXFUN(_lcong48_r
,(struct _reent
*, unsigned short [7]));
127 long _EXFUN(lrand48
,(_VOID
));
128 long _EXFUN(_lrand48_r
,(struct _reent
*));
129 long _EXFUN(mrand48
,(_VOID
));
130 long _EXFUN(_mrand48_r
,(struct _reent
*));
131 long _EXFUN(nrand48
,(unsigned short [3]));
132 long _EXFUN(_nrand48_r
,(struct _reent
*, unsigned short [3]));
134 _EXFUN(seed48
,(unsigned short [3]));
136 _EXFUN(_seed48_r
,(struct _reent
*, unsigned short [3]));
137 _VOID
_EXFUN(srand48
,(long));
138 _VOID
_EXFUN(_srand48_r
,(struct _reent
*, long));
140 #if !defined (__CYGWIN__) && !defined (__MSYS__)
141 _VOID
_EXFUN(cfree
,(_PTR
));
143 char * _EXFUN(realpath
,(const char *, char *));
144 void _EXFUN(unsetenv
,(const char *__string
));
145 void _EXFUN(_unsetenv_r
,(struct _reent
*, const char *__string
));
146 int _EXFUN(random
,(_VOID
));
147 long _EXFUN(srandom
,(unsigned __seed
));
148 char * _EXFUN(ptsname
, (int));
149 int _EXFUN(grantpt
, (int));
150 int _EXFUN(unlockpt
,(int));
153 #endif /* ! __STRICT_ANSI__ */
155 char * _EXFUN(_dtoa_r
,(struct _reent
*, double, int, int, int *, int*, char**));
156 _PTR
_EXFUN(_malloc_r
,(struct _reent
*, size_t));
157 _PTR
_EXFUN(_calloc_r
,(struct _reent
*, size_t, size_t));
158 _VOID
_EXFUN(_free_r
,(struct _reent
*, _PTR
));
159 _PTR
_EXFUN(_realloc_r
,(struct _reent
*, _PTR
, size_t));
160 _VOID
_EXFUN(_mstats_r
,(struct _reent
*, char *));
161 int _EXFUN(_system_r
,(struct _reent
*, const char *));
163 _VOID
_EXFUN(__eprintf
,(const char *, const char *, unsigned int, const char *));
168 #endif /* _STDLIB_H_ */