home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / f2c / i77lib / rawio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-09  |  575 b   |  33 lines

  1. #ifdef KR_headers
  2. extern FILE *fdopen();
  3. #else
  4. #ifdef MSDOS
  5. #include "io.h"
  6. #define close _close
  7. #define creat _creat
  8. #define open _open
  9. #define read _read
  10. #define write _write
  11. #endif
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef MSDOS
  16. #ifdef OPEN_DECL
  17. extern int creat(const char*,int), open(const char*,int);
  18. #endif
  19. extern int close(int);
  20. extern int read(int,void*,size_t), write(int,void*,size_t);
  21. extern int unlink(const char*);
  22. #ifndef _POSIX_SOURCE
  23. extern FILE *fdopen(int, const char*);
  24. #endif
  25. #endif
  26.  
  27. extern char *mktemp(char*);
  28.  
  29. #ifdef __cplusplus
  30.     }
  31. #endif
  32. #endif
  33.