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

Function boot_env_to_howto

freebsd/kern/subr_boot.c:92–105  ·  view source on GitHub ↗

* @brief convert the env vars in howto_names into a howto mask */

Source from the content-addressed store, hash-verified

90 * @brief convert the env vars in howto_names into a howto mask
91 */
92int
93boot_env_to_howto(void)
94{
95 int i, howto;
96 char *val;
97
98 for (howto = 0, i = 0; howto_names[i].ev != NULL; i++) {
99 val = GETENV(howto_names[i].ev);
100 if (val != NULL && strcasecmp(val, "no") != 0)
101 howto |= howto_names[i].mask;
102 FREE(val);
103 }
104 return (howto);
105}
106
107/**
108 * @brief Set env vars from howto_names based on howto passed in

Callers 2

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected