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

Last change on this file since 512 was 512, checked in by zap, 22 years ago

See changelog.

  • Property cvs2svn:cvs-rev set to 1.5
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.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#include <sys/_types.h>
11
12#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
13typedef __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 */
19typedef __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 */
25typedef __off_t off_t; /* file offset */
26#define _OFF_T_DECLARED
27#define _OFF_T /* bird: emx */
28#endif
29
30#if !defined (SEEK_SET)
31#define SEEK_SET 0
32#define SEEK_CUR 1
33#define SEEK_END 2
34#endif
35
36struct stat;
37struct fd_set;
38struct timeval;
39
40int remove (__const__ char *);
41int rename (__const__ char *, __const__ char *);
42
43int access (__const__ char *, int);
44int chmod (__const__ char *, int);
45int chsize (int, long);
46int close (int);
47int creat (__const__ char *, int);
48int dup (int);
49int dup2 (int, int);
50int eof (int);
51long filelength (int);
52int fstat (int, struct stat *);
53int fsync (int);
54#ifndef _FTRUNCATE_DECLARED
55#define _FTRUNCATE_DECLARED
56int ftruncate(int, off_t);
57#endif
58int ioctl (int, unsigned long request, ...);
59int isatty (int);
60#ifndef _LSEEK_DECLARED
61#define _LSEEK_DECLARED
62off_t lseek(int, off_t, int);
63#endif
64int mkstemp (char *);
65char *mktemp (char *);
66int open (__const__ char *, int, ...);
67int pipe (int *);
68ssize_t read (int, void *, size_t);
69int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
70int setmode (int, int);
71int sopen (__const__ char *, int, int, ...);
72int stat (__const__ char *, struct stat *);
73long tell (int);
74#ifndef _TRUNCATE_DECLARED
75#define _TRUNCATE_DECLARED
76int truncate(const char *, off_t);
77#endif
78int umask (int);
79int unlink (__const__ char *);
80int write (int, __const__ void *, size_t);
81
82#if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) \
83 || defined (_WITH_UNDERSCORE)
84
85int _access (__const__ char *, int);
86int _chmod (__const__ char *, int);
87int _chsize (int, long);
88int _close (int);
89int _creat (__const__ char *, int);
90int _crlf (char *, size_t, size_t *);
91int _dup (int);
92int _dup2 (int, int);
93int _eof (int);
94long _filelength (int);
95int _fstat (int, struct stat *);
96int _fsync (int);
97#ifndef __FTRUNCATE_DECLARED
98#define __FTRUNCATE_DECLARED
99int _ftruncate(int, off_t);
100#endif
101int _imphandle (int);
102int _ioctl (int, unsigned long request, ...);
103int _isatty (int);
104int _isterm (int);
105#ifndef __LSEEK_DECLARED
106#define __LSEEK_DECLARED
107off_t _lseek(int, off_t, int);
108#endif
109int _mkstemp (char *);
110char *_mktemp (char *);
111int _open (__const__ char *, int, ...);
112int _pipe (int *);
113ssize_t _read (int, void *, size_t);
114int _seek_hdr (int);
115int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
116int _setmode (int, int);
117int _sopen (__const__ char *, int, int, ...);
118int _stat (__const__ char *, struct stat *);
119long _tell (int);
120int _truncate (char *, long);
121int _umask (int);
122int _unlink (__const__ char *);
123int _write (int, __const__ void *, size_t);
124
125#endif
126
127#if defined (__cplusplus)
128}
129#endif
130
131#endif /* not _IO_H */
Note: See TracBrowser for help on using the repository browser.