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 | #ifndef _FTRUNCATE_DECLARED
|
---|
40 | #define _FTRUNCATE_DECLARED
|
---|
41 | int ftruncate (int, long);
|
---|
42 | #endif
|
---|
43 | int ioctl (int, unsigned long request, ...);
|
---|
44 | int isatty (int);
|
---|
45 | #ifndef _LSEEK_DECLARED
|
---|
46 | #define _LSEEK_DECLARED
|
---|
47 | long lseek (int, long, int);
|
---|
48 | #endif
|
---|
49 | int mkstemp (char *);
|
---|
50 | char *mktemp (char *);
|
---|
51 | int open (__const__ char *, int, ...);
|
---|
52 | int pipe (int *);
|
---|
53 | int read (int, void *, size_t);
|
---|
54 | int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
55 | int setmode (int, int);
|
---|
56 | int sopen (__const__ char *, int, int, ...);
|
---|
57 | int stat (__const__ char *, struct stat *);
|
---|
58 | long tell (int);
|
---|
59 | #ifndef _LSEEK_DECLARED
|
---|
60 | #define _LSEEK_DECLARED
|
---|
61 | int truncate (char *, long);
|
---|
62 | #endif
|
---|
63 | int umask (int);
|
---|
64 | int unlink (__const__ char *);
|
---|
65 | int write (int, __const__ void *, size_t);
|
---|
66 |
|
---|
67 | int _access (__const__ char *, int);
|
---|
68 | int _chmod (__const__ char *, int);
|
---|
69 | int _chsize (int, long);
|
---|
70 | int _close (int);
|
---|
71 | int _creat (__const__ char *, int);
|
---|
72 | int _crlf (char *, size_t, size_t *);
|
---|
73 | int _dup (int);
|
---|
74 | int _dup2 (int, int);
|
---|
75 | int _eof (int);
|
---|
76 | long _filelength (int);
|
---|
77 | int _fstat (int, struct stat *);
|
---|
78 | int _fsync (int);
|
---|
79 | int _ftruncate (int, long);
|
---|
80 | int _imphandle (int);
|
---|
81 | int _ioctl (int, unsigned long request, ...);
|
---|
82 | int _isatty (int);
|
---|
83 | int _isterm (int);
|
---|
84 | long _lseek (int, long, int);
|
---|
85 | int _mkstemp (char *);
|
---|
86 | char *_mktemp (char *);
|
---|
87 | int _open (__const__ char *, int, ...);
|
---|
88 | int _pipe (int *);
|
---|
89 | int _read (int, void *, size_t);
|
---|
90 | int _seek_hdr (int);
|
---|
91 | int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
|
---|
92 | int _setmode (int, int);
|
---|
93 | int _sopen (__const__ char *, int, int, ...);
|
---|
94 | int _stat (__const__ char *, struct stat *);
|
---|
95 | long _tell (int);
|
---|
96 | int _truncate (char *, long);
|
---|
97 | int _umask (int);
|
---|
98 | int _unlink (__const__ char *);
|
---|
99 | int _write (int, __const__ void *, size_t);
|
---|
100 |
|
---|
101 | #if defined (__cplusplus)
|
---|
102 | }
|
---|
103 | #endif
|
---|
104 |
|
---|
105 | #endif /* not _IO_H */
|
---|