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(_MODE_T_DECLARED) && !defined(_MODE_T) /* bird: EMX */
|
---|
31 | typedef __mode_t mode_t;
|
---|
32 | #define _MODE_T_DECLARED
|
---|
33 | #define _MODE_T /* bird: EMX */
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | #if !defined (SEEK_SET)
|
---|
37 | #define SEEK_SET 0
|
---|
38 | #define SEEK_CUR 1
|
---|
39 | #define SEEK_END 2
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | struct stat;
|
---|
43 | struct fd_set;
|
---|
44 | struct timeval;
|
---|
45 |
|
---|
46 | int remove (__const__ char *);
|
---|
47 | int rename (__const__ char *, __const__ char *);
|
---|
48 |
|
---|
49 | int access (__const__ char *, int);
|
---|
50 | int chmod (__const__ char *, mode_t);
|
---|
51 | int chsize (int, off_t);
|
---|
52 | int close (int);
|
---|
53 | int creat (const char *, mode_t);
|
---|
54 | int dup (int);
|
---|
55 | int dup2 (int, int);
|
---|
56 | int eof (int);
|
---|
57 | off_t filelength (int);
|
---|
58 | int fstat (int, struct stat *);
|
---|
59 | int fsync (int);
|
---|
60 | #ifndef _FTRUNCATE_DECLARED
|
---|
61 | #define _FTRUNCATE_DECLARED
|
---|
62 | int ftruncate(int, off_t);
|
---|
63 | #endif
|
---|
64 | int ioctl (int, unsigned long request, ...);
|
---|
65 | int isatty (int);
|
---|
66 | #ifndef _LSEEK_DECLARED
|
---|
67 | #define _LSEEK_DECLARED
|
---|
68 | off_t lseek(int, off_t, int);
|
---|
69 | #endif
|
---|
70 | int mkstemp (char *);
|
---|
71 | char *mktemp (char *);
|
---|
72 | int open (__const__ char *, int, ...);
|
---|
73 | int pipe (int *);
|
---|
74 | ssize_t read (int, void *, size_t);
|
---|
75 | int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
76 | int setmode (int, int);
|
---|
77 | int sopen (__const__ char *, int, int, ...);
|
---|
78 | int stat (__const__ char *, struct stat *);
|
---|
79 | off_t tell (int);
|
---|
80 | #ifndef _TRUNCATE_DECLARED
|
---|
81 | #define _TRUNCATE_DECLARED
|
---|
82 | int truncate(const char *, off_t);
|
---|
83 | #endif
|
---|
84 | int umask (int);
|
---|
85 | int unlink (__const__ char *);
|
---|
86 | int write (int, __const__ void *, size_t);
|
---|
87 |
|
---|
88 | #if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) || defined (_WITH_UNDERSCORE) || defined(__USE_EMX)
|
---|
89 |
|
---|
90 | int _access (__const__ char *, int);
|
---|
91 | int _chmod (__const__ char *, int);
|
---|
92 | int _chsize (int, off_t);
|
---|
93 | int _close (int);
|
---|
94 | int _creat (__const__ char *, int);
|
---|
95 | int _crlf (char *, size_t, size_t *);
|
---|
96 | int _dup (int);
|
---|
97 | int _dup2 (int, int);
|
---|
98 | int _eof (int);
|
---|
99 | off_t _filelength (int);
|
---|
100 | int _fstat (int, struct stat *);
|
---|
101 | int _fsync (int);
|
---|
102 | #ifndef __FTRUNCATE_DECLARED
|
---|
103 | #define __FTRUNCATE_DECLARED
|
---|
104 | int _ftruncate(int, off_t);
|
---|
105 | #endif
|
---|
106 | int _imphandle (int);
|
---|
107 | int _ioctl (int, unsigned long request, ...);
|
---|
108 | int _isatty (int);
|
---|
109 | int _isterm (int);
|
---|
110 | #ifndef __LSEEK_DECLARED
|
---|
111 | #define __LSEEK_DECLARED
|
---|
112 | off_t _lseek(int, off_t, int);
|
---|
113 | #endif
|
---|
114 | int _mkstemp (char *);
|
---|
115 | char *_mktemp (char *);
|
---|
116 | int _open (__const__ char *, int, ...);
|
---|
117 | int _pipe (int *);
|
---|
118 | ssize_t _read (int, void *, size_t);
|
---|
119 | int _seek_hdr (int);
|
---|
120 | int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
121 | int _setmode (int, int);
|
---|
122 | int _sopen (__const__ char *, int, int, ...);
|
---|
123 | int _stat (__const__ char *, struct stat *);
|
---|
124 | off_t _tell (int);
|
---|
125 | int _truncate (char *, off_t);
|
---|
126 | int _umask (int);
|
---|
127 | int _unlink (__const__ char *);
|
---|
128 | int _write (int, __const__ void *, size_t);
|
---|
129 |
|
---|
130 | #endif
|
---|
131 |
|
---|
132 | #if defined (__cplusplus)
|
---|
133 | }
|
---|
134 | #endif
|
---|
135 |
|
---|
136 | #endif /* not _IO_H */
|
---|