home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNU_1OF3.ZIP / HEADERS.ZIP / g++-include / fcntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-06  |  765 b   |  43 lines

  1. #ifndef fcntl_h
  2.  
  3. extern "C" {
  4.  
  5. #ifdef __fcntl_h_recursive
  6. #include_next <fcntl.h>
  7. #else
  8. #define fcntl __hide_fcntl
  9. #define open  __hide_open
  10. #define creat __hide_creat
  11.  
  12. #define __fcntl_h_recursive
  13. #include_next <fcntl.h>
  14.  
  15. #undef fcntl
  16. #undef open
  17. #undef creat
  18.  
  19. #define fcntl_h 1
  20.  
  21. int       fcntl(int, int, ...);
  22. #if defined(DGUX)
  23. int       creat(char*, unsigned long int);
  24. #elif defined(convex)
  25. int       creat(char*, unsigned short int);
  26. #elif defined(hpux) || defined(USG)
  27. int          creat(const char*, unsigned short int);
  28. #elif defined(___AIX__)
  29. int       creat(char*, unsigned long);
  30. #else
  31. int       creat(const char*, unsigned long int);
  32. #endif
  33.  
  34. #ifdef DGUX
  35. int       open(char*, int, ...);
  36. #else
  37. int       open(const char*, int, ...);
  38. #endif
  39.  
  40. #endif
  41. }
  42. #endif
  43.