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