Subversion Repositories Kolibri OS

Rev

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

Rev 4874 Rev 4921
Line 10... Line 10...
10
#include 
10
#include 
11
#include "_ansi.h"
11
#include "_ansi.h"
Line 12... Line 12...
12
 
12
 
13
#define __need_size_t
13
#define __need_size_t
-
 
14
#define __need_wchar_t
14
#define __need_wchar_t
15
#define __need_NULL
Line 15... Line 16...
15
#include 
16
#include 
16
 
17
 
17
#include 
18
#include 
Line 36... Line 37...
36
{
37
{
37
  long quot; /* quotient */
38
  long quot; /* quotient */
38
  long rem; /* remainder */
39
  long rem; /* remainder */
39
} ldiv_t;
40
} ldiv_t;
Line 40... Line 41...
40
 
41
 
-
 
42
#if !defined(__STRICT_ANSI__) || \
-
 
43
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
41
#ifndef __STRICT_ANSI__
44
  (defined(__cplusplus) && __cplusplus >= 201103L)
42
typedef struct
45
typedef struct
43
{
46
{
44
  long long int quot; /* quotient */
47
  long long int quot; /* quotient */
45
  long long int rem; /* remainder */
48
  long long int rem; /* remainder */
46
} lldiv_t;
49
} lldiv_t;
Line 47... Line 50...
47
#endif
50
#endif
48
 
51
 
-
 
52
#ifndef __compar_fn_t_defined
49
#ifndef NULL
53
#define __compar_fn_t_defined
Line 50... Line 54...
50
#define NULL 0
54
typedef int (*__compar_fn_t) (const _PTR, const _PTR);
51
#endif
55
#endif
Line 72... Line 76...
72
long	_EXFUN(_atol_r,(struct _reent *, const char *__nptr));
76
long	_EXFUN(_atol_r,(struct _reent *, const char *__nptr));
73
_PTR	_EXFUN(bsearch,(const _PTR __key,
77
_PTR	_EXFUN(bsearch,(const _PTR __key,
74
		       const _PTR __base,
78
		       const _PTR __base,
75
		       size_t __nmemb,
79
		       size_t __nmemb,
76
		       size_t __size,
80
		       size_t __size,
77
		       int _EXFNPTR(_compar,(const _PTR, const _PTR))));
81
		       __compar_fn_t _compar));
