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

Function parse_dir_timeout

freebsd/kern/vfs_mountroot.c:672–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672static int
673parse_dir_timeout(char **conf)
674{
675 char *tok, *endtok;
676 long secs;
677 int error;
678
679 error = parse_token(conf, &tok);
680 if (error)
681 return (error);
682
683 secs = strtol(tok, &endtok, 0);
684 error = (secs < 0 || *endtok != '\0') ? EINVAL : 0;
685 if (!error)
686 root_mount_timeout = secs;
687 free(tok, M_TEMP);
688 return (error);
689}
690
691static int
692parse_directive(char **conf)

Callers 1

parse_directiveFunction · 0.85

Calls 3

parse_tokenFunction · 0.85
strtolFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected