Subversion Repositories Kolibri OS

Rev

Rev 4921 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 14... Line 14...
14
#define __need_wchar_t
14
#define __need_wchar_t
15
#define __need_NULL
15
#define __need_NULL
16
#include 
16
#include 
Line 17... Line 17...
17
 
17
 
-
 
18
#include 
18
#include 
19
#include 
19
#include 
20
#include 
20
#ifndef __STRICT_ANSI__
21
#ifndef __STRICT_ANSI__
21
#include 
22
#include 
Line 61... Line 62...
61
 
62
 
Line 62... Line 63...
62
int	_EXFUN(__locale_mb_cur_max,(_VOID));
63
int	_EXFUN(__locale_mb_cur_max,(_VOID));
Line 63... Line 64...
63
 
64
 
64
#define MB_CUR_MAX __locale_mb_cur_max()
65
#define MB_CUR_MAX __locale_mb_cur_max()
65
 
66
 
66
_VOID	_EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));
67
_VOID	_EXFUN(abort,(_VOID) _ATTRIBUTE ((__noreturn__)));
67
int	_EXFUN(abs,(int));
68
int	_EXFUN(abs,(int));
68
int	_EXFUN(atexit,(_VOID (*__func)(_VOID)));
69
int	_EXFUN(atexit,(_VOID (*__func)(_VOID)));
Line 79... Line 80...
79
		       size_t __nmemb,
80
		       size_t __nmemb,
80
		       size_t __size,
81
		       size_t __size,
81
		       __compar_fn_t _compar));
82
		       __compar_fn_t _compar));
82
_PTR	_EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
83
_PTR	_EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
83
div_t	_EXFUN(div,(int __numer, int __denom));
84
div_t	_EXFUN(div,(int __numer, int __denom));
84
_VOID	_EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn)));
85
_VOID	_EXFUN(exit,(int __status) _ATTRIBUTE ((__noreturn__)));
85
_VOID	_EXFUN_NOTHROW(free,(_PTR));
86
_VOID	_EXFUN_NOTHROW(free,(_PTR));
86
char *  _EXFUN(getenv,(const char *__string));
87
char *  _EXFUN(getenv,(const char *__string));
87
char *	_EXFUN(_getenv_r,(struct _reent *, const char *__string));
88
char *	_EXFUN(_getenv_r,(struct _reent *, const char *__string));
88
char *	_EXFUN(_findenv,(_CONST char *, int *));
89
char *	_EXFUN(_findenv,(_CONST char *, int *));
89
char *	_EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
90
char *	_EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
Line 109... Line 110...
109
char *	_EXFUN(mkdtemp,(char *));
110
char *	_EXFUN(mkdtemp,(char *));
110
int	_EXFUN(mkostemp,(char *, int));
111
int	_EXFUN(mkostemp,(char *, int));
111
int	_EXFUN(mkostemps,(char *, int, int));
112
int	_EXFUN(mkostemps,(char *, int, int));
112
int	_EXFUN(mkstemp,(char *));
113
int	_EXFUN(mkstemp,(char *));
113
int	_EXFUN(mkstemps,(char *, int));
114
int	_EXFUN(mkstemps,(char *, int));
114
char *	_EXFUN(mktemp,(char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
115
char *	_EXFUN(mktemp,(char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
115
#endif
116
#endif
116
char *	_EXFUN(_mkdtemp_r, (struct _reent *, char *));
117
char *	_EXFUN(_mkdtemp_r, (struct _reent *, char *));
117
int	_EXFUN(_mkostemp_r, (struct _reent *, char *, int));
118
int	_EXFUN(_mkostemp_r, (struct _reent *, char *, int));
118
int	_EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
119
int	_EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
119
int	_EXFUN(_mkstemp_r, (struct _reent *, char *));
120
int	_EXFUN(_mkstemp_r, (struct _reent *, char *));
120
int	_EXFUN(_mkstemps_r, (struct _reent *, char *, int));
121
int	_EXFUN(_mkstemps_r, (struct _reent *, char *, int));
121
char *	_EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
122
char *	_EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
122
#endif
123
#endif
123
_VOID	_EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
124
_VOID	_EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
124
int	_EXFUN(rand,(_VOID));
125
int	_EXFUN(rand,(_VOID));
125
_PTR	_EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
126
_PTR	_EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
126
#ifndef __STRICT_ANSI__
127
#ifndef __STRICT_ANSI__
127
_PTR	_EXFUN(reallocf,(_PTR __r, size_t __size));
128
_PTR	_EXFUN(reallocf,(_PTR __r, size_t __size));
128
char *	_EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path));
129
char *	_EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path));
-
 
130
int	_EXFUN(rpmatch, (const char *response));
129
#endif
131
#endif
130
_VOID	_EXFUN(srand,(unsigned __seed));
132
_VOID	_EXFUN(srand,(unsigned __seed));
131
double	_EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR));
133
double	_EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR));
132
double	_EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR));
134
double	_EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR));
-
 
