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

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

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • 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, int 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 *,
49 struct timeval *);
50int setmode (int, int);
51int sopen (__const__ char *, int, int, ...);
52int stat (__const__ char *, struct stat *);
53long tell (int);
54int truncate (char *, long);
55int umask (int);
56int unlink (__const__ char *);
57int write (int, __const__ void *, size_t);
58
59int _access (__const__ char *, int);
60int _chmod (__const__ char *, int);
61int _chsize (int, long);
62int _close (int);
63int _creat (__const__ char *, int);
64int _crlf (char *, size_t, size_t *);
65int _dup (int);
66int _dup2 (int, int);
67int _eof (int);
68long _filelength (int);
69int _fstat (int, struct stat *);
70int _fsync (int);
71int _ftruncate (int, long);
72int _imphandle (int);
73int _ioctl (int, int request, ...);
74int _isatty (int);
75int _isterm (int);
76long _lseek (int, long, int);
77int _mkstemp (char *);
78char *_mktemp (char *);
79int _open (__const__ char *, int, ...);
80int _pipe (int *);
81int _read (int, void *, size_t);
82int _seek_hdr (int);
83int _select (int, struct _fd_set *, struct _fd_set *, struct _fd_set *,
84 struct timeval *);
85int _setmode (int, int);
86int _sopen (__const__ char *, int, int, ...);
87int _stat (__const__ char *, struct stat *);
88long _tell (int);
89int _truncate (char *, long);
90int _umask (int);
91int _unlink (__const__ char *);
92int _write (int, __const__ void *, size_t);
93
94#if defined (__cplusplus)
95}
96#endif
97
98#endif /* not _IO_H */
Note: See TracBrowser for help on using the repository browser.