… | |
… | |
21 | |
21 | |
22 | #include "config.h" |
22 | #include "config.h" |
23 | |
23 | |
24 | #include <cstdio> |
24 | #include <cstdio> |
25 | #include <cstring> |
25 | #include <cstring> |
|
|
26 | #include <clocale> |
26 | |
27 | |
27 | #include <errno.h> |
28 | #include <errno.h> |
28 | #include <fcntl.h> |
29 | #include <fcntl.h> |
29 | #include <getopt.h> |
30 | #include <getopt.h> |
30 | #include <signal.h> |
31 | #include <signal.h> |
… | |
… | |
124 | kill_vped = SIGKILL; |
125 | kill_vped = SIGKILL; |
125 | else if (!strcasecmp (optarg, "USR1")) |
126 | else if (!strcasecmp (optarg, "USR1")) |
126 | kill_vped = SIGUSR1; |
127 | kill_vped = SIGUSR1; |
127 | else if (!strcasecmp (optarg, "USR2")) |
128 | else if (!strcasecmp (optarg, "USR2")) |
128 | kill_vped = SIGUSR2; |
129 | kill_vped = SIGUSR2; |
129 | else if (!strcasecmp (optarg, "WINCH")) |
|
|
130 | kill_vped = SIGWINCH; |
|
|
131 | else if (!strcasecmp (optarg, "INT")) |
130 | else if (!strcasecmp (optarg, "INT")) |
132 | kill_vped = SIGINT; |
131 | kill_vped = SIGINT; |
133 | else if (!strcasecmp (optarg, "ALRM")) |
132 | else if (!strcasecmp (optarg, "ALRM")) |
134 | kill_vped = SIGALRM; |
133 | kill_vped = SIGALRM; |
135 | else |
134 | else |
… | |
… | |
297 | |
296 | |
298 | if (show_version) |
297 | if (show_version) |
299 | { |
298 | { |
300 | printf (_("%s version %s (built %s %s, protocol %d.%d)\n"), get_identity (), |
299 | printf (_("%s version %s (built %s %s, protocol %d.%d)\n"), get_identity (), |
301 | VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); |
300 | VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); |
|
|
301 | printf (_("Built with kernel interface %s/%s.\n"), IFTYPE, IFSUBTYPE); |
302 | printf (_ |
302 | printf (_ |
303 | ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n" |
303 | ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n" |
304 | "See the AUTHORS file for a complete list.\n\n" |
304 | "See the AUTHORS file for a complete list.\n\n" |
305 | "vpe comes with ABSOLUTELY NO WARRANTY. This is free software,\n" |
305 | "vpe comes with ABSOLUTELY NO WARRANTY. This is free software,\n" |
306 | "and you are welcome to redistribute it under certain conditions;\n" |
306 | "and you are welcome to redistribute it under certain conditions;\n" |