[BusyBox] hurd patch

Neal H Walfield neal at cs.uml.edu
Wed Jan 30 09:07:04 UTC 2002


> I have a patch to support GNU/Hurd here

   diff -PrU 3 --exclude=.* ./busybox/init/start_stop_daemon.c
   ./busybox.hurd/init/start_stop_daemon.c
   --- ./busybox/init/start_stop_daemon.c  Wed Oct 31 20:55:39 2001
   +++ ./busybox.hurd/init/start_stop_daemon.c     Wed Jan 30 02:33:33
   2002
   @@ -20,6 +20,10 @@
    
    #include "busybox.h"
    
   +#ifndef PATH_MAX
   +# define PATH_MAX 255
   +#endif
   +
    static int start = 0;
    static int stop = 0;
    static int signal_nr = 15;

This is incredibly wrong and not a solution that I want to see (and I
am sure that Hurd developers will agree with me)!  I hope this is just
preliminary.

Additionally, you can save a bit of space as global statics are
guaranteed by C to be initialized to 0 (they are noted in the BSS
instead of being placed in the data section and as such reduce the
size of the binary).

Other than the PATH_MAX issues, it looks fine (not that I am qualified
to comment on the config tool that you are using).




More information about the busybox mailing list