a2a85be7e9b27b36c94564a2178a08ef4f371dd7
[m6w6/ext-psi] / m4 / posix / stdlib.m4
1 PSI_CHECK_STDLIB() {
2 AC_CHECK_HEADERS(stdlib.h)
3
4 PSI_STRUCT(div_t, [
5 int quot,
6 int rem
7 ])
8 PSI_STRUCT(ldiv_t, [
9 long quot,
10 long rem
11 ])
12 PSI_STRUCT(lldiv_t, [
13 long long quot,
14 long long rem
15 ])
16
17 PSI_CONST(EXIT_FAILURE, int)
18 PSI_CONST(EXIT_SUCCESS, int)
19 PSI_CONST(RAND_MAX, int)
20
21 PSI_MACRO(int MB_CUR_MAX)
22
23 PSI_DECL(void _Exit, [(int status)])
24 PSI_DECL(void abort, [()])
25 PSI_DECL(int abs, [(int n)])
26 PSI_DECL(double atof, [(char *str)])
27 PSI_DECL(int atoi, [(char *str)])
28 PSI_DECL(long atol, [(char *str)])
29 PSI_DECL(div_t div, [(int numerator, int denominator)])
30 PSI_DECL(double drand48, [()])
31 PSI_DECL(double erand48, [(unsigned short xsubi@<:@3@:>@)])
32 PSI_DECL(void exit, [(int status)])
33 PSI_DECL(void free, [(void *ptr)])
34 PSI_DECL(char *getenv, [(char *var)])
35 PSI_DECL(int grantpt, [(int fd)])
36 PSI_DECL(char *initstate, [(unsigned int seed, char *state, size_t n)])
37 PSI_DECL(long jrand48, [(unsigned short xsubi@<:@3@:>@)])
38 PSI_DECL(long labs, [(long l)])
39 PSI_DECL(void lcong48, [(unsigned short param@<:@7@:>@)])
40 PSI_DECL(ldiv_t ldiv, [(long numerator, long denominator)])
41 PSI_DECL(lldiv_t lldiv, [(long long numerator, long long denominator)])
42 PSI_DECL(long lrand48, [()])
43 PSI_DECL(int mblen, [(const char *s, size_t n)])
44 PSI_DECL(size_t mbstowcs, [(wchar_t *dest, char *src, size_t n)])
45 PSI_DECL(int mbtowc, [(wchar_t *pwc, char *s, size_t n)])
46 PSI_DECL(char *mkdtemp, [(char *template)])
47 PSI_DECL(char *mkdstemp, [(char *template)])
48 PSI_DECL(long mrand48, [()])
49 PSI_DECL(long nrand48, [(unsigned short xsubi@<:@3@:>@)])
50 PSI_DECL(int posix_openpt, [(int flags)])
51 PSI_DECL(char *ptsname, [(int fd)])
52 PSI_DECL(int ptsname_r, [(int fd, char *buf, size_t buflen)])
53 PSI_DECL(int putenv, [(char *var)])
54 PSI_DECL(int rand, [()])
55 PSI_DECL(int rand_r, [(unsigned *seed_p)])
56 PSI_DECL(long random, [()])
57 PSI_DECL(char *realpath, [(char *path, char *resolved)])
58 PSI_DECL(unsigned short *seed48, [(unsigned short seed16v@<:@3@:>@)])
59 PSI_DECL(int setenv, [(char *var, char *val, int overwrite)])
60 PSI_DECL(void setkey, [(char *key)], [], [-lcrypt])
61 PSI_DECL(char *setstate, [(char *state)])
62 PSI_DECL(void srand, [(unsigned seed)])
63 PSI_DECL(void srand48, [(long seed)])
64 PSI_DECL(void srandom, [(unsigned seed)])
65 PSI_DECL(double strtod, [(char *nptr, char **endptr)])
66 PSI_DECL(float strtof, [(char *nptr, char **endptr)])
67 PSI_DECL(long strtol, [(char *nptr, char **endptr, int base)])
68 PSI_DECL(long double strtold, [(const char *nptr, char **endptr)])
69 PSI_DECL(unsigned long strtoul, [(char *nptr, char **endptr, int base)])
70 PSI_DECL(int system, [(char *command)])
71 PSI_DECL(int unlockpt, [(int fd)])
72 PSI_DECL(int unsetenv, [(char *var)])
73 PSI_DECL(size_t wcstombs, [(char *dest, wchar_t *src, size_t n)])
74 PSI_DECL(int wctomb, [(char *s, wchar_t wc)])
75 }