1994-10-26 18:15:35 +00:00
|
|
|
#ifdef KR_headers
|
1996-07-12 18:57:58 +00:00
|
|
|
#ifndef __FreeBSD__
|
1994-10-26 18:15:35 +00:00
|
|
|
extern FILE *fdopen();
|
1996-07-12 18:57:58 +00:00
|
|
|
#endif
|
1994-10-26 18:15:35 +00:00
|
|
|
#else
|
|
|
|
#ifdef MSDOS
|
|
|
|
#include "io.h"
|
|
|
|
#define close _close
|
|
|
|
#define creat _creat
|
|
|
|
#define open _open
|
|
|
|
#define read _read
|
|
|
|
#define write _write
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#ifndef MSDOS
|
|
|
|
#ifdef OPEN_DECL
|
1996-07-12 18:57:58 +00:00
|
|
|
#ifndef __FreeBSD__
|
1994-10-26 18:15:35 +00:00
|
|
|
extern int creat(const char*,int), open(const char*,int);
|
|
|
|
#endif
|
1996-07-12 18:57:58 +00:00
|
|
|
#endif
|
|
|
|
#ifndef __FreeBSD__
|
1994-10-26 18:15:35 +00:00
|
|
|
extern int close(int);
|
|
|
|
extern int read(int,void*,size_t), write(int,void*,size_t);
|
|
|
|
extern int unlink(const char*);
|
1996-07-12 18:57:58 +00:00
|
|
|
#endif
|
1994-10-26 18:15:35 +00:00
|
|
|
#ifndef _POSIX_SOURCE
|
|
|
|
#ifndef NON_UNIX_STDIO
|
1996-07-12 18:57:58 +00:00
|
|
|
#ifndef __FreeBSD__
|
1994-10-26 18:15:35 +00:00
|
|
|
extern FILE *fdopen(int, const char*);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
1996-07-12 18:57:58 +00:00
|
|
|
#endif
|
1994-10-26 18:15:35 +00:00
|
|
|
|
|
|
|
extern char *mktemp(char*);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fcntl.h"
|
|
|
|
|
|
|
|
#ifndef O_WRONLY
|
|
|
|
#define O_RDONLY 0
|
|
|
|
#define O_WRONLY 1
|
|
|
|
#endif
|