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

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_io_h_
  3. #define __dj_include_io_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. #include <sys/types.h>
  16.  
  17. int        chsize(int handle, long size);
  18. int        _close(int _fd);
  19. int        _creat(const char *_path, int _attrib);
  20. ssize_t        crlf2nl(char *_buffer, ssize_t _length);
  21. int        _dos_lock(int _fd, long _offset, long _length);
  22. long        filelength(int _handle);
  23. short        _get_dev_info(int _arg);
  24. int        lock(int _fd, long _offset, long _length);
  25. int        _open(const char *_path, int _oflag);
  26. ssize_t        _read(int _fd, void *_buf, size_t _nbyte);
  27. int        setmode(int _fd, int _newmode);
  28. off_t        tell(int _fd);
  29. int        _dos_unlock(int _fd, long _offset, long _length);
  30. int        unlock(int _fd, long _offset, long _length);
  31. ssize_t        _write(int _fd, const void *_buf, size_t _nbyte);
  32. int            _chmod(const char *_path, int _func, ...);
  33. void        _flush_disk_cache(void);
  34.  
  35. #define sopen(path, access, shflag, mode) \
  36.     open((path), (access)|(shflag), (mode))
  37.  
  38. #endif /* !_POSIX_SOURCE */
  39. #endif /* !__STRICT_ANSI__ */
  40. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  41.  
  42. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  43. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif /* !__dj_include_io_h_ */
  50.