home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / include / unistd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-20  |  1.1 KB  |  80 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. #pragma once
  8. #define unistd_h 1
  9.  
  10. #include <sys/fcntl.h>
  11.  
  12. /* A safe-looking set of things from various system versions */
  13.  
  14. #define FNM_PATHNAME 1
  15. #define FNM_QUOTE 2
  16.  
  17. #ifndef SEEK_SET
  18. #define SEEK_SET 0
  19. #endif
  20.  
  21. #ifndef SEEK_CUR
  22. #define SEEK_CUR 1
  23. #endif
  24.  
  25. #ifndef SEEK_END
  26. #define SEEK_END 2
  27. #endif
  28.  
  29. #ifndef GF_PATH
  30. #define GF_PATH "/etc/group"
  31. #endif
  32.  
  33. #ifndef PF_PATH
  34. #define PF_PATH "/etc/passwd"
  35. #endif
  36.  
  37. #ifndef IN_PATH
  38. #define IN_PATH "/usr/include"
  39. #endif
  40.  
  41. #ifndef R_OK
  42. #define R_OK 4
  43. #endif
  44.  
  45. #ifndef W_OK
  46. #define W_OK 2
  47. #endif
  48.  
  49. #ifndef X_OK
  50. #define X_OK 1
  51. #endif
  52.  
  53. #ifndef F_OK
  54. #define F_OK 0
  55. #endif
  56.  
  57. #ifndef NULL
  58. #define NULL 0
  59. #endif
  60.  
  61. #ifndef F_ULOCK
  62. #define F_ULOCK 0
  63. #endif
  64.  
  65. #ifndef F_LOCK
  66. #define F_LOCK 1
  67. #endif
  68.  
  69. #ifndef F_TLOCK
  70. #define F_TLOCK 2
  71. #endif
  72.  
  73. #ifndef F_TEST
  74. #define F_TEST 3
  75. #endif
  76.  
  77. #endif
  78.  
  79.  
  80.