Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
rawio.h
Go to the documentation of this file.00001 #ifdef KR_headers
00002 extern FILE *fdopen();
00003 #else
00004 #ifdef MSDOS
00005 #include "io.h"
00006 #define close _close
00007 #define creat _creat
00008 #define open _open
00009 #define read _read
00010 #define write _write
00011 #endif
00012
00013 #ifndef __THROW
00014 # if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8) && !defined(DARWIN)
00015 # define __THROW throw ()
00016 # else
00017 # define __THROW
00018 # endif
00019 # define KILL__THROW
00020 #endif
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 #ifndef MSDOS
00026 #ifdef OPEN_DECL
00027 extern int creat(const char*,int), open(const char*,int);
00028 #endif
00029 extern int close(int) __THROW ;
00030 #ifndef READ_WRITE_64
00031 #include <sys/types.h>
00032 extern ssize_t read(int,void*,size_t) __THROW ;
00033 extern ssize_t write(int,const void*,size_t) __THROW ;
00034 #endif
00035 extern int unlink(const char*) __THROW ;
00036 #ifndef _POSIX_SOURCE
00037 #ifndef NON_UNIX_STDIO
00038 extern FILE *fdopen(int, const char*);
00039 #endif
00040 #endif
00041 #endif
00042
00043 extern char *mktemp(char*);
00044
00045 #ifdef __cplusplus
00046 }
00047 #endif
00048 #endif
00049
00050 #include "fcntl.h"
00051
00052 #ifndef O_WRONLY
00053 #define O_RDONLY 0
00054 #define O_WRONLY 1
00055 #endif
00056
00057 #ifdef KILL__THROW
00058 #undef __THROW
00059 #endif