78
_PTR	_EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
82
_PTR	_EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
79
div_t	_EXFUN(div,(int __numer, int __denom));
83
div_t	_EXFUN(div,(int __numer, int __denom));
80
_VOID	_EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn)));
84
_VOID	_EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn)));
81
_VOID	_EXFUN_NOTHROW(free,(_PTR));
85
_VOID	_EXFUN_NOTHROW(free,(_PTR));
82
char *  _EXFUN(getenv,(const char *__string));
86
char *  _EXFUN(getenv,(const char *__string));
Line 90... Line 94...
90
long	_EXFUN(labs,(long));
94
long	_EXFUN(labs,(long));
91
ldiv_t	_EXFUN(ldiv,(long __numer, long __denom));
95
ldiv_t	_EXFUN(ldiv,(long __numer, long __denom));
92
_PTR	_EXFUN_NOTHROW(malloc,(size_t __size));
96
_PTR	_EXFUN_NOTHROW(malloc,(size_t __size));
93
int	_EXFUN(mblen,(const char *, size_t));
97
int	_EXFUN(mblen,(const char *, size_t));
94
int	_EXFUN(_mblen_r,(struct _reent *, const char *, size_t, _mbstate_t *));
98
int	_EXFUN(_mblen_r,(struct _reent *, const char *, size_t, _mbstate_t *));
95
int	_EXFUN(mbtowc,(wchar_t *, const char *, size_t));
99
int	_EXFUN(mbtowc,(wchar_t *__restrict, const char *__restrict, size_t));
96
int	_EXFUN(_mbtowc_r,(struct _reent *, wchar_t *, const char *, size_t, _mbstate_t *));
100
int	_EXFUN(_mbtowc_r,(struct _reent *, wchar_t *__restrict, const char *__restrict, size_t, _mbstate_t *));
97
int	_EXFUN(wctomb,(char *, wchar_t));
101
int	_EXFUN(wctomb,(char *, wchar_t));
98
int	_EXFUN(_wctomb_r,(struct _reent *, char *, wchar_t, _mbstate_t *));
102
int	_EXFUN(_wctomb_r,(struct _reent *, char *, wchar_t, _mbstate_t *));
99
size_t	_EXFUN(mbstowcs,(wchar_t *, const char *, size_t));
103
size_t	_EXFUN(mbstowcs,(wchar_t *__restrict, const char *__restrict, size_t));
100
size_t	_EXFUN(_mbstowcs_r,(struct _reent *, wchar_t *, const char *, size_t, _mbstate_t *));
104
size_t	_EXFUN(_mbstowcs_r,(struct _reent *, wchar_t *__restrict, const char *__restrict, size_t, _mbstate_t *));
101
size_t	_EXFUN(wcstombs,(char *, const wchar_t *, size_t));
105
size_t	_EXFUN(wcstombs,(char *__restrict, const wchar_t *__restrict, size_t));
102
size_t	_EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, _mbstate_t *));
106
size_t	_EXFUN(_wcstombs_r,(struct _reent *, char *__restrict, const wchar_t *__restrict, size_t, _mbstate_t *));
103
#ifndef __STRICT_ANSI__
107
#ifndef __STRICT_ANSI__
104
#ifndef _REENT_ONLY
108
#ifndef _REENT_ONLY
105
char *	_EXFUN(mkdtemp,(char *));
109
char *	_EXFUN(mkdtemp,(char *));
106
int	_EXFUN(mkostemp,(char *, int));
110
int	_EXFUN(mkostemp,(char *, int));
107
int	_EXFUN(mkostemps,(char *, int, int));
111
int	_EXFUN(mkostemps,(char *, int, int));
Line 114... Line 118...
114
int	_EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
118
int	_EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
115
int	_EXFUN(_mkstemp_r, (struct _reent *, char *));
119
int	_EXFUN(_mkstemp_r, (struct _reent *, char *));
116
int	_EXFUN(_mkstemps_r, (struct _reent *, char *, int));
120
int	_EXFUN(_mkstemps_r, (struct _reent *, char *, int));
117
char *	_EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
121
char *	_EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
118
#endif
122
#endif
119
_VOID	_EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
123
_VOID	_EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
120
int	_EXFUN(rand,(_VOID));
124
int	_EXFUN(rand,(_VOID));
121
_PTR	_EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
125
_PTR	_EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
122
#ifndef __STRICT_ANSI__
126
#ifndef __STRICT_ANSI__
123
_PTR	_EXFUN(reallocf,(_PTR __r, size_t __size));
127
_PTR	_EXFUN(reallocf,(_PTR __r, size_t __size));
-
 
128
char *	_EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path));
124
#endif
129
#endif
125
_VOID	_EXFUN(srand,(unsigned __seed));
130
_VOID	_EXFUN(srand,(unsigned __seed));
126
double	_EXFUN(strtod,(const char *__n, char **__end_PTR));
131
double	_EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR));
127
double	_EXFUN(_strtod_r,(struct _reent *,const char *__n, char **__end_PTR));
132
double	_EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR));
-
 
133
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
128
float	_EXFUN(strtof,(const char *__n, char **__end_PTR));
134
float	_EXFUN(strtof,(const char *__restrict __n, char **__restrict __end_PTR));
-
 
