diff options
author | Miles Bader <miles@gnu.org> | 1997-06-30 17:04:50 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-30 17:04:50 +0000 |
commit | 00d9f95d79de5121f3dbe2c8e9cf557baca216fc (patch) | |
tree | 71ca6874f4b62cef984a6e0efdd699816013cab7 | |
parent | ebf95e1b23b72a9a1d17a220690bf8a6a30090d0 (diff) |
(main):
Arg parsing added.
HOLD variable removed.
(argp_program_version):
New variable.
Include <argp.h> and <version.h>.
-rw-r--r-- | proc/main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/proc/main.c b/proc/main.c index 1292cea0..01cf34a8 100644 --- a/proc/main.c +++ b/proc/main.c @@ -1,5 +1,5 @@ /* Initialization of the proc server - Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation + Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation This file is part of the GNU Hurd. @@ -25,9 +25,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <hurd/startup.h> #include <assert.h> #include <wire.h> +#include <argp.h> +#include <version.h> #include "proc.h" +const char *argp_program_version = STANDARD_HURD_VERSION (proc); + int message_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) @@ -56,10 +60,9 @@ main (int argc, char **argv, char **envp) mach_port_t pset, psetcntl; void *genport; process_t startup_port; - volatile int hold = 0; - - while (hold); - + struct argp argp = { 0, 0, 0, "Hurd process server" }; + + argp_parse (&argp, argc, argv, 0, 0, 0); initialize_version_info (); |