[BusyBox] [PATCH] PATH_MAX undefined in [u]mount.c

Neal H Walfield neal at cs.uml.edu
Sat Jan 26 21:13:04 UTC 2002


> 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 */



More information about the busybox mailing list