It would be very nice if the SHELL defines could be turned into an if (interrupt_glob && *interrupt_glob) block where interrupt_glob is an int *.
Could you ellaborate on this a bit more please? I'm not exactly sure what you are requesting. Thanks, Ben
The code surrounded by the SHELL ifdefs allow the function to be interrupted by a signal while walking directory trees. Since this is desirable to quite a few applications that use glob(3) (such as ftp, the user may wish to press CTRL-C to halt a search on a particularly large directory), it would be very nice if this code was put into an if block rather than a set of ifdefs.