3 * unistd.h compatibility shim
6 #ifndef LIBCRYPTOCOMPAT_UNISTD_H
7 #define LIBCRYPTOCOMPAT_UNISTD_H
10 #include_next <unistd.h>
22 #define access _access
24 unsigned int sleep(unsigned int seconds);
28 #ifndef HAVE_GETENTROPY
29 int getentropy(void *buf, size_t buflen);
32 * Solaris 11.3 adds getentropy(2), but defines the function in sys/random.h
35 #include <sys/random.h>
39 #define pledge(request, paths) 0