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