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 | #include <sys/_types.h>
|
---|
11 |
|
---|
12 | #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
|
---|
13 | typedef __size_t size_t;
|
---|
14 | #define _SIZE_T_DECLARED
|
---|
15 | #define _SIZE_T /* bird: emx */
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | #if !defined(_SSIZE_T_DECLARED) && !defined(_SSIZE_T) /* bird: emx */
|
---|
19 | typedef __ssize_t ssize_t;
|
---|
20 | #define _SSIZE_T_DECLARED
|
---|
21 | #define _SSIZE_T /* bird: emx */
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #if !defined(_OFF_T_DECLARED) && !defined(_OFF_T) /* bird:emx */
|
---|
25 | typedef __off_t off_t; /* file offset */
|
---|
26 | #define _OFF_T_DECLARED
|
---|
27 | #define _OFF_T /* bird: emx */
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #if !defined (SEEK_SET)
|
---|
31 | #define SEEK_SET 0
|
---|
32 | #define SEEK_CUR 1
|
---|
33 | #define SEEK_END 2
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | struct stat;
|
---|
37 | struct fd_set;
|
---|
38 | struct timeval;
|
---|
39 |
|
---|
40 | int remove (__const__ char *);
|
---|
41 | int rename (__const__ char *, __const__ char *);
|
---|
42 |
|
---|
43 | int access (__const__ char *, int);
|
---|
44 | int chmod (__const__ char *, int);
|
---|
45 | int chsize (int, long);
|
---|
46 | int close (int);
|
---|
47 | int creat (__const__ char *, int);
|
---|
48 | int dup (int);
|
---|
49 | int dup2 (int, int);
|
---|
50 | int eof (int);
|
---|
51 | long filelength (int);
|
---|
52 | int fstat (int, struct stat *);
|
---|
53 | int fsync (int);
|
---|
54 | #ifndef _FTRUNCATE_DECLARED
|
---|
55 | #define _FTRUNCATE_DECLARED
|
---|
56 | int ftruncate(int, off_t);
|
---|
57 | #endif
|
---|
58 | int ioctl (int, unsigned long request, ...);
|
---|
59 | int isatty (int);
|
---|
60 | #ifndef _LSEEK_DECLARED
|
---|
61 | #define _LSEEK_DECLARED
|
---|
62 | off_t lseek(int, off_t, int);
|
---|
63 | #endif
|
---|
64 | int mkstemp (char *);
|
---|
65 | char *mktemp (char *);
|
---|
66 | int open (__const__ char *, int, ...);
|
---|
67 | int pipe (int *);
|
---|
68 | ssize_t read (int, void *, size_t);
|
---|
69 | int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
70 | int setmode (int, int);
|
---|
71 | int sopen (__const__ char *, int, int, ...);
|
---|
72 | int stat (__const__ char *, struct stat *);
|
---|
73 | long tell (int);
|
---|
74 | #ifndef _TRUNCATE_DECLARED
|
---|
75 | #define _TRUNCATE_DECLARED
|
---|
76 | int truncate(const char *, off_t);
|
---|
77 | #endif
|
---|
78 | int umask (int);
|
---|
79 | int unlink (__const__ char *);
|
---|
80 | int write (int, __const__ void *, size_t);
|
---|
81 |
|
---|
82 | int _access (__const__ char *, int);
|
---|
83 | int _chmod (__const__ char *, int);
|
---|
84 | int _chsize (int, long);
|
---|
85 | int _close (int);
|
---|
86 | int _creat (__const__ char *, int);
|
---|
87 | int _crlf (char *, size_t, size_t *);
|
---|
88 | int _dup (int);
|
---|
89 | int _dup2 (int, int);
|
---|
90 | int _eof (int);
|
---|
91 | long _filelength (int);
|
---|
92 | int _fstat (int, struct stat *);
|
---|
93 | int _fsync (int);
|
---|
94 | #ifndef __FTRUNCATE_DECLARED
|
---|
95 | #define __FTRUNCATE_DECLARED
|
---|
96 | int _ftruncate(int, off_t);
|
---|
97 | #endif
|
---|
98 | int _imphandle (int);
|
---|
99 | int _ioctl (int, unsigned long request, ...);
|
---|
100 | int _isatty (int);
|
---|
101 | int _isterm (int);
|
---|
102 | #ifndef __LSEEK_DECLARED
|
---|
103 | #define __LSEEK_DECLARED
|
---|
104 | off_t _lseek(int, off_t, int);
|
---|
105 | #endif
|
---|
106 | int _mkstemp (char *);
|
---|
107 | char *_mktemp (char *);
|
---|
108 | int _open (__const__ char *, int, ...);
|
---|
109 | int _pipe (int *);
|
---|
110 | ssize_t _read (int, void *, size_t);
|
---|
111 | int _seek_hdr (int);
|
---|
112 | int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
113 | int _setmode (int, int);
|
---|
114 | int _sopen (__const__ char *, int, int, ...);
|
---|
115 | int _stat (__const__ char *, struct stat *);
|
---|
116 | long _tell (int);
|
---|
117 | int _truncate (char *, long);
|
---|
118 | int _umask (int);
|
---|
119 | int _unlink (__const__ char *);
|
---|
120 | int _write (int, __const__ void *, size_t);
|
---|
121 |
|
---|
122 | #if defined (__cplusplus)
|
---|
123 | }
|
---|
124 | #endif
|
---|
125 |
|
---|
126 | #endif /* not _IO_H */
|
---|