PSI_CHECK_UNISTD() {
- PSI_CONFIG_POSIX(unistd, unistd.h)
-
PSI_CONST(F_LOCK, int)
PSI_CONST(F_TEST, int)
PSI_CONST(F_TLOCK, int)
PSI_CONST(_XOPEN_UNIX, int)
PSI_CONST(_XOPEN_UUCP, int)
PSI_CONST(_XOPEN_VERSION, int)
-
+
PSI_EXTVAR(char *optarg)
PSI_EXTVAR(int opterr)
PSI_EXTVAR(int optind)
PSI_EXTVAR(int optopt)
-
+ PSI_EXTVAR(int optreset)
+
PSI_DECL(int access, [(const char *path, int amode)])
PSI_DECL(unsigned alarm, [(unsigned seconds)])
PSI_DECL(int chdir, [(const char *path)])
PSI_DECL(int chown, [(const char *path, uid_t owner, gid_t group)])
PSI_DECL(int close, [(int fildes)])
PSI_DECL(size_t confstr, [(int name, char *buf, size_t len)])
-
- AC_SEARCH_LIBS(crypt, crypt, [
- PSI_DECL(char *crypt, [(const char *key, const char *salt)])
- ])
-
+ PSI_DECL(char *crypt, [(const char *key, const char *salt)], [], [-lcrypt])
PSI_DECL(int dup, [(int fildes)])
PSI_DECL(int dup2, [(int fildes, int fildes2)])
-
- AC_SEARCH_LIBS(encrypt, crypt, [
- PSI_DECL(void encrypt, [(char block@<:@64@:>@, int edflag)])
- ])
-
+ PSI_DECL(void encrypt, [(char block@<:@64@:>@, int edflag)], [], [-lcrypt])
PSI_DECL(void _exit, [(int status)])
PSI_DECL(int execl, [(const char *path, const char *arg)], vararg)
PSI_DECL(int execle, [(const char *path, const char *arg)], vararg)
PSI_DECL(ssize_t write, [(int fildes, const void *buf, size_t nbyte)])
-}
\ No newline at end of file
+}