PSI_CHECK_STDLIB() {
- AC_CHECK_HEADERS(stdlib.h)
-
PSI_STRUCT(div_t, [
int quot,
int rem
PSI_DECL(double atof, [(char *str)])
PSI_DECL(int atoi, [(char *str)])
PSI_DECL(long atol, [(char *str)])
+ PSI_DECL(void *calloc, [(size_t nmemb, size_t size)])
PSI_DECL(div_t div, [(int numerator, int denominator)])
PSI_DECL(double drand48, [()])
PSI_DECL(double erand48, [(unsigned short xsubi@<:@3@:>@)])
PSI_DECL(ldiv_t ldiv, [(long numerator, long denominator)])
PSI_DECL(lldiv_t lldiv, [(long long numerator, long long denominator)])
PSI_DECL(long lrand48, [()])
+ PSI_DECL(void *malloc, [(size_t size)])
PSI_DECL(int mblen, [(const char *s, size_t n)])
PSI_DECL(size_t mbstowcs, [(wchar_t *dest, char *src, size_t n)])
PSI_DECL(int mbtowc, [(wchar_t *pwc, char *s, size_t n)])
PSI_DECL(long nrand48, [(unsigned short xsubi@<:@3@:>@)])
PSI_DECL(int posix_openpt, [(int flags)])
PSI_DECL(char *ptsname, [(int fd)])
- PSI_DECL(char *pstname_r, [(int fd, char *buf, size_t buflen)])
+ PSI_DECL(int ptsname_r, [(int fd, char *buf, size_t buflen)])
PSI_DECL(int putenv, [(char *var)])
PSI_DECL(int rand, [()])
PSI_DECL(int rand_r, [(unsigned *seed_p)])
PSI_DECL(long random, [()])
+ PSI_DECL(void *realloc, [(void *ptr, size_t size)])
PSI_DECL(char *realpath, [(char *path, char *resolved)])
PSI_DECL(unsigned short *seed48, [(unsigned short seed16v@<:@3@:>@)])
PSI_DECL(int setenv, [(char *var, char *val, int overwrite)])
-
- AC_SEARCH_LIBS(setkey, crypt, [
- PSI_DECL(void setkey, [(char *key)])
- ])
-
+ PSI_DECL(void setkey, [(char *key)], [], [-lcrypt])
PSI_DECL(char *setstate, [(char *state)])
PSI_DECL(void srand, [(unsigned seed)])
PSI_DECL(void srand48, [(long seed)])