source: trunk/src/emx/include/io.h@ 346

Last change on this file since 346 was 346, checked in by bird, 22 years ago

#427: Fixed crashes with sys/types.h

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.4 KB
Line 
1/* io.h (emx+gcc) */
2
3#ifndef _IO_H
4#define _IO_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#if !defined (_SIZE_T)
11#define _SIZE_T
12typedef 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
21struct stat;
22struct fd_set;
23struct timeval;
24
25int remove (__const__ char *);
26int rename (__const__ char *, __const__ char *);
27
28int access (__const__ char *, int);
29int chmod (__const__ char *, int);
30int chsize (int, long);
31int close (int);
32int creat (__const__ char *, int);
33int dup (int);
34int dup2 (int, int);
35int eof (int);
36long filelength (int);
37int fstat (int, struct stat *);
38int fsync (int);
39#ifndef _FTRUNCATE_DECLARED
40#define _FTRUNCATE_DECLARED
41int ftruncate (int, long);
42#endif
43int ioctl (int, unsigned long request, ...);
44int isatty (int);
45#ifndef _LSEEK_DECLARED
46#define _LSEEK_DECLARED
47long lseek (int, long, int);
48#endif
49int mkstemp (char *);
50char *mktemp (char *);
51int open (__const__ char *, int, ...);
52int pipe (int *);
53int read (int, void *, size_t);
54int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
55int setmode (int, int);
56int sopen (__const__ char *, int, int, ...);
57int stat (__const__ char *, struct stat *);
58long tell (int);
59#ifndef _LSEEK_DECLARED
60#define _LSEEK_DECLARED
61int truncate (char *, long);
62#endif
63int umask (int);
64int unlink (__const__ char *);
65int write (int, __const__ void *, size_t);
66
67int _access (__const__ char *, int);
68int _chmod (__const__ char *, int);
69int _chsize (int, long);
70int _close (int);
71int _creat (__const__ char *, int);
72int _crlf (char *, size_t, size_t *);
73int _dup (int);
74int _dup2 (int, int);
75int _eof (int);
76long _filelength (int);
77int _fstat (int, struct stat *);
78int _fsync (int);
79int _ftruncate (int, long);
80int _imphandle (int);
81int _ioctl (int, unsigned long request, ...);
82int _isatty (int);
83int _isterm (int);
84long _lseek (int, long, int);
85int _mkstemp (char *);
86char *_mktemp (char *);
87int _open (__const__ char *, int, ...);
88int _pipe (int *);
89int _read (int, void *, size_t);
90int _seek_hdr (int);
91int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
92int _setmode (int, int);
93int _sopen (__const__ char *, int, int, ...);
94int _stat (__const__ char *, struct stat *);
95long _tell (int);
96int _truncate (char *, long);
97int _umask (int);
98int _unlink (__const__ char *);
99int _write (int, __const__ void *, size_t);
100
101#if defined (__cplusplus)
102}
103#endif
104
105#endif /* not _IO_H */
Note: See TracBrowser for help on using the repository browser.