lib.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef _LIB_H
  5. #define _LIB_H
  6. /* First come the defines. */
  7. #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
  8. #define _MINIX 1 /* tell headers to include MINIX stuff */
  9. /* The following are so basic, all the lib files get them automatically. */
  10. #include <minix/config.h> /* must be first */
  11. #include <sys/types.h>
  12. #include <limits.h>
  13. #include <errno.h>
  14. #include <ansi.h>
  15. #include <minix/const.h>
  16. #include <minix/type.h>
  17. #include <minix/callnr.h>
  18. extern message _M;
  19. #define MM 0
  20. #define FS 1
  21. _PROTOTYPE( int __execve, (char *_path, char **_argv, char **_envp,
  22. int _nargs, int _nenvps) );
  23. _PROTOTYPE( int _callm1, (int _proc, int _syscallnr,
  24. int _int1, int _int2, int _int3,
  25. char *_ptr1, char *_ptr2, char *_ptr3) );
  26. _PROTOTYPE( int _callm3, (int _proc, int _syscallnr, int _int1,
  27. const char *_name) );
  28. _PROTOTYPE( int _callx, (int _proc, int _syscallnr) );
  29. _PROTOTYPE( int _len, (const char *_s) );
  30. _PROTOTYPE( void panic, (const char *_message, int _errnum) );
  31. _PROTOTYPE( int _sendrec, (int _src_dest, message *_m_ptr) );
  32. _PROTOTYPE( void _begsig, (int _dummy) );
  33. #endif /* _LIB_H */