From 0936b9aeab611665645a4e6bafaded7ca76dd189 Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Tue, 3 Sep 1996 22:06:58 +0200 Subject: Import Dev86-0.0.7.tar.gz --- as/syshead.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 as/syshead.h (limited to 'as/syshead.h') diff --git a/as/syshead.h b/as/syshead.h new file mode 100644 index 0000000..d2a1655 --- /dev/null +++ b/as/syshead.h @@ -0,0 +1,50 @@ + +#ifndef STDC_HEADERS_MISSING +#include +#include +#include +#endif + +#ifndef POSIX_HEADERS_MISSING +#include +#include +#include +#include +#endif + +#ifdef MSDOS +#include +#include +#include +#undef min +#undef POSIX_HEADERS_MISSING +#endif + +#ifdef STDC_HEADERS_MISSING +char *strcpy P((char *s1, const char *s2)); +char *strrchr P((const char *s, int c)); +int memcmp P((const void *s1, const void *s2, unsigned n)); +int strcmp P((const char *s1, const char *s2)); +int strncmp P((const char *s1, const char *s2, unsigned n)); +unsigned strlen P((const char *s)); +void *malloc P((unsigned size)); +void *memset P((void *s, int c, unsigned n)); +void exit P((int status)); +#endif + +#ifdef POSIX_HEADERS_MISSING +int close P((int fd)); +int creat P((const char *path, int mode)); +int open P((const char *path, int oflag, ...)); +int read P((int fd, void *buf, unsigned nbytes)); +int write P((int fd, const void *buf, unsigned nbytes)); +off_t lseek P((int fd, off_t offset, int whence)); +typedef long off_t; +#define O_RDONLY 0 + +#define BIGBUFFER 0 /* Can't use a big buffer ... sorry */ +#endif + +#ifndef O_BINARY +#define O_BINARY 0 +#endif -- cgit v1.2.1