3 #ifdef __need_malloc_and_calloc
7 #include <stdlib/stdlib.h>
9 /* Now define the internal interfaces. */
10 #ifndef __Need_M_And_C
12 libc_hidden_proto (__secure_getenv)
14 extern long int __random (void);
15 extern void __srandom (unsigned int __seed);
16 extern char *__initstate (unsigned int __seed, char *__statebuf,
18 extern char *__setstate (char *__statebuf);
19 extern int __random_r (struct random_data *__buf, int32_t *__result);
20 extern int __srandom_r (unsigned int __seed, struct random_data *__buf);
21 extern int __initstate_r (unsigned int __seed, char *__statebuf,
22 size_t __statelen, struct random_data *__buf);
23 extern int __setstate_r (char *__statebuf, struct random_data *__buf);
24 extern int __rand_r (unsigned int *__seed);
25 extern int __erand48_r (unsigned short int __xsubi[3],
26 struct drand48_data *__buffer, double *__result);
27 extern int __nrand48_r (unsigned short int __xsubi[3],
28 struct drand48_data *__buffer,
30 extern int __jrand48_r (unsigned short int __xsubi[3],
31 struct drand48_data *__buffer,
33 extern int __srand48_r (long int __seedval,
34 struct drand48_data *__buffer);
35 extern int __seed48_r (unsigned short int __seed16v[3],
36 struct drand48_data *__buffer);
37 extern int __lcong48_r (unsigned short int __param[7],
38 struct drand48_data *__buffer);
40 /* Internal function to compute next state of the generator. */
41 extern int __drand48_iterate (unsigned short int __xsubi[3],
42 struct drand48_data *__buffer);
44 /* Global state for non-reentrant functions. Defined in drand48-iter.c. */
45 extern struct drand48_data __libc_drand48_data attribute_hidden;
47 extern int __setenv (__const char *__name, __const char *__value,
49 extern int __unsetenv (__const char *__name);
50 extern int __clearenv (void);
51 extern char *__canonicalize_file_name (__const char *__name);
52 extern char *__realpath (__const char *__name, char *__resolved);
53 extern int __ptsname_r (int __fd, char *__buf, size_t __buflen);
54 extern int __getpt (void);
55 extern int __posix_openpt (int __oflag);
57 extern int __add_to_environ (const char *name, const char *value,
58 const char *combines, int replace);
60 extern void _quicksort (void *const pbase, size_t total_elems,
61 size_t size, __compar_fn_t cmp);
63 extern int __on_exit (void (*__func) (int __status, void *__arg), void *__arg);
65 extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
66 extern int __cxa_atexit_internal (void (*func) (void *), void *arg, void *d)
69 extern void __cxa_finalize (void *d);
71 extern int __posix_memalign (void **memptr, size_t alignment, size_t size)
73 extern void *__libc_memalign (size_t alignment, size_t size)
76 extern int __libc_system (const char *line);
78 extern double ____strtod_l_internal (__const char *__restrict __nptr,
79 char **__restrict __endptr, int __group,
80 __locale_t __loc) __THROW;
81 extern float ____strtof_l_internal (__const char *__restrict __nptr,
82 char **__restrict __endptr, int __group,
83 __locale_t __loc) __THROW;
84 extern long double ____strtold_l_internal (__const char *__restrict __nptr,
85 char **__restrict __endptr,
86 int __group, __locale_t __loc)
88 extern long int ____strtol_l_internal (__const char *__restrict __nptr,
89 char **__restrict __endptr,
90 int __base, int __group,
91 __locale_t __loc) __THROW;
92 extern unsigned long int ____strtoul_l_internal (__const char *
94 char **__restrict __endptr,
95 int __base, int __group,
96 __locale_t __loc) __THROW;
98 extern long long int ____strtoll_l_internal (__const char *__restrict __nptr,
99 char **__restrict __endptr,
100 int __base, int __group,
101 __locale_t __loc) __THROW;
103 extern unsigned long long int ____strtoull_l_internal (__const char *
107 int __base, int __group,
111 extern __inline double
112 __strtod_l (__const char *__restrict __nptr, char **__restrict __endptr,
113 __locale_t __loc) __THROW
115 return ____strtod_l_internal (__nptr, __endptr, 0, __loc);
117 extern __inline long int
118 __strtol_l (__const char *__restrict __nptr, char **__restrict __endptr,
119 int __base, __locale_t __loc) __THROW
121 return ____strtol_l_internal (__nptr, __endptr, __base, 0, __loc);
123 extern __inline unsigned long int
124 __strtoul_l (__const char *__restrict __nptr, char **__restrict __endptr,
125 int __base, __locale_t __loc) __THROW
127 return ____strtoul_l_internal (__nptr, __endptr, __base, 0, __loc);
129 extern __inline float
130 __strtof_l (__const char *__restrict __nptr, char **__restrict __endptr,
131 __locale_t __loc) __THROW
133 return ____strtof_l_internal (__nptr, __endptr, 0, __loc);
135 extern __inline long double
136 __strtold_l (__const char *__restrict __nptr, char **__restrict __endptr,
137 __locale_t __loc) __THROW
139 return ____strtold_l_internal (__nptr, __endptr, 0, __loc);
141 __extension__ extern __inline long long int
142 __strtoll_l (__const char *__restrict __nptr, char **__restrict __endptr,
143 int __base, __locale_t __loc) __THROW
145 return ____strtoll_l_internal (__nptr, __endptr, __base, 0, __loc);
147 __extension__ extern __inline unsigned long long int
148 __strtoull_l (__const char * __restrict __nptr, char **__restrict __endptr,
149 int __base, __locale_t __loc) __THROW
151 return ____strtoull_l_internal (__nptr, __endptr, __base, 0, __loc);
157 # define MB_CUR_MAX (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX))
159 # define __cxa_atexit(func, arg, d) INTUSE(__cxa_atexit) (func, arg, d)
163 #undef __Need_M_And_C
165 #endif /* include/stdlib.h */