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

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

#434: declaration fixes.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.2 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);
39int ftruncate (int, long);
40int ioctl (int, unsigned long request, ...);
41int isatty (int);
42long lseek (int, long, int);
43int mkstemp (char *);
44char *mktemp (char *);
45int open (__const__ char *, int, ...);
46int pipe (int *);
47int read (int, void *, size_t);
48int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
49int setmode (int, int);
50int sopen (__const__ char *, int, int, ...);
51int stat (__const__ char *, struct stat *);
52long tell (int);
53int truncate (char *, long);
54int umask (int);
55int unlink (__const__ char *);
56int write (int, __const__ void *, size_t);
57
58int _access (__const__ char *, int);
59int _chmod (__const__ char *, int);
60int _chsize (int, long);
61int _close (int);
62int _creat (__const__ char *, int);
63int _crlf (char *, size_t, size_t *);
64int _dup (int);
65int _dup2 (int, int);
66int _eof (int);
67long _filelength (int);
68int _fstat (int, struct stat *);
69int _fsync (int);
70int _ftruncate (int, long);
71int _imphandle (int);
72int _ioctl (int, unsigned long request, ...);
73int _isatty (int);
74int _isterm (int);
75long _lseek (int, long, int);
76int _mkstemp (char *);
77char *_mktemp (char *);
78int _open (__const__ char *, int, ...);
79int _pipe (int *);
80int _read (int, void *, size_t);
81int _seek_hdr (int);
82int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
83int _setmode (int, int);
84int _sopen (__const__ char *, int, int, ...);
85int _stat (__const__ char *, struct stat *);
86long _tell (int);
87int _truncate (char *, long);
88int _umask (int);
89int _unlink (__const__ char *);
90int _write (int, __const__ void *, size_t);
91
92#if defined (__cplusplus)
93}
94#endif
95
96#endif /* not _IO_H */
Note: See TracBrowser for help on using the repository browser.