MCPcopy Create free account
hub / github.com/coreboot/coreboot / getopt

Function getopt

payloads/libpayload/libc/getopt_long.c:462–475  ·  view source on GitHub ↗

* getopt -- * Parse argc/argv argument vector. * * [eventually this will replace the BSD getopt] */

Source from the content-addressed store, hash-verified

460 * [eventually this will replace the BSD getopt]
461 */
462int
463getopt(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/*

Callers 10

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
process_setFunction · 0.85
process_getFunction · 0.85
process_removeFunction · 0.85
mainFunction · 0.85
parse_nvramtool_argsFunction · 0.85
handle_optional_argFunction · 0.85
mainFunction · 0.85

Calls 1

getopt_internalFunction · 0.85

Tested by

no test coverage detected