fp might be NULL.
[minix.git] / include / lib.h
blob97197b3a282af2ecca4d8a52e7aae82c78a9c2a0
1 /* The <lib.h> header is the master header used by the library.
2 * All the C files in the lib subdirectories include it.
3 */
5 #ifndef _LIB_H
6 #define _LIB_H
8 /* First come the defines. */
9 #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
10 #define _MINIX 1 /* tell headers to include MINIX stuff */
12 /* The following are so basic, all the lib files get them automatically. */
13 #include <minix/config.h> /* must be first */
14 #include <sys/types.h>
15 #include <limits.h>
16 #include <errno.h>
17 #include <ansi.h>
19 #include <minix/const.h>
20 #include <minix/com.h>
21 #include <minix/type.h>
22 #include <minix/callnr.h>
24 #include <minix/ipc.h>
26 #define MM PM_PROC_NR
27 #define FS FS_PROC_NR
29 _PROTOTYPE( int __execve, (const char *_path, char *const _argv[],
30 char *const _envp[], int _nargs, int _nenvps) );
31 _PROTOTYPE( int _syscall, (int _who, int _syscallnr, message *_msgptr) );
32 _PROTOTYPE( void _loadname, (const char *_name, message *_msgptr) );
33 _PROTOTYPE( int _len, (const char *_s) );
34 _PROTOTYPE( void _begsig, (int _dummy) );
36 #endif /* _LIB_H */