135
#if !defined(__STRICT_ANSI__) || \
133
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
136
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-
 
137
  (defined(__cplusplus) && __cplusplus >= 201103L)
134
float	_EXFUN(strtof,(const char *__restrict __n, char **__restrict __end_PTR));
138
float	_EXFUN(strtof,(const char *__restrict __n, char **__restrict __end_PTR));
135
#endif
139
#endif
136
#ifndef __STRICT_ANSI__
140
#ifndef __STRICT_ANSI__
137
/* the following strtodf interface is deprecated...use strtof instead */
141
/* the following strtodf interface is deprecated...use strtof instead */
138
# ifndef strtodf
142
# ifndef strtodf 
Line 149... Line 153...
149
#ifndef __STRICT_ANSI__
153
#ifndef __STRICT_ANSI__
150
long    _EXFUN(a64l,(const char *__input));
154
long    _EXFUN(a64l,(const char *__input));
151
char *  _EXFUN(l64a,(long __input));
155
char *  _EXFUN(l64a,(long __input));
152
char *  _EXFUN(_l64a_r,(struct _reent *,long __input));
156
char *  _EXFUN(_l64a_r,(struct _reent *,long __input));
153
int	_EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg));
157
int	_EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg));
-
 
158
#endif /* ! __STRICT_ANSI__ */
-
 
159
#if !defined(__STRICT_ANSI__) || \
-
 
160
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-
 
161
  (defined(__cplusplus) && __cplusplus >= 201103L)
154
_VOID	_EXFUN(_Exit,(int __status) _ATTRIBUTE ((noreturn)));
162
_VOID	_EXFUN(_Exit,(int __status) _ATTRIBUTE ((__noreturn__)));
-
 
163
#endif
-
 
164
#ifndef __STRICT_ANSI__
155
int	_EXFUN(putenv,(char *__string));
165
int	_EXFUN(putenv,(char *__string));
156
int	_EXFUN(_putenv_r,(struct _reent *, char *__string));
166
int	_EXFUN(_putenv_r,(struct _reent *, char *__string));
157
_PTR	_EXFUN(_reallocf_r,(struct _reent *, _PTR, size_t));
167
_PTR	_EXFUN(_reallocf_r,(struct _reent *, _PTR, size_t));
158
int	_EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
168
int	_EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
159
int	_EXFUN(_setenv_r,(struct _reent *, const char *__string, const char *__value, int __overwrite));
169
int	_EXFUN(_setenv_r,(struct _reent *, const char *__string, const char *__value, int __overwrite));
Line 165... Line 175...
165
char *	_EXFUN(ecvt,(double,int,int *,int *));
175
char *	_EXFUN(ecvt,(double,int,int *,int *));
166
char *	_EXFUN(ecvtbuf,(double, int, int*, int*, char *));
176
char *	_EXFUN(ecvtbuf,(double, int, int*, int*, char *));
167
char *	_EXFUN(fcvtbuf,(double, int, int*, int*, char *));
177
char *	_EXFUN(fcvtbuf,(double, int, int*, int*, char *));
168
char *	_EXFUN(ecvtf,(float,int,int *,int *));
178
char *	_EXFUN(ecvtf,(float,int,int *,int *));
169
char *	_EXFUN(dtoa,(double, int, int, int *, int*, char**));
179
char *	_EXFUN(dtoa,(double, int, int, int *, int*, char**));
-
 
180
#endif
-
 
181
char *	_EXFUN(__itoa,(int, char *, int));
-
 
182
char *	_EXFUN(__utoa,(unsigned, char *, int));
-
 
183
#ifndef __STRICT_ANSI__
-
 
184
char *	_EXFUN(itoa,(int, char *, int));
-
 
185
char *	_EXFUN(utoa,(unsigned, char *, int));
170
int	_EXFUN(rand_r,(unsigned *__seed));
186
int	_EXFUN(rand_r,(unsigned *__seed));
Line 171... Line 187...
171
 
187
 
172
double _EXFUN(drand48,(_VOID));
188
double _EXFUN(drand48,(_VOID));
173
double _EXFUN(_drand48_r,(struct _reent *));
189
double _EXFUN(_drand48_r,(struct _reent *));
Line 187... Line 203...
187
       _EXFUN(seed48,(unsigned short [3]));
203
       _EXFUN(seed48,(unsigned short [3]));
188
unsigned short *
204
unsigned short *
189
       _EXFUN(_seed48_r,(struct _reent *, unsigned short [3]));
205
       _EXFUN(_seed48_r,(struct _reent *, unsigned short [3]));
190
_VOID  _EXFUN(srand48,(long));
206
_VOID  _EXFUN(srand48,(long));
191
_VOID  _EXFUN(_srand48_r,(struct _reent *, long));
207
_VOID  _EXFUN(_srand48_r,(struct _reent *, long));
-
 
208
#endif /* ! __STRICT_ANSI__ */
-
 
