MCPcopy Create free account
hub / github.com/F-Stack/f-stack / parse_token

Function parse_token

freebsd/kern/vfs_mountroot.c:490–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490static int
491parse_token(char **conf, char **tok)
492{
493 char *p;
494 size_t len;
495 int error;
496
497 *tok = NULL;
498 error = parse_skipto(conf, CC_NONWHITESPACE);
499 if (error)
500 return (error);
501 p = *conf;
502 error = parse_skipto(conf, CC_WHITESPACE);
503 len = *conf - p;
504 *tok = malloc(len + 1, M_TEMP, M_WAITOK | M_ZERO);
505 bcopy(p, *tok, len);
506 return (0);
507}
508
509static void
510parse_dir_ask_printenv(const char *var)

Callers 6

parse_dir_mdFunction · 0.85
parse_dir_onfailFunction · 0.85
parse_dir_timeoutFunction · 0.85
parse_directiveFunction · 0.85
parse_mountFunction · 0.85
vfs_mountroot_conf0Function · 0.85

Calls 2

parse_skiptoFunction · 0.85
mallocFunction · 0.85

Tested by

no test coverage detected