cover null default val
[m6w6/ext-psi] / m4 / posix / unistd.m4
index 21265005fef8320ffd6d1055b0baa453859eae71..94be1ad36781e42d1b4ad60bfbba9b85ebdf1f39 100644 (file)
@@ -1,6 +1,4 @@
 PSI_CHECK_UNISTD() {
-       PSI_CONFIG_POSIX(unistd, unistd.h)
-       
        PSI_CONST(F_LOCK, int)
        PSI_CONST(F_TEST, int)
        PSI_CONST(F_TLOCK, int)
@@ -277,30 +275,23 @@ PSI_CHECK_UNISTD() {
        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)
@@ -375,4 +366,4 @@ PSI_CHECK_UNISTD() {
        PSI_DECL(ssize_t write, [(int fildes, const void *buf, size_t nbyte)])
 
 
-}
\ No newline at end of file
+}