rawio.h
Go to the documentation of this file.
00001 #ifndef KR_headers
00002 #ifdef MSDOS
00003 #include "io.h"
00004 #ifndef WATCOM
00005 #define close _close
00006 #define creat _creat
00007 #define open _open
00008 #define read _read
00009 #define write _write
00010 #endif /*WATCOM*/
00011 #endif /*MSDOS*/
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015 #ifndef MSDOS
00016 #ifdef OPEN_DECL
00017 extern int creat(const char*,int), open(const char*,int);
00018 #endif
00019 extern int close(int);
00020 extern int read(int,void*,size_t), write(int,void*,size_t);
00021 extern int unlink(const char*);
00022 #ifndef _POSIX_SOURCE
00023 #ifndef NON_UNIX_STDIO
00024 extern FILE *fdopen(int, const char*);
00025 #endif
00026 #endif
00027 #endif /*KR_HEADERS*/
00028 
00029 extern char *mktemp(char*);
00030 
00031 #ifdef __cplusplus
00032         }
00033 #endif
00034 #endif
00035 
00036 #include "fcntl.h"
00037 
00038 #ifndef O_WRONLY
00039 #define O_RDONLY 0
00040 #define O_WRONLY 1
00041 #endif


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:56