moving prototypes to lib.h

Change-Id: If53d3f5ee761b10e0f3d4346a0c5b39ba7901c65
This commit is contained in:
Lionel Sambuc 2013-04-18 11:08:16 +02:00
parent 55dcce66c6
commit 58f5d8dd5e
13 changed files with 34 additions and 24 deletions

View file

@ -6,6 +6,7 @@
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <lib.h>
#include <minix/type.h>
#include <minix/const.h>
#include <minix/callnr.h>

View file

@ -28,4 +28,15 @@ void _loadname(const char *_name, message *_msgptr);
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 */

View file

@ -11,18 +11,19 @@
/* 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__)
@ -30,13 +31,13 @@
#include <machine/ports.h> /* Well-known ports */
#endif
#include <string.h>
#include <signal.h>
#include <stdlib.h>
#include <limits.h>
#include <stddef.h>
#include <errno.h>
#include <lib.h>
#include <limits.h>
#include <signal.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
#endif

View file

@ -326,17 +326,6 @@ int unlinkat(int, const char *, int);
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 */

View file

@ -16,6 +16,7 @@
#include <minix/type.h>
#include <minix/dmap.h>
#include <lib.h>
#include <limits.h>
#include <errno.h>

View file

@ -120,6 +120,7 @@ __RCSID("$NetBSD: mke2fs.c,v 1.14 2010/09/10 15:51:20 tsutsui Exp $");
#include <err.h>
#include <errno.h>
#include <lib.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -15,6 +15,7 @@
#include <minix/type.h>
#include <minix/dmap.h>
#include <lib.h>
#include <limits.h>
#include <errno.h>

View file

@ -19,6 +19,7 @@
#include <machine/vmparam.h>
#include <sys/vm.h>
#include <lib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>

View file

@ -4,6 +4,7 @@
#define VERBOSE 0 /* display diagnostics */
#include <sys/types.h>
#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <signal.h>

View file

@ -15,6 +15,7 @@
#include <minix/type.h>
#include <minix/dmap.h>
#include <lib.h>
#include <limits.h>
#include <errno.h>

View file

@ -14,6 +14,7 @@
#include <minix/dmap.h>
#include <minix/vfsif.h>
#include <lib.h>
#include <limits.h>
#include <errno.h>
#include <minix/syslib.h>

View file

@ -41,6 +41,7 @@
#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) */