_PROTOTYPE( int readlink, (const char *, char *, size_t) );
_PROTOTYPE( int getopt, (int _argc, char * const _argv[], char const *_opts) );
extern char *optarg;
+extern int optreset; /* Reset getopt state */
extern int optind, opterr, optopt;
_PROTOTYPE( int usleep, (useconds_t _useconds) );
-#ifdef _MINIX
-#ifndef _TYPE_H
-#include <minix/type.h>
-#endif
-
-extern int optreset; /* Reset getopt state */
-
_PROTOTYPE( int brk, (char *_addr) );
_PROTOTYPE( int chroot, (const char *_name) );
_PROTOTYPE( int lseek64, (int _fd, u64_t _offset, int _whence,
_PROTOTYPE( int reboot, (int _how, ...) );
_PROTOTYPE( int gethostname, (char *_hostname, size_t _len) );
_PROTOTYPE( int getdomainname, (char *_domain, size_t _len) );
+
+
+/* For compatibility with other Unix systems */
+_PROTOTYPE( int getpagesize, (void) );
+_PROTOTYPE( int setgroups, (int ngroups, const gid_t *gidset) );
+_PROTOTYPE( int initgroups, (const char *name, gid_t basegid) );
+_PROTOTYPE( void *setmode, (const char *) );
+_PROTOTYPE( mode_t getmode, (const void *, mode_t) );
+_PROTOTYPE( void strmode, (mode_t, char *) );
_PROTOTYPE( int ttyslot, (void) );
_PROTOTYPE( int fttyslot, (int _fd) );
_PROTOTYPE( char *crypt, (const char *_key, const char *_salt) );
+
+#ifdef _MINIX
+#ifndef _TYPE_H
+#include <minix/type.h>
+#endif
+
+
_PROTOTYPE( int getsysinfo, (endpoint_t who, int what, void *where) );
_PROTOTYPE( int getsigset, (sigset_t *sigset) );
_PROTOTYPE( int getprocnr, (void) );
_PROTOTYPE( uid_t getnuid, (endpoint_t proc_ep) );
_PROTOTYPE( gid_t getngid, (endpoint_t proc_ep) );
-/* For compatibility with other Unix systems */
-_PROTOTYPE( int getpagesize, (void) );
-_PROTOTYPE( int setgroups, (int ngroups, const gid_t *gidset) );
-_PROTOTYPE( int initgroups, (const char *name, gid_t basegid) );
-_PROTOTYPE( void *setmode, (const char *) );
-_PROTOTYPE( mode_t getmode, (const void *, mode_t) );
-_PROTOTYPE( void strmode, (mode_t, char *) );
-
#endif
#ifdef _POSIX_SOURCE