PATH_MAX in sys/param.h
Ulrich Drepper
drepper@cygnus.com
Thu Apr 1 00:00:00 GMT 1999
Alex Buell <alex.buell@tahallah.demon.co.uk> writes:
> rpm-2.5.6 uses PATH_MAX in verify.c, but only includes the following files
> errno.h, fcntl.h, stdlib.h, string.h and unistd.h.
>
> Unfortunately sys/param.h is only included from the resolv.h header file.
> In all my greps around, this was the only instance where it is being
> included.
>
> Shouldn't unistd.h or stdlib.h include sys/param.h automatically?
No. And what has sys/param.h to do with it? If a program wants to
learn about system limits it has to include, surprise, limits.h.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-alpha
mailing list