moving prototypes to lib.h

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

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 */