| [1506] | 1 | /* io.h,v 1.10 2004/09/14 22:27:33 bird Exp */
|
|---|
| 2 | /** @file
|
|---|
| 3 | * EMX
|
|---|
| 4 | */
|
|---|
| [18] | 5 |
|
|---|
| 6 | #ifndef _IO_H
|
|---|
| 7 | #define _IO_H
|
|---|
| 8 |
|
|---|
| 9 | #if defined (__cplusplus)
|
|---|
| 10 | extern "C" {
|
|---|
| 11 | #endif
|
|---|
| 12 |
|
|---|
| [361] | 13 | #include <sys/_types.h>
|
|---|
| 14 |
|
|---|
| 15 | #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
|
|---|
| 16 | typedef __size_t size_t;
|
|---|
| 17 | #define _SIZE_T_DECLARED
|
|---|
| 18 | #define _SIZE_T /* bird: emx */
|
|---|
| [18] | 19 | #endif
|
|---|
| 20 |
|
|---|
| [361] | 21 | #if !defined(_SSIZE_T_DECLARED) && !defined(_SSIZE_T) /* bird: emx */
|
|---|
| 22 | typedef __ssize_t ssize_t;
|
|---|
| 23 | #define _SSIZE_T_DECLARED
|
|---|
| 24 | #define _SSIZE_T /* bird: emx */
|
|---|
| 25 | #endif
|
|---|
| 26 |
|
|---|
| 27 | #if !defined(_OFF_T_DECLARED) && !defined(_OFF_T) /* bird:emx */
|
|---|
| 28 | typedef __off_t off_t; /* file offset */
|
|---|
| 29 | #define _OFF_T_DECLARED
|
|---|
| 30 | #define _OFF_T /* bird: emx */
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| [683] | 33 | #if !defined(_MODE_T_DECLARED) && !defined(_MODE_T) /* bird: EMX */
|
|---|
| 34 | typedef __mode_t mode_t;
|
|---|
| 35 | #define _MODE_T_DECLARED
|
|---|
| 36 | #define _MODE_T /* bird: EMX */
|
|---|
| 37 | #endif
|
|---|
| 38 |
|
|---|
| [18] | 39 | #if !defined (SEEK_SET)
|
|---|
| 40 | #define SEEK_SET 0
|
|---|
| 41 | #define SEEK_CUR 1
|
|---|
| 42 | #define SEEK_END 2
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
| 45 | struct stat;
|
|---|
| [190] | 46 | struct fd_set;
|
|---|
| [18] | 47 | struct timeval;
|
|---|
| 48 |
|
|---|
| 49 | int remove (__const__ char *);
|
|---|
| 50 | int rename (__const__ char *, __const__ char *);
|
|---|
| 51 |
|
|---|
| 52 | int access (__const__ char *, int);
|
|---|
| [790] | 53 | int chmod (__const__ char *, mode_t);
|
|---|
| [732] | 54 | int chsize (int, off_t);
|
|---|
| [18] | 55 | int close (int);
|
|---|
| [683] | 56 | int creat (const char *, mode_t);
|
|---|
| [18] | 57 | int dup (int);
|
|---|
| 58 | int dup2 (int, int);
|
|---|
| 59 | int eof (int);
|
|---|
| [732] | 60 | off_t filelength (int);
|
|---|
| [18] | 61 | int fstat (int, struct stat *);
|
|---|
| 62 | int fsync (int);
|
|---|
| [346] | 63 | #ifndef _FTRUNCATE_DECLARED
|
|---|
| 64 | #define _FTRUNCATE_DECLARED
|
|---|
| [361] | 65 | int ftruncate(int, off_t);
|
|---|
| [346] | |
|---|