diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /lib/libI77/rawio.h | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Diffstat (limited to 'lib/libI77/rawio.h')
| -rw-r--r-- | lib/libI77/rawio.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/libI77/rawio.h b/lib/libI77/rawio.h new file mode 100644 index 000000000000..59181d759f8d --- /dev/null +++ b/lib/libI77/rawio.h @@ -0,0 +1,41 @@ +#ifdef KR_headers +extern FILE *fdopen(); +#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 +extern int creat(const char*,int), open(const char*,int); +#endif +extern int close(int); +extern int read(int,void*,size_t), write(int,void*,size_t); +extern int unlink(const char*); +#ifndef _POSIX_SOURCE +#ifndef NON_UNIX_STDIO +extern FILE *fdopen(int, const char*); +#endif +#endif +#endif + +extern char *mktemp(char*); + +#ifdef __cplusplus + } +#endif +#endif + +#include "fcntl.h" + +#ifndef O_WRONLY +#define O_RDONLY 0 +#define O_WRONLY 1 +#endif |
