3 * This material, written by Henry Spencer, was released by him
4 * into the public domain and is thus not subject to any copyright.
7 #include <capsicum_helpers.h>
15 main(int argc, char *argv[])
20 if (caph_limit_stdio() < 0 || caph_enter() < 0)
23 optind = 2; /* Past the program name and the option letters. */
24 while ((c = getopt(argc, argv, argv[1])) != -1)
27 status = 1; /* getopt routine gave message */
31 printf(" -%c %s", c, optarg);
37 for (; optind < argc; optind++)
38 printf(" %s", argv[optind]);