* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / as / syshead.h
blob82d2cc95f5af547138c3e21ba5ae44894918b2df
2 #ifndef POSIX_HEADERS_MISSING
3 #include <sys/types.h>
4 #include <sys/stat.h>
5 #include <unistd.h>
6 #include <fcntl.h>
7 #endif
9 #ifndef STDC_HEADERS_MISSING
10 #include <stdlib.h>
11 #include <string.h>
12 #include <errno.h>
13 #endif
15 #ifdef MSDOS
16 #include <sys/types.h>
17 #include <sys/stat.h>
18 #include <fcntl.h>
19 #include <io.h>
20 #undef min
21 #undef POSIX_HEADERS_MISSING
22 #define VERSION "MSDOS Compile"
23 #endif
25 #if __STDC__ && !defined(__minix)
26 #define P(x) x
27 #else
28 #define P(x) ()
29 #endif
31 #ifdef STDC_HEADERS_MISSING
32 char *strcpy P((char *s1, const char *s2));
33 char *strrchr P((const char *s, int c));
34 int memcmp P((const void *s1, const void *s2, unsigned n));
35 int strcmp P((const char *s1, const char *s2));
36 int strncmp P((const char *s1, const char *s2, unsigned n));
37 unsigned strlen P((const char *s));
38 void *malloc P((unsigned size));
39 void *memset P((void *s, int c, unsigned n));
40 void exit P((int status));
41 #endif
43 #ifdef POSIX_HEADERS_MISSING
44 int close P((int fd));
45 int creat P((const char *path, int mode));
46 int open P((const char *path, int oflag, ...));
47 int read P((int fd, void *buf, unsigned nbytes));
48 int write P((int fd, const void *buf, unsigned nbytes));
49 typedef long off_t;
50 off_t lseek P((int fd, off_t offset, int whence));
51 #define BIGBUFFER 0 /* Can't use a big buffer ... sorry */
52 #endif
54 #ifndef O_RDONLY
55 #define O_RDONLY 0
56 #endif
57 #ifndef O_WRONLY
58 #define O_WRONLY 1
59 #endif
60 #ifndef O_RDWR
61 #define O_RDWR 2
62 #endif