home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / SH164AS.ZIP / INCLUDE / MS_DIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-28  |  1.3 KB  |  41 lines

  1. /* ms_dio.h */
  2. #ifndef _MS_DIO_H
  3. #define _MS_DIO_H
  4.  
  5. /*
  6.  * This is only required under MSDOS
  7.  */
  8.  
  9. #ifdef MSDOS
  10. #include <sys/proto.h>
  11.  
  12. extern int _CDECL    dio_write    _PROTO ((int, char *, unsigned int));
  13. extern int _CDECL    dio_read    _PROTO ((int, char *, unsigned int));
  14. extern int _CDECL    dio_open    _PROTO ((char *, int, ...));
  15. extern int _CDECL    dio_close    _PROTO ((int));
  16. extern long _CDECL    dio_lseek    _PROTO ((int, long, int));
  17. extern int _CDECL    dio_fstat    _PROTO ((int , struct stat *));
  18. extern int _CDECL    dio_stat    _PROTO ((char *, struct stat *));
  19. extern int _CDECL    dio_access    _PROTO ((char *, int));
  20. extern int _CDECL    dio_chmod    _PROTO ((char *, int));
  21. extern int _CDECL    dio_creat    _PROTO ((char *, int));
  22. extern int _CDECL    dio_dup        _PROTO ((int));
  23. extern int _CDECL    dio_isatty    _PROTO ((int));
  24. extern long _CDECL    dio_tell    _PROTO ((int));
  25.  
  26. #define open        dio_open
  27. #define close(a)    dio_close (a)
  28. #define read(a,b,c)    dio_read (a,b,c)
  29. #define write(a,b,c)    dio_write (a,b,c)
  30. #define lseek(a,b,c)    dio_lseek (a,b,c)
  31. #define fstat(a,b)    dio_fstat (a,b)
  32. #define stat(a,b)    dio_stat (a,b)
  33. #define access(a, b)    dio_access (a,b)
  34. #define chmod(a, b)    dio_chmod (a,b)
  35. #define creat(a, b)    dio_creat (a,b)
  36. #define dup(a)        dio_dup (a)
  37. #define isatty(a)    dio_isatty (a)
  38. #define tell(a)        dio_tell (a)
  39. #endif
  40. #endif
  41.