diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /libc/include | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/setjmp.h | 8 | ||||
-rw-r--r-- | libc/include/stdarg.h | 4 | ||||
-rw-r--r-- | libc/include/sys/stat.h | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h index c2bfadb..162743b 100644 --- a/libc/include/setjmp.h +++ b/libc/include/setjmp.h @@ -17,10 +17,14 @@ typedef struct unsigned int di; } jmp_buf[1]; -int setjmp __P((jmp_buf env)); -void longjmp __P((jmp_buf env, int rv)); +int _setjmp __P((jmp_buf env)); +void _longjmp __P((jmp_buf env, int rv)); /* LATER: Seems GNU beat me to it, must be OK then :-) * Humm, what's this about setjmp being a macro !? + * Ok, use the BSD names as normal use the ANSI as macros */ + +#define setjmp(a_env) _setjmp(a_env) +#define longjmp(a_env, a_rv) _longjmp(a_env, a_rv) #endif diff --git a/libc/include/stdarg.h b/libc/include/stdarg.h index d30fbd8..321e664 100644 --- a/libc/include/stdarg.h +++ b/libc/include/stdarg.h @@ -41,3 +41,7 @@ #endif #endif /* __STDARG_H */ + +#if __FIRST_ARG_IN_AX__ +#error First arg is in a register, stdarg.h cannot take its address +#endif diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index d21f986..b1cf558 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h @@ -34,9 +34,9 @@ struct stat { unsigned long __unused4; unsigned long __unused5; }; +#endif -#else - +#ifdef __AS386_16__ struct stat { dev_t st_dev; |