Pristine Ack-5.5
[Ack-5.5.git] / lib / minix / include / lib.h
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  */
4
5 #ifndef _LIB_H
6 #define _LIB_H
7
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 */
11
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>
18
19 #include <minix/const.h>
20 #include <minix/type.h>
21 #include <minix/callnr.h>
22
23 extern message _M;
24
25 #define MM                 0
26 #define FS                 1
27
28 _PROTOTYPE( int __execve, (char *_path, char **_argv, char **_envp,
29                         int _nargs, int _nenvps)                        );
30 _PROTOTYPE( int _callm1, (int _proc, int _syscallnr,
31                          int _int1, int _int2, int _int3,
32                          char *_ptr1, char *_ptr2, char *_ptr3)         );
33 _PROTOTYPE( int _callm3, (int _proc, int _syscallnr, int _int1,
34                          const char *_name)                             );
35 _PROTOTYPE( int _callx, (int _proc, int _syscallnr)                     );
36 _PROTOTYPE( int _len, (const char *_s)                                  );
37 _PROTOTYPE( void panic, (const char *_message, int _errnum)             );
38 _PROTOTYPE( int _sendrec, (int _src_dest, message *_m_ptr)              );
39 _PROTOTYPE( void _begsig, (int _dummy)                                  );
40
41 #endif /* _LIB_H */