12 #define NULL ((void*)0)
16 #define __NEED_wchar_t
18 #include <bits/alltypes.h>
20 int atoi (const char *);
21 long atol (const char *);
22 long long atoll (const char *);
23 double atof (const char *);
25 float strtof (const char *, char **);
26 double strtod (const char *, char **);
27 long double strtold (const char *, char **);
29 long strtol (const char *, char **, int);
30 unsigned long strtoul (const char *, char **, int);
31 long long strtoll (const char *, char **, int);
32 unsigned long long strtoull (const char *, char **, int);
35 void srand (unsigned);
37 void *malloc (size_t);
38 void *calloc (size_t, size_t);
39 void *realloc (void *, size_t);
43 int atexit (void (*) (void));
47 char *getenv (const char *);
49 int system (const char *);
51 void *bsearch (const void *, const void *, size_t, size_t, int (*)(const void *, const void *));
52 void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
56 long long llabs (long long);
58 typedef struct { int quot, rem; } div_t;
59 typedef struct { long quot, rem; } ldiv_t;
60 typedef struct { long long quot, rem; } lldiv_t;
63 ldiv_t ldiv (long, long);
64 lldiv_t lldiv (long long, long long);
66 int mblen (const char *, size_t);
67 int mbtowc (wchar_t *, const char *, size_t);
68 int wctomb (char *, wchar_t);
69 size_t mbstowcs (wchar_t *, const char *, size_t);
70 size_t wcstombs (char *, const wchar_t *, size_t);
74 #define RAND_MAX (0x7fffffff)
77 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
78 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
81 #include <bits/wexitstatus.h>
84 #define EXIT_FAILURE 1
85 #define EXIT_SUCCESS 0
87 int posix_memalign (void **, size_t, size_t);
88 int setenv (const char *, const char *, int);
89 int unsetenv (const char *);
91 char *mkdtemp (char *);
92 int getsubopt (char **, char *const *, char **);
93 int rand_r (unsigned *);
98 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
100 int posix_openpt (int);
104 char *realpath (const char *, char *);
106 long a64l (const char *);
107 void setkey (const char *);
108 long int random (void);
109 void srandom (unsigned int);
110 char *initstate (unsigned int, char *, size_t);
111 char *setstate (char *);
112 double drand48 (void);
113 double erand48 (unsigned short [3]);
114 long int lrand48 (void);
115 long int nrand48 (unsigned short [3]);
117 long jrand48 (unsigned short [3]);
119 unsigned short *seed48 (unsigned short [3]);
120 void lcong48 (unsigned short [7]);
123 #if defined(_GNU_SOURCE)
124 char *mktemp (char *);
125 void *valloc (size_t);
126 void *memalign(size_t, size_t);