home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / djdev108.zip / INCLUDE / UNISTD.H < prev    next >
C/C++ Source or Header  |  1992-03-09  |  1KB  |  79 lines

  1. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  2. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  3. ** Rochester NH, 03867-2954, USA.
  4. */
  5.  
  6. #ifndef unistd_h
  7. #define unistd_h 1
  8.  
  9. #include <sys/fcntl.h>
  10.  
  11. /* A safe-looking set of things from various system versions */
  12.  
  13. #define FNM_PATHNAME 1
  14. #define FNM_QUOTE 2
  15.  
  16. #ifndef SEEK_SET
  17. #define SEEK_SET 0
  18. #endif
  19.  
  20. #ifndef SEEK_CUR
  21. #define SEEK_CUR 1
  22. #endif
  23.  
  24. #ifndef SEEK_END
  25. #define SEEK_END 2
  26. #endif
  27.  
  28. #ifndef GF_PATH
  29. #define GF_PATH "/etc/group"
  30. #endif
  31.  
  32. #ifndef PF_PATH
  33. #define PF_PATH "/etc/passwd"
  34. #endif
  35.  
  36. #ifndef IN_PATH
  37. #define IN_PATH "/usr/include"
  38. #endif
  39.  
  40. #ifndef R_OK
  41. #define R_OK 4
  42. #endif
  43.  
  44. #ifndef W_OK
  45. #define W_OK 2
  46. #endif
  47.  
  48. #ifndef X_OK
  49. #define X_OK 1
  50. #endif
  51.  
  52. #ifndef F_OK
  53. #define F_OK 0
  54. #endif
  55.  
  56. #ifndef NULL
  57. #define NULL 0
  58. #endif
  59.  
  60. #ifndef F_ULOCK
  61. #define F_ULOCK 0
  62. #endif
  63.  
  64. #ifndef F_LOCK
  65. #define F_LOCK 1
  66. #endif
  67.  
  68. #ifndef F_TLOCK
  69. #define F_TLOCK 2
  70. #endif
  71.  
  72. #ifndef F_TEST
  73. #define F_TEST 3
  74. #endif
  75.  
  76. #endif
  77.  
  78.  
  79.