Searched refs:init_path (Results 1 - 2 of 2) sorted by relevance

/freebsd-12-stable/sys/kern/
H A Dinit_main.c688 static char init_path[MAXPATHLEN] = variable
694 SYSCTL_STRING(_kern, OID_AUTO, init_path, CTLFLAG_RD, init_path, 0,
710 * Start the initial user process; try exec'ing each pathname in init_path.
754 if ((var = kern_getenv("init_path")) != NULL) {
755 strlcpy(init_path, var, sizeof(init_path));
758 free_init_path = tmp_init_path = strdup(init_path, M_TEMP);
830 printf("init: not found in path %s\n", init_path);
/freebsd-12-stable/sbin/init/
H A Dinit.c806 char init_path[PATH_MAX], *path, *path_component; local
826 nbytes = kenv(KENV_GET, "init_path", init_path, sizeof(init_path));
828 init_path_len = sizeof(init_path);
829 error = sysctlbyname("kern.init_path",
830 init_path, &init_path_len, NULL, 0);
832 emergency("failed to retrieve kern.init_path: %s",
839 * Repeat the init search logic from sys/kern/init_path.c
841 path_component = init_path;
[all...]

Completed in 112 milliseconds