home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / libc / dosio.h < prev    next >
C/C++ Source or Header  |  1996-08-31  |  1KB  |  43 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_libc_dosio_h__
  3. #define __dj_include_libc_dosio_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. /* set to O_BINARY or O_TEXT */
  16. extern char *__file_handle_modes;
  17. extern void __file_handle_set(int fd, int mode);
  18.  
  19. int __doserr_to_errno(int doserr);
  20.  
  21. /* puts "path" in the transfer buffer, fixing
  22.    unix-allowed multi-slashes */
  23. void _put_path(const char *_path);
  24. void _put_path2(const char *_path, int _offset);
  25.  
  26. /* Convenience functions for setting up transfers */
  27.  
  28. #define __tb_offset 0    /* (__tb & 15) Always paragraph aligned */
  29. #define __tb_segment (_go32_info_block.linear_address_of_transfer_buffer / 16)
  30.  
  31. #endif /* !_POSIX_SOURCE */
  32. #endif /* !__STRICT_ANSI__ */
  33. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  34.  
  35. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  36. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  37.  
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif /* __dj_include_libc_dosio_h__ */
  43.