209
#if !defined(__STRICT_ANSI__) || \
-
 
210
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-
 
211
  (defined(__cplusplus) && __cplusplus >= 201103L)
192
long long _EXFUN(atoll,(const char *__nptr));
212
long long _EXFUN(atoll,(const char *__nptr));
-
 
213
#endif
-
 
214
#ifndef __STRICT_ANSI__
193
long long _EXFUN(_atoll_r,(struct _reent *, const char *__nptr));
215
long long _EXFUN(_atoll_r,(struct _reent *, const char *__nptr));
-
 
216
#endif /* ! __STRICT_ANSI__ */
-
 
217
#if !defined(__STRICT_ANSI__) || \
-
 
218
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-
 
219
  (defined(__cplusplus) && __cplusplus >= 201103L)
194
long long _EXFUN(llabs,(long long));
220
long long _EXFUN(llabs,(long long));
195
lldiv_t	_EXFUN(lldiv,(long long __numer, long long __denom));
221
lldiv_t	_EXFUN(lldiv,(long long __numer, long long __denom));
196
#endif /* ! __STRICT_ANSI__ */
-
 
197
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
-
 
198
long long _EXFUN(strtoll,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
222
long long _EXFUN(strtoll,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
199
#endif
223
#endif
200
#ifndef __STRICT_ANSI__
224
#ifndef __STRICT_ANSI__
201
long long _EXFUN(_strtoll_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
225
long long _EXFUN(_strtoll_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
202
#endif /* ! __STRICT_ANSI__ */
226
#endif /* ! __STRICT_ANSI__ */
-
 
227
#if !defined(__STRICT_ANSI__) || \
203
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
228
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-
 
229
  (defined(__cplusplus) && __cplusplus >= 201103L)
204
unsigned long long _EXFUN(strtoull,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
230
unsigned long long _EXFUN(strtoull,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
205
#endif
231
#endif
206
#ifndef __STRICT_ANSI__
232
#ifndef __STRICT_ANSI__
207
unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
233
unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
Line 228... Line 254...
228
#endif
254
#endif
229
int	_EXFUN(_system_r,(struct _reent *, const char *));
255
int	_EXFUN(_system_r,(struct _reent *, const char *));
Line 230... Line 256...
230
 
256
 
Line -... Line 257...
-
 
257
_VOID	_EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
-
 
258
 
-
 
259
/* There are two common qsort_r variants.  If you request
-
 
260
   _BSD_SOURCE, you get the BSD version; otherwise you get the GNU
-
 
261
   version.  We want that #undef qsort_r will still let you
-
 
262
   invoke the underlying function, but that requires gcc support. */
-
 
263
#ifdef _BSD_SOURCE
-
 
264
# ifdef __GNUC__
-
 
265
_VOID	_EXFUN(qsort_r,(_PTR __base, size_t __nmemb, size_t __size, _PTR __thunk, int (*_compar)(_PTR, const _PTR, const _PTR)))
-
 
266
             __asm__ (__ASMNAME ("__bsd_qsort_r"));
-
 
267
# else
-
 
268
_VOID	_EXFUN(__bsd_qsort_r,(_PTR __base, size_t __nmemb, size_t __size, _PTR __thunk, int (*_compar)(_PTR, const _PTR, const _PTR)));
-
 
269
#  define qsort_r __bsd_qsort_r
-
 
270
# endif
-
 
271
#elif __GNU_VISIBLE
-
 
272
_VOID	_EXFUN(qsort_r,(_PTR __base, size_t __nmemb, size_t __size, int (*_compar)(const _PTR, const _PTR, _PTR), _PTR __thunk));
231
_VOID	_EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
273
#endif
232
 
274
 
-
 
275
/* On platforms where long double equals double.  */
-
 
276
#ifdef _HAVE_LONG_DOUBLE
233
/* On platforms where long double equals double.  */
277
extern long double _strtold_r (struct _reent *, const char *__restrict, char **__restrict);
-
 
278
#if !defined(__STRICT_ANSI__) || \
234
#ifdef _LDBL_EQ_DBL
279
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
235
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
280
  (defined(__cplusplus) && __cplusplus >= 201103L)
236
extern long double strtold (const char *__restrict, char **__restrict);
281
extern long double strtold (const char *__restrict, char **__restrict);
-
 
282
#endif
-
 
283
#endif /* _HAVE_LONG_DOUBLE */
-
 
284
 
-
 
285
/*
-
 
286
 * If we're in a mode greater than C99, expose C11 functions.
-
 
287
 */
-
 
288
#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
-
 
289
void *	aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
-
 
290
	    __alloc_size(2);
-
 
291
int	at_quick_exit(void (*)(void));
-
 
292
_Noreturn void
Line 237... Line 293...
237
#endif
293
	quick_exit(int);
Line 238... Line 294...
238
#endif /* _LDBL_EQ_DBL */
294
#endif /* __ISO_C_VISIBLE >= 2011 */