That would work for me. In which header file would these #define's be defined that would allow a platform specific #ifdef? I could see them being defined in each platform's os.h. Is there a more central place?
Brad Brad Nicholes Senior Software Engineer Novell, Inc., the leading provider of Net business solutions http://www.novell.com >>> [EMAIL PROTECTED] Tuesday, July 23, 2002 4:25:13 PM >>> Martin Kraemer <[EMAIL PROTECTED]> writes: > On Tue, Jul 23, 2002 at 02:03:44PM -0600, Brad Nicholes wrote: > > [...]to be inconsistent. For example, if I start Apache2 with a -h option, > > it displays the help screen and then calls destroy_and_exit_process() > > with an exit code of 1. > > [...] Is there any reason why we can't switch the -v, -V, > > -l, -L options to exit with a 1 instead of a 0 like the -h option? > > Yes. "The unix philosophy". > You are absolutely right: it IS inconsistent, and should be fixed. > But rather than changing all exit codes to 1, I would prefer to see > all these exit codes being changed to EX_OK: > #define EX_OK 0 /* successful termination */ In order to hold the console open for Netware, how about define EX_OK 0 ifdef netware define EX_DISPLAY_OK 1 else define EX_DISPLAY_OK EX_OK endif Stuff like httpd -V would use EX_DISPLAY_OK as the exit status. -- Jeff Trawick | [EMAIL PROTECTED] Born in Roswell... married an alien...