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

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

#427: Some prototype changes because of unistd.h update.

  • Property cvs2svn:cvs-rev set to 1.4
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.1 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
82int _access (__const__ char *, int);
83int _chmod (__const__ char *, int);
84int _chsize (int, long);
85int _close (int);
86int _creat (__const__ char *, int);
87int _crlf (char *, size_t, size_t *);
88int _dup (int);
89int _dup2 (int, int);
90int _eof (int);
91long _filelength (int);
92int _fstat (int, struct stat *);
93int _fsync (int);
94#ifndef __FTRUNCATE_DECLARED
95#define __FTRUNCATE_DECLARED
96int _ftruncate(int, off_t);
97#endif
98int _imphandle (int);
99int _ioctl (int, unsigned long request, ...);
100int _isatty (int);
101int _isterm (int);
102#ifndef __LSEEK_DECLARED
103#define __LSEEK_DECLARED
104off_t _lseek(int, off_t, int);
105#endif
106int _mkstemp (char *);
107char *_mktemp (char *);
108int _open (__const__ char *, int, ...);
109int _pipe (int *);
110ssize_t _read (int, void *, size_t);
111int _seek_hdr (int);
112int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
113int _setmode (int, int);
114int _sopen (__const__ char *, int, int, ...);
115int _stat (__const__ char *, struct stat *);
116long _tell (int);
117int _truncate (char *, long);
118int _umask (int);
119int _unlink (__const__ char *);
120int _write (int, __const__ void *, size_t);
121
122#if defined (__cplusplus)
123}
124#endif
125
126#endif /* not _IO_H */
Note: See TracBrowser for help on using the repository browser.