[11487] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.4H: ultrix header files: dirent.h or sys/dir.h

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sun Dec 5 04:16:15 1993

To: bugs@MIT.EDU
Date: Sun, 05 Dec 93 04:16:02 EST
From: Salvatore Valente <svalente@MIT.EDU>

System name:		puttanesca
Type and version:	KN02ca 7.4H (1 update(s) to same version)
Display type:		PMAG-DV 

What were you trying to do?

Compile the following program:

#define _POSIX_SOURCE 1
#include <dirent.h>
main () {}

What's wrong:

When _POSIX_SOURCE is defined, MAXHOSTNAME is not defined.  This is good.
However, when _POSIX_SOURCE is defined, it still tries to access MAXHOSTNAME.
This is bad.

The program fails to compile.
This is not the behavior defined by ths Posix standard.

What should have happened:

The program should have compiled.

Please describe any relevant documentation references:

IEEE Standard 1003.1-1988 Portable Operating System Interface for
Computer Environments.

ultrix header file /usr/include/sys/dir.h

Kernighan, Brian W.  The C Programming Language.
Prentice-Hall, Inc.  1978.

home help back first fref pref prev next nref lref last post