Print this page
3188 ignore the comment in limits.h and define NAME_MAX
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Sam Zaydel <szaydel@racktopsystems.com>

*** 32,43 **** */ #ifndef __YPSYM_H #define __YPSYM_H - #pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif /* --- 32,41 ----
*** 163,187 **** struct listofnames *nextname; char *name; }; typedef struct listofnames listofnames; - /* - * XXX- NAME_MAX can't be defined in <limits.h> in a POSIX conformant system - * (under conditions which apply to Sun systems). Removal of this define - * caused yp to break (and only yp!). Hence, NAME_MAX is defined here - * *exactly* as it was in <limits.h>. I suspect this may not be the - * desired value. I suspect the desired value is either: - * - the maxumum name length for any file system type, or - * - should be _POSIX_NAME_MAX which is the minimum-maximum name - * length in a POSIX conformant system (which just happens to - * be 14), or - * - should be gotten by pathconf() or fpathconf(). - * XXX- I leave this to the owners of yp! - */ - #define NAME_MAX 14 /* s5 file system maximum name length */ - #ifdef __cplusplus } #endif #endif /* __YPSYM_H */ --- 161,170 ----