home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / std / h / unistd.h < prev   
C/C++ Source or Header  |  1996-09-28  |  836b  |  50 lines

  1. /* unistd.h: misc. P1003.1 definitions */
  2. /* Based on a version by Terrence W. Holm */
  3. /* $Id: unistd.h,v 1.3 93/05/05 21:17:58 sjg Exp $ */
  4.  
  5. #if ! _UNISTD_H
  6. #define    _UNISTD_H 1
  7.  
  8. #include <stddef.h>
  9.  
  10. /* doesn't really belong here, but the library function need it */
  11. /* todo: use _ARGS, _void, _const */
  12. #if __STDC__
  13. #define    ARGS(args)    args
  14. #define void    void
  15. #define    const    const
  16. #else
  17. #define    ARGS(args)    ()
  18. #define    void    char
  19. #define    const
  20. #endif
  21.  
  22. #include <io.h>            /* POSIX IO functions */
  23.  
  24. /*  for access(2)  */
  25.  
  26. #define    R_OK    4
  27. #define    W_OK    2
  28. #define    X_OK    1
  29. #define    F_OK    0
  30.  
  31. /*  for lockf(2)  */
  32.  
  33. #define    F_ULOCK    0
  34. #define    F_LOCK    1
  35. #define    F_TLOCK    2
  36. #define    F_TEST    3
  37.  
  38. /*  for lseek(2)  */
  39.  
  40. #define    SEEK_SET    0
  41. #define    SEEK_CUR    1
  42. #define    SEEK_END    2
  43.  
  44. #define    IN_PATH    "/usr/include"
  45.  
  46. char   *getcwd ARGS ((char *buf, size_t len));
  47.  
  48. #endif
  49.  
  50.