135
#endif
129
#ifndef __STRICT_ANSI__
136
#ifndef __STRICT_ANSI__
130
/* the following strtodf interface is deprecated...use strtof instead */
137
/* the following strtodf interface is deprecated...use strtof instead */
131
# ifndef strtodf
138
# ifndef strtodf
132
#  define strtodf strtof
139
#  define strtodf strtof
133
# endif
140
# endif
134
#endif
141
#endif
135
long	_EXFUN(strtol,(const char *__n, char **__end_PTR, int __base));
142
long	_EXFUN(strtol,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
136
long	_EXFUN(_strtol_r,(struct _reent *,const char *__n, char **__end_PTR, int __base));
143
long	_EXFUN(_strtol_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR, int __base));
137
unsigned long _EXFUN(strtoul,(const char *__n, char **__end_PTR, int __base));
144
unsigned long _EXFUN(strtoul,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
138
unsigned long _EXFUN(_strtoul_r,(struct _reent *,const char *__n, char **__end_PTR, int __base));
145
unsigned long _EXFUN(_strtoul_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR, int __base));
Line 139... Line 146...
139
 
146
 
Line 140... Line 147...
140
int	_EXFUN(system,(const char *__string));
147
int	_EXFUN(system,(const char *__string));
141
 
148
 
Line 184... Line 191...
184
_VOID  _EXFUN(_srand48_r,(struct _reent *, long));
191
_VOID  _EXFUN(_srand48_r,(struct _reent *, long));
185
long long _EXFUN(atoll,(const char *__nptr));
192
long long _EXFUN(atoll,(const char *__nptr));
186
long long _EXFUN(_atoll_r,(struct _reent *, const char *__nptr));
193
long long _EXFUN(_atoll_r,(struct _reent *, const char *__nptr));
187
long long _EXFUN(llabs,(long long));
194
long long _EXFUN(llabs,(long long));
188
lldiv_t	_EXFUN(lldiv,(long long __numer, long long __denom));
195
lldiv_t	_EXFUN(lldiv,(long long __numer, long long __denom));
-
 
196
#endif /* ! __STRICT_ANSI__ */
-
 
197
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
189
long long _EXFUN(strtoll,(const char *__n, char **__end_PTR, int __base));
198
long long _EXFUN(strtoll,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
-
 
199
#endif
-
 
200
#ifndef __STRICT_ANSI__
190
long long _EXFUN(_strtoll_r,(struct _reent *, const char *__n, char **__end_PTR, int __base));
201
long long _EXFUN(_strtoll_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
-
 
202
#endif /* ! __STRICT_ANSI__ */
-
 
203
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
191
unsigned long long _EXFUN(strtoull,(const char *__n, char **__end_PTR, int __base));
204
unsigned long long _EXFUN(strtoull,(const char *__restrict __n, char **__restrict __end_PTR, int __base));
-
 
205
#endif
-
 
206
#ifndef __STRICT_ANSI__
192
unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__n, char **__end_PTR, int __base));
207
unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base));
Line 193... Line 208...
193
 
208
 
194
#ifndef __CYGWIN__
209
#ifndef __CYGWIN__
195
_VOID	_EXFUN(cfree,(_PTR));
210
_VOID	_EXFUN(cfree,(_PTR));
196
int	_EXFUN(unsetenv,(const char *__string));
211
int	_EXFUN(unsetenv,(const char *__string));
Line 215... Line 230...
215
 
230
 
Line 216... Line 231...
216
_VOID	_EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
231
_VOID	_EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
217
 
232
 
218
/* On platforms where long double equals double.  */
233
/* On platforms where long double equals double.  */
219
#ifdef _LDBL_EQ_DBL
234
#ifdef _LDBL_EQ_DBL
-
 
235
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L)
220
extern long double strtold (const char *, char **);
236
extern long double strtold (const char *__restrict, char **__restrict);
Line 221... Line 237...
221
extern long double wcstold (const wchar_t *, wchar_t **);
237
#endif
Line 222... Line 238...
222
#endif /* _LDBL_EQ_DBL */
238
#endif /* _LDBL_EQ_DBL */