|
|
1.1 root 1: /* uucheckname
2: * Synopsis:
3: * checkperms [-s] [-v]
4: * -s silent
5: * -v verbose
6: *
7: * Return values:
8: * 0 on no errors or warnings
9: * 1 if there was at least one warning
10: * 2 if there was an error
11: *
12: * $ uucheckname -errors -warnings 9
13: * ...or equivalently...
14: * $ uucheckname
15: */
16:
17: #define MAIN
18: #include "uucheck.h"
19: #include "uucheckname.h"
20: #undef MAIN
21:
22: main(argc, argv)
23: int argc;
24: char *argv[];
25: {
26: warning = FALSE;
27: error = FALSE;
28:
29: parse_args(argc, argv);
30:
31: uucheckname();
32:
33: if (!error && !warning) {
34: VERBOSE("Site name is OK.\n");
35: } /* if no errors or warnings */
36:
37: /* Set the correct exit value. */
38: /* 2 on error, 1 on warning only, 0 on no failures */
39: EXIT;
40: } /* main() */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.