|
|
1.1 ! root 1: /* checkperms ! 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: * $ checkperms -errors -warnings 9 ! 13: * ...or equivalently... ! 14: * $ checkperms ! 15: */ ! 16: ! 17: #define MAIN ! 18: #include "checkperms.h" ! 19: #include "monitor.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: yyparse(); ! 32: ! 33: /* Set the correct exit value. */ ! 34: /* 2 on error, 1 on warning only, 0 on no failures */ ! 35: EXIT; ! 36: ! 37: } /* main() */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.