[7475] in Athena Bugs
paris lossage
daemon@ATHENA.MIT.EDU (Marc Horowitz)
Thu Apr 25 22:42:34 1991
To: bugs@ATHENA.MIT.EDU
Cc: epeisach@ATHENA.MIT.EDU
Reply-To: Marc Horowitz <marc@MIT.EDU>
Date: Thu, 25 Apr 91 22:42:17 EDT
From: Marc Horowitz <marc@ATHENA.MIT.EDU>
There are bugs in the ``ANSI'' header files on paris. I don't know if
bugs is tracking this. If not, say so, and I'll send the stuff to the
right place. Ezra, is that you?
1) NULL is defined in several header files according to the spec.
Under ultrix, it is not properly exclused. There is
#define NULL 0
where there should be
#ifndef NULL
#define NULL 0
#endif
Right now, I'm getting NULL redefined errors. Also, the spec says
that NULL should be "an implementation-defined null pointer constant."
So, #define NULL (void *) 0 may be better, although this is almost
guaranteed to break older code.
2) Line 125 in /usr/include/sys/file.h is:
#ifdef KERNEL && !defined(_POSIX_SOURCE)
You can't do that. It should be
#if defined(KERNEL) && !defined(_POSIX_SOURCE)
The error I get is
/usr/include/sys/file.h:125: warning: garbage at end of #ifdef argument
I'm sure by the time I'm done, I'll have more for you :-)
Marc