3 #ifdef __need_malloc_and_calloc
8 #include <stdlib/stdlib.h>
10 /* Now define the internal interfaces. */
11 #ifndef __Need_M_And_C
15 extern __typeof (strtol_l
) __strtol_l
;
16 extern __typeof (strtoul_l
) __strtoul_l
;
17 extern __typeof (strtoll_l
) __strtoll_l
;
18 extern __typeof (strtoull_l
) __strtoull_l
;
19 extern __typeof (strtod_l
) __strtod_l
;
20 extern __typeof (strtof_l
) __strtof_l
;
21 extern __typeof (strtold_l
) __strtold_l
;
22 libc_hidden_proto (__strtol_l
)
23 libc_hidden_proto (__strtoul_l
)
24 libc_hidden_proto (__strtoll_l
)
25 libc_hidden_proto (__strtoull_l
)
26 libc_hidden_proto (__strtod_l
)
27 libc_hidden_proto (__strtof_l
)
28 libc_hidden_proto (__strtold_l
)
30 libc_hidden_proto (exit
)
31 libc_hidden_proto (abort
)
32 libc_hidden_proto (getenv
)
33 libc_hidden_proto (bsearch
)
34 libc_hidden_proto (qsort
)
35 libc_hidden_proto (qsort_r
)
36 libc_hidden_proto (lrand48_r
)
37 libc_hidden_proto (wctomb
)
38 libc_hidden_proto (__secure_getenv
)
40 extern long int __random (void);
41 extern void __srandom (unsigned int __seed
);
42 extern char *__initstate (unsigned int __seed
, char *__statebuf
,
44 extern char *__setstate (char *__statebuf
);
45 extern int __random_r (struct random_data
*__buf
, int32_t *__result
);
46 extern int __srandom_r (unsigned int __seed
, struct random_data
*__buf
);
47 extern int __initstate_r (unsigned int __seed
, char *__statebuf
,
48 size_t __statelen
, struct random_data
*__buf
);
49 extern int __setstate_r (char *__statebuf
, struct random_data
*__buf
);
50 extern int __rand_r (unsigned int *__seed
);
51 extern int __erand48_r (unsigned short int __xsubi
[3],
52 struct drand48_data
*__buffer
, double *__result
);
53 extern int __nrand48_r (unsigned short int __xsubi
[3],
54 struct drand48_data
*__buffer
,
56 extern int __jrand48_r (unsigned short int __xsubi
[3],
57 struct drand48_data
*__buffer
,
59 extern int __srand48_r (long int __seedval
,
60 struct drand48_data
*__buffer
);
61 extern int __seed48_r (unsigned short int __seed16v
[3],
62 struct drand48_data
*__buffer
);
63 extern int __lcong48_r (unsigned short int __param
[7],
64 struct drand48_data
*__buffer
);
66 /* Internal function to compute next state of the generator. */
67 extern int __drand48_iterate (unsigned short int __xsubi
[3],
68 struct drand48_data
*__buffer
);
70 /* Global state for non-reentrant functions. Defined in drand48-iter.c. */
71 extern struct drand48_data __libc_drand48_data attribute_hidden
;
73 extern int __setenv (__const
char *__name
, __const
char *__value
,
75 extern int __unsetenv (__const
char *__name
);
76 extern int __clearenv (void);
77 extern char *__canonicalize_file_name (__const
char *__name
);
78 extern char *__realpath (__const
char *__name
, char *__resolved
);
79 extern int __ptsname_r (int __fd
, char *__buf
, size_t __buflen
);
80 extern int __getpt (void);
81 extern int __posix_openpt (int __oflag
);
83 extern int __add_to_environ (const char *name
, const char *value
,
84 const char *combines
, int replace
);
86 extern void _quicksort (void *const pbase
, size_t total_elems
,
87 size_t size
, __compar_d_fn_t cmp
, void *arg
);
89 extern int __on_exit (void (*__func
) (int __status
, void *__arg
), void *__arg
);
91 extern int __cxa_atexit (void (*func
) (void *), void *arg
, void *d
);
92 extern int __cxa_atexit_internal (void (*func
) (void *), void *arg
, void *d
)
95 extern void __cxa_finalize (void *d
);
97 extern int __posix_memalign (void **memptr
, size_t alignment
, size_t size
);
99 extern void *__libc_memalign (size_t alignment
, size_t size
)
100 __attribute_malloc__
;
102 extern int __libc_system (const char *line
);
105 extern double __strtod_internal (__const
char *__restrict __nptr
,
106 char **__restrict __endptr
, int __group
)
107 __THROW
__nonnull ((1)) __wur
;
108 extern float __strtof_internal (__const
char *__restrict __nptr
,
109 char **__restrict __endptr
, int __group
)
110 __THROW
__nonnull ((1)) __wur
;
111 extern long double __strtold_internal (__const
char *__restrict __nptr
,
112 char **__restrict __endptr
,
114 __THROW
__nonnull ((1)) __wur
;
115 extern long int __strtol_internal (__const
char *__restrict __nptr
,
116 char **__restrict __endptr
,
117 int __base
, int __group
)
118 __THROW
__nonnull ((1)) __wur
;
119 extern unsigned long int __strtoul_internal (__const
char *__restrict __nptr
,
120 char **__restrict __endptr
,
121 int __base
, int __group
)
122 __THROW
__nonnull ((1)) __wur
;
124 extern long long int __strtoll_internal (__const
char *__restrict __nptr
,
125 char **__restrict __endptr
,
126 int __base
, int __group
)
127 __THROW
__nonnull ((1)) __wur
;
129 extern unsigned long long int __strtoull_internal (__const
char *
131 char **__restrict __endptr
,
132 int __base
, int __group
)
133 __THROW
__nonnull ((1)) __wur
;
134 libc_hidden_proto (__strtof_internal
)
135 libc_hidden_proto (__strtod_internal
)
136 libc_hidden_proto (__strtold_internal
)
137 libc_hidden_proto (__strtol_internal
)
138 libc_hidden_proto (__strtoll_internal
)
139 libc_hidden_proto (__strtoul_internal
)
140 libc_hidden_proto (__strtoull_internal
)
142 extern double ____strtod_l_internal (__const
char *__restrict __nptr
,
143 char **__restrict __endptr
, int __group
,
145 extern float ____strtof_l_internal (__const
char *__restrict __nptr
,
146 char **__restrict __endptr
, int __group
,
148 extern long double ____strtold_l_internal (__const
char *__restrict __nptr
,
149 char **__restrict __endptr
,
150 int __group
, __locale_t __loc
);
151 extern long int ____strtol_l_internal (__const
char *__restrict __nptr
,
152 char **__restrict __endptr
,
153 int __base
, int __group
,
155 extern unsigned long int ____strtoul_l_internal (__const
char *
157 char **__restrict __endptr
,
158 int __base
, int __group
,
161 extern long long int ____strtoll_l_internal (__const
char *__restrict __nptr
,
162 char **__restrict __endptr
,
163 int __base
, int __group
,
166 extern unsigned long long int ____strtoull_l_internal (__const
char *
170 int __base
, int __group
,
173 libc_hidden_proto (____strtof_l_internal
)
174 libc_hidden_proto (____strtod_l_internal
)
175 libc_hidden_proto (____strtold_l_internal
)
176 libc_hidden_proto (____strtol_l_internal
)
177 libc_hidden_proto (____strtoll_l_internal
)
178 libc_hidden_proto (____strtoul_l_internal
)
179 libc_hidden_proto (____strtoull_l_internal
)
181 libc_hidden_proto (strtof
)
182 libc_hidden_proto (strtod
)
183 libc_hidden_proto (strtold
)
184 libc_hidden_proto (strtol
)
185 libc_hidden_proto (strtoll
)
186 libc_hidden_proto (strtoul
)
187 libc_hidden_proto (strtoull
)
189 extern char *__ecvt (double __value
, int __ndigit
, int *__restrict __decpt
,
190 int *__restrict __sign
);
191 extern char *__fcvt (double __value
, int __ndigit
, int *__restrict __decpt
,
192 int *__restrict __sign
);
193 extern char *__gcvt (double __value
, int __ndigit
, char *__buf
);
194 extern int __ecvt_r (double __value
, int __ndigit
, int *__restrict __decpt
,
195 int *__restrict __sign
, char *__restrict __buf
,
197 extern int __fcvt_r (double __value
, int __ndigit
, int *__restrict __decpt
,
198 int *__restrict __sign
, char *__restrict __buf
,
200 extern char *__qecvt (long double __value
, int __ndigit
,
201 int *__restrict __decpt
, int *__restrict __sign
);
202 extern char *__qfcvt (long double __value
, int __ndigit
,
203 int *__restrict __decpt
, int *__restrict __sign
);
204 extern char *__qgcvt (long double __value
, int __ndigit
, char *__buf
);
205 extern int __qecvt_r (long double __value
, int __ndigit
,
206 int *__restrict __decpt
, int *__restrict __sign
,
207 char *__restrict __buf
, size_t __len
);
208 extern int __qfcvt_r (long double __value
, int __ndigit
,
209 int *__restrict __decpt
, int *__restrict __sign
,
210 char *__restrict __buf
, size_t __len
);
214 # define MB_CUR_MAX (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX))
216 # define __cxa_atexit(func, arg, d) INTUSE(__cxa_atexit) (func, arg, d)
221 extern void *__default_morecore (ptrdiff_t) __THROW
;
222 libc_hidden_proto (__default_morecore
)
226 #undef __Need_M_And_C
228 #endif /* include/stdlib.h */