* getopt -- * Parse argc/argv argument vector. * * [eventually this will replace the BSD getopt] */
| 460 | * [eventually this will replace the BSD getopt] |
| 461 | */ |
| 462 | int |
| 463 | getopt(int nargc, char * const *nargv, const char *options) |
| 464 | { |
| 465 | |
| 466 | /* |
| 467 | * We don't pass FLAG_PERMUTE to getopt_internal() since |
| 468 | * the BSD getopt(3) (unlike GNU) has never done this. |
| 469 | * |
| 470 | * Furthermore, since many privileged programs call getopt() |
| 471 | * before dropping privileges it makes sense to keep things |
| 472 | * as simple (and bug-free) as possible. |
| 473 | */ |
| 474 | return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); |
| 475 | } |
| 476 | #endif /* REPLACE_GETOPT */ |
| 477 | |
| 478 | /* |
no test coverage detected