#include <stdio.h>
#include <time.h>
#include <errno.h>
+#include <lib.h>
#include <minix/type.h>
#include <minix/const.h>
#include <minix/callnr.h>
int _len(const char *_s);
void _begsig(int _dummy);
+int getprocnr(void);
+int getnprocnr(pid_t pid);
+int getpprocnr(void);
+int _pm_findproc(char *proc_name, int *proc_nr);
+int mapdriver(char *label, int major, int style, int flags);
+pid_t getnpid(endpoint_t proc_ep);
+uid_t getnuid(endpoint_t proc_ep);
+gid_t getngid(endpoint_t proc_ep);
+ssize_t pread64(int fd, void *buf, size_t count, u64_t where);
+ssize_t pwrite64(int fd, const void *buf, size_t count, u64_t where);
+
#endif /* _LIB_H */
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/type.h>
-#include <minix/com.h>
-#include <minix/dmap.h>
+#include <minix/bitmap.h>
#include <minix/callnr.h>
-#include <sys/types.h>
+#include <minix/com.h>
#include <minix/const.h>
#include <minix/devio.h>
+#include <minix/dmap.h>
+#include <minix/spin.h>
#include <minix/syslib.h>
#include <minix/sysutil.h>
#include <minix/timers.h>
-#include <minix/spin.h>
-#include <minix/bitmap.h>
+#include <minix/type.h>
+#include <sys/param.h>
+#include <sys/types.h>
#include <machine/interrupt.h> /* IRQ vectors and miscellaneous ports */
#if defined(__i386__)
#include <machine/ports.h> /* Well-known ports */
#endif
-#include <string.h>
-#include <signal.h>
-#include <stdlib.h>
+#include <errno.h>
+#include <lib.h>
#include <limits.h>
+#include <signal.h>
#include <stddef.h>
-#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
-#include <sys/param.h>
#endif
int lseek64(int fd, u64_t _offset, int _whence, u64_t *_newpos);
#if defined(_NETBSD_SOURCE)
#include <minix/type.h>
-
-int getprocnr(void);
-int getnprocnr(pid_t pid);
-int getpprocnr(void);
-int _pm_findproc(char *proc_name, int *proc_nr);
-int mapdriver(char *label, int major, int style, int flags);
-pid_t getnpid(endpoint_t proc_ep);
-uid_t getnuid(endpoint_t proc_ep);
-gid_t getngid(endpoint_t proc_ep);
-ssize_t pread64(int fd, void *buf, size_t count, u64_t where);
-ssize_t pwrite64(int fd, const void *buf, size_t count, u64_t where);
#endif /* defined(_NETBSD_SOURCE) */
#endif /* __minix */
#include <minix/type.h>
#include <minix/dmap.h>
+#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <err.h>
#include <errno.h>
+#include <lib.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <minix/type.h>
#include <minix/dmap.h>
+#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <machine/vmparam.h>
#include <sys/vm.h>
+#include <lib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#define VERBOSE 0 /* display diagnostics */
#include <sys/types.h>
+#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <signal.h>
#include <minix/type.h>
#include <minix/dmap.h>
+#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <minix/dmap.h>
#include <minix/vfsif.h>
+#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <minix/syslib.h>
unsigned long f_bsize; /* File system block size. */
unsigned long f_frsize; /* Fundamental file system block size. */
fsblkcnt_t f_blocks; /* Total number of blocks on file system */
- /* in units of f_frsize. */
+ /* in units of f_frsize. */
fsblkcnt_t f_bfree; /* Total number of free blocks. */
fsblkcnt_t f_bavail; /* Number of free blocks available to */
/* non-privileged process. */
#if defined(_STANDALONE)
/* LSC: In NetBSD this gets pulled in through libkern.h */
#include <sys/null.h>
+uint32_t crc32(uint32_t, const uint8_t *, size_t);
#endif /* defined(_STANDALONE) */
#endif /* defined(__minix) */