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