home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / IO.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  2KB  |  66 lines

  1. /* io.h (emx+gcc) */
  2.  
  3. #if !defined (_IO_H)
  4. #define _IO_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. #if !defined (_SIZE_T)
  11. #define _SIZE_T
  12. typedef unsigned long size_t;
  13. #endif
  14.  
  15. #if !defined (SEEK_SET)
  16. #define SEEK_SET 0
  17. #define SEEK_CUR 1
  18. #define SEEK_END 2
  19. #endif
  20.  
  21. struct stat;
  22. struct _fd_set;
  23. struct timeval;
  24.  
  25. int access (__const__ char *name, int mode);
  26. int chmod (__const__ char *name, int pmode);
  27. int chsize (int handle, long size);
  28. int close (int handle);
  29. int creat (__const__ char *name, int pmode);
  30. int dup (int handle);
  31. int dup2 (int handle1, int handle2);
  32. int eof (int handle);
  33. long filelength (int handle);
  34. int fstat (int handle, struct stat *buffer);
  35. int fsync (int handle);
  36. int ftruncate (int handle, long length);
  37. int ioctl (int handle, int request, ...);
  38. int isatty (int handle);
  39. long lseek (int handle, long offset, int origin);
  40. char *mktemp (char *string);
  41. int open (__const__ char *name, int oflag, ...);
  42. int pipe (int *two_handles);
  43. int read (int handle, void *buf, size_t nbyte);
  44. int remove (__const__ char *name);
  45. int rename (__const__ char *old_name, __const__ char *new_name);
  46. int select (int nfds, struct _fd_set *readfds, struct _fd_set *writefds,
  47.     struct _fd_set *exceptfds, struct timeval *timeout);
  48. int setmode (int handle, int mode);
  49. int sopen (__const__ char *name, int oflag, int shflag, ...);
  50. int stat (__const__ char *name, struct stat *buffer);
  51. long tell (int handle);
  52. int truncate (char *name, long length);
  53. int umask (int pmode);
  54. int unlink (__const__ char *name);
  55. int write (int handle, __const__ void *buf, size_t nbyte);
  56.  
  57. int _crlf (char *buf, size_t size, size_t *new_size);
  58. int _isterm (int handle);
  59. int _seek_hdr (int handle);
  60.  
  61. #if defined (__cplusplus)
  62. }
  63. #endif
  64.  
  65. #endif /* !defined (_IO_H) */
  66.