diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-09-03 22:06:58 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:31:01 +0200 |
commit | 0936b9aeab611665645a4e6bafaded7ca76dd189 (patch) | |
tree | fe6384035e96adc260f621d27909be67ad2e724a /as/syshead.h | |
parent | e85ee07172eccafd9441362e774f7b184810d008 (diff) | |
download | dev86-0936b9aeab611665645a4e6bafaded7ca76dd189.tar.gz |
Import Dev86-0.0.7.tar.gzv0.0.7
Diffstat (limited to 'as/syshead.h')
-rw-r--r-- | as/syshead.h | 50 |
1 files changed, 50 insertions, 0 deletions
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 <stdlib.h> +#include <string.h> +#include <errno.h> +#endif + +#ifndef POSIX_HEADERS_MISSING +#include <unistd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#endif + +#ifdef MSDOS +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#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 |