home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0000 - 0009 / ibm0000-0009 / ibm0003.tar / ibm0003 / C_DISK2.ZIP / IO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-08  |  792 b   |  31 lines

  1. /*_ io.h   Fri Feb 26 1988   Modified by: Walter Bright */
  2. /* Copyright (C) 1987-1988 by Northwest Software    */
  3. /* All Rights Reserved                    */
  4. /* Written by Walter Bright                */
  5.  
  6. /* Declarations for low level I/O functions    */
  7.  
  8. #ifndef IO_H
  9. #define    IO_H    1
  10.  
  11. int read(int,void *,unsigned);
  12. int _readx(int,void *,unsigned,unsigned);
  13. int write(int,void *,unsigned);
  14. int _writex(int,void *,unsigned,unsigned);
  15. int getDS(void);
  16. int open(char *,int,...);
  17. int creat(char *,int);
  18. int close(int);
  19. int unlink(char *);
  20. int remove(char *);
  21.  
  22. long lseek(int,long,int);
  23. #define SEEK_SET    0    /* seek from start of file    */
  24. #define SEEK_CUR    1    /* relative to current position    */
  25. #define SEEK_END    2    /* relative to end of file    */
  26.  
  27. long filesize(char *);
  28. int isatty(int);
  29.  
  30. #endif /* IO_H */
  31.