[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] [PATCH] PATH_MAX undefined in [u]mount.c
From: Neal H Walfield <neal () cs ! uml ! edu>
Date: 2002-01-26 21:13:04
[Download RAW message or body]
> PATH_MAX is also defiend in scripts/mkdep.c, to get around it i just put
>
> #ifndef PATH_MAX
> # define PATH_MAX 255
> #endif
>
> where needed, it isnt a good solution (i know GNU/Hurd doesnt like
> arbitrary limits) but its a convenient one for now.
Yes, this is an unsatisfactory solution as far as the current Hurd
maintainers' philosophy is concerned. A proper solution, however,
will not effect busybox when running under Linux or BSD; any extra
code can be stripped away by the preprocessor using something along
the lines of:
#ifdef PATH_MAX
/* (Current) static solution. */
#else
/* Dynamic solution using pathconf (). */
#endif /* PATH_MAX */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic