* getopt -- * Parse argc/argv argument vector. * * [eventually this will replace the BSD getopt] */
| 533 | * [eventually this will replace the BSD getopt] |
| 534 | */ |
| 535 | int getopt(int nargc, char* const* nargv, char const* options) |
| 536 | { |
| 537 | |
| 538 | /* |
| 539 | * We don't pass FLAG_PERMUTE to getopt_internal() since |
| 540 | * the BSD getopt(3) (unlike GNU) has never done this. |
| 541 | * |
| 542 | * Furthermore, since many privileged programs call getopt() |
| 543 | * before dropping privileges it makes sense to keep things |
| 544 | * as simple (and bug-free) as possible. |
| 545 | */ |
| 546 | return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); |
| 547 | } |
| 548 | #endif /* REPLACE_GETOPT */ |
| 549 | |
| 550 | /* |
nothing calls this directly
no test coverage detected