home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / UNISTD.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  812b  |  40 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  UNISTD.H - Posix-compliant header for porting code to DOS
  5. **             systems which lack this standard header file.
  6. **
  7. **  public domain by Bob Stout
  8. */
  9.  
  10. #ifndef __UNISTD_H      /* Use same macro as Symantec to avoid collision */
  11. #define __UNISTD_H
  12.  
  13.  
  14. #include <io.h>
  15. #include <process.h>
  16. #include <stdio.h>
  17. #include "stat.h"
  18.  
  19. #ifndef F_OK
  20.  #define F_OK    0      /* File exists          */
  21.  #define X_OK    1      /* File is executable   */
  22.  #define W_OK    2      /* File is writable     */
  23.  #define R_OK    4      /* File is readable     */
  24. #endif
  25.  
  26. #undef dirent
  27. #undef DIR
  28.  
  29. #if !defined(__TURBOC__)
  30.  #include <direct.h>
  31. #else
  32.  #include <dir.h>
  33. #endif
  34.  
  35. #define dirent DIRENT_
  36. #define DIR DIR_
  37.  
  38.  
  39. #endif /* __UNISTD_H */
  40.