Adapted for ANSI C and our pseudo-Posix syscall interface.
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
#define LINO_AD 0
|
||||
#define FILN_AD 4
|
||||
|
||||
/* ERANGE conflicts with a symbol in the ANSI C library. */
|
||||
|
||||
#ifdef ERANGE
|
||||
#undef ERANGE
|
||||
#endif
|
||||
|
||||
#define LINO (*(int *)(_hol0()+LINO_AD))
|
||||
#define FILN (*(char **)(_hol0()+FILN_AD))
|
||||
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
|
||||
/* EBADF conflicts with the ANSI C definition. */
|
||||
|
||||
#ifdef EBADF
|
||||
#undef EBADF
|
||||
#endif
|
||||
|
||||
#define EARGC 64
|
||||
#define EEXP 65
|
||||
#define ELOG 66
|
||||
|
||||
Reference in New Issue
Block a user