| 1 | /* io.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _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 remove (__const__ char *);
|
|---|
| 26 | int rename (__const__ char *, __const__ char *);
|
|---|
| 27 |
|
|---|
| 28 | int access (__const__ char *, int);
|
|---|
| 29 | int chmod (__const__ char *, int);
|
|---|
| 30 | int chsize (int, long);
|
|---|
| 31 | int close (int);
|
|---|
| 32 | int creat (__const__ char *, int);
|
|---|
| 33 | int dup (int);
|
|---|
| 34 | int dup2 (int, int);
|
|---|
| 35 | int eof (int);
|
|---|
| 36 | long filelength (int);
|
|---|
| 37 | int fstat (int, struct stat *);
|
|---|
| 38 | int fsync (int);
|
|---|
| 39 | int ftruncate (int, long);
|
|---|
| 40 | int ioctl (int, int request, ...);
|
|---|
| 41 | int isatty (int);
|
|---|
| 42 | long lseek (int, long, int);
|
|---|
| 43 | int mkstemp (char *);
|
|---|
| 44 | char *mktemp (char *);
|
|---|
| 45 | int open (__const__ char *, int, ...);
|
|---|
| 46 | int pipe (int *);
|
|---|
| 47 | int read (int, void *, size_t);
|
|---|
| 48 | int select (int, struct _fd_set *, struct _fd_set *, struct _fd_set *,
|
|---|
| 49 | struct timeval *);
|
|---|
| 50 | int setmode (int, int);
|
|---|
| 51 | int sopen (__const__ char *, int, int, ...);
|
|---|
| 52 | int stat (__const__ char *, struct stat *);
|
|---|
| 53 | long tell (int);
|
|---|
| 54 | int truncate (char *, long);
|
|---|
| 55 | int umask (int);
|
|---|
| 56 | int unlink (__const__ char *);
|
|---|
| 57 | int write (int, __const__ void *, size_t);
|
|---|
| 58 |
|
|---|
| 59 | int _access (__const__ char *, int);
|
|---|
| 60 | int _chmod (__const__ char *, int);
|
|---|
| 61 | int _chsize (int, long);
|
|---|
| 62 | int _close (int);
|
|---|
| 63 | int _creat (__const__ char *, int);
|
|---|
| 64 | int _crlf (char *, size_t, size_t *);
|
|---|
| 65 | int _dup (int);
|
|---|
| 66 | int _dup2 (int, int);
|
|---|
| 67 | int _eof (int);
|
|---|
| 68 | long _filelength (int);
|
|---|
| 69 | int _fstat (int, struct stat *);
|
|---|
| 70 | int _fsync (int);
|
|---|
| 71 | int _ftruncate (int, long);
|
|---|
| 72 | int _imphandle (int);
|
|---|
| 73 | int _ioctl (int, int request, ...);
|
|---|
| 74 | int _isatty (int);
|
|---|
| 75 | int _isterm (int);
|
|---|
| 76 | long _lseek (int, long, int);
|
|---|
| 77 | int _mkstemp (char *);
|
|---|
| 78 | char *_mktemp (char *);
|
|---|
| 79 | int _open (__const__ char *, int, ...);
|
|---|
| 80 | int _pipe (int *);
|
|---|
| 81 | int _read (int, void *, size_t);
|
|---|
| 82 | int _seek_hdr (int);
|
|---|
| 83 | int _select (int, struct _fd_set *, struct _fd_set *, struct _fd_set *,
|
|---|
| 84 | struct timeval *);
|
|---|
| 85 | int _setmode (int, int);
|
|---|
| 86 | int _sopen (__const__ char *, int, int, ...);
|
|---|
| 87 | int _stat (__const__ char *, struct stat *);
|
|---|
| 88 | long _tell (int);
|
|---|
| 89 | int _truncate (char *, long);
|
|---|
| 90 | int _umask (int);
|
|---|
| 91 | int _unlink (__const__ char *);
|
|---|
| 92 | int _write (int, __const__ void *, size_t);
|
|---|
| 93 |
|
|---|
| 94 | #if defined (__cplusplus)
|
|---|
| 95 | }
|
|---|
| 96 | #endif
|
|---|
| 97 |
|
|---|
| 98 | #endif /* not _IO_H */
|
|---|