OSDN Git Service

* Previous contents of gcc/f/runtime moved into toplevel
[pf3gnuchains/gcc-fork.git] / libf2c / libI77 / rawio.h
1 #ifdef KR_headers
2 extern FILE *fdopen();
3 #else
4 #if defined (MSDOS) && !defined (GO32)
5 #include "io.h"
6 #ifndef WATCOM
7 #define close _close
8 #define creat _creat
9 #define open _open
10 #define read _read
11 #define write _write
12 #endif /*WATCOM*/
13 #endif /*MSDOS*/
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 #if !(defined (MSDOS) && !defined (GO32))
18 #ifdef OPEN_DECL
19 extern int creat(const char*,int), open(const char*,int);
20 #endif
21 extern int close(int);
22 #if !(defined(_WIN32) && !defined(__CYGWIN32__))
23 extern int read(int,void*,size_t), write(int,void*,size_t);
24 #endif
25 extern int unlink(const char*);
26 #ifndef _POSIX_SOURCE
27 #ifndef NON_UNIX_STDIO
28 extern FILE *fdopen(int, const char*);
29 #endif
30 #endif
31 #endif /*KR_HEADERS*/
32
33 extern char *mktemp(char*);
34
35 #ifdef __cplusplus
36         }
37 #endif
38 #endif
39
40 #ifndef NO_FCNTL
41 #include <fcntl.h>
42 #endif
43
44 #ifndef O_WRONLY
45 #define O_RDONLY 0
46 #define O_WRONLY 1
47 #endif