Lines Matching defs:argv
148 int main(int argc, char **argv)
167 while ((ch = getopt_long(argc, argv, "ho:bVEU:mMCc:", long_options, NULL)) != -1) {
170 usage(argv[0]);
198 usage(argv[0]);
216 usage(argv[0]);
225 usage(argv[0]);
232 usage(argv[0]);
243 fprintf(stderr, "%s: Handling of unknown classes and permissions is only valid in the base module.\n", argv[0]);
248 fprintf(stderr, "%s: -b and -m are incompatible with each other.\n", argv[0]);
253 file = argv[optind++];
255 usage(argv[0]);
265 if (read_binary_policy(&modpolicydb, file, argv[0]) == -1) {
270 fprintf(stderr, "%s: out of memory!\n", argv[0]);
278 if (read_source_policy(&modpolicydb, file, argv[0]) == -1) {
293 fprintf(stderr, "%s: out of memory\n", argv[0]);
302 fprintf(stderr, "%s: Module name %s is different than the output base filename %s\n", argv[0], mod_name, out_name);
313 fprintf(stderr, "%s: policydb_init failed\n", argv[0]);
317 fprintf(stderr, "%s: link modules failed\n", argv[0]);
321 fprintf(stderr, "%s: expand module failed\n", argv[0]);
336 fprintf(stderr, "%s: error opening %s: %s\n", argv[0], outfile, strerror(errno));
342 fprintf(stderr, "%s: error writing %s\n", argv[0], outfile);
347 fprintf(stderr, "%s: error writing %s\n", argv[0], outfile);
353 fprintf(stderr, "%s: error closing %s: %s\n", argv[0], outfile, strerror(errno));
357 fprintf(stderr, "%s: No file to write CIL was specified\n", argv[0]);