1 | /* |
1 | /* |
2 | vpectrl.C -- the main file for vpectrl |
2 | vpectrl.C -- the main file for vpectrl |
3 | Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl> |
3 | Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl> |
4 | 2000-2002 Guus Sliepen <guus@sliepen.eu.org> |
4 | 2000-2002 Guus Sliepen <guus@sliepen.eu.org> |
5 | 2003 Marc Lehmannn <pcg@goof.com> |
5 | 2003 Marc Lehmann <pcg@goof.com> |
6 | |
6 | |
7 | This program is free software; you can redistribute it and/or modify |
7 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2 of the License, or |
9 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. |
10 | (at your option) any later version. |
… | |
… | |
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> |
|
|
32 | #include <sys/stat.h> |
31 | #include <sys/types.h> |
33 | #include <sys/types.h> |
32 | #include <unistd.h> |
34 | #include <unistd.h> |
33 | #include <signal.h> |
35 | #include <signal.h> |
34 | |
36 | |
35 | #include <openssl/rand.h> |
37 | #include <openssl/rand.h> |
… | |
… | |
294 | |
296 | |
295 | parse_options (argc, argv, envp); |
297 | parse_options (argc, argv, envp); |
296 | |
298 | |
297 | if (show_version) |
299 | if (show_version) |
298 | { |
300 | { |
299 | printf (_("%s version %s (built %s %s, protocol %d:%d)\n"), get_identity (), |
301 | printf (_("%s version %s (built %s %s, protocol %d.%d)\n"), get_identity (), |
300 | VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); |
302 | VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); |
|
|
303 | printf (_("Built with kernel interface %s/%s.\n"), IFTYPE, IFSUBTYPE); |
301 | printf (_ |
304 | printf (_ |
302 | ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n" |
305 | ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n" |
303 | "See the AUTHORS file for a complete list.\n\n" |
306 | "See the AUTHORS file for a complete list.\n\n" |
304 | "vpe comes with ABSOLUTELY NO WARRANTY. This is free software,\n" |
307 | "vpe comes with ABSOLUTELY NO WARRANTY. This is free software,\n" |
305 | "and you are welcome to redistribute it under certain conditions;\n" |
308 | "and you are welcome to redistribute it under certain conditions;\n" |