/src/sbin/mount_qemufwcfg/ |
virtdir.h | 55 char *rootdir; /* root directory of virtual fs */ member in struct:virtdir_t
|
virtdir.c | 104 virtdir_init(virtdir_t *tp, const char *rootdir, const struct stat *d, 116 if (rootdir != NULL) { 117 tp->rootdir = estrdup(rootdir);
|
/src/share/examples/refuse/virtdir/ |
virtdir.h | 55 char *rootdir; /* root directory of virtual fs */ member in struct:virtdir_t
|
virtdir.c | 115 virtdir_init(virtdir_t *tp, const char *rootdir, struct stat *d, struct stat *f, struct stat *l) 126 if (rootdir != NULL) { 127 tp->rootdir = strdup(rootdir); 285 return tp->rootdir;
|
/src/share/examples/refuse/icfs/ |
icfs.c | 528 dodir(virtdir_t *tp, char *rootdir, const char *subdir) 547 virtdir_init(tp, rootdir, &dir, &f, &l); 550 (void) snprintf(name, sizeof(name), "%s/%s", rootdir, subdir); 555 len = strlen(tp->rootdir); 560 (void) snprintf(name, sizeof(name), "%s%s%s%s%s", rootdir, (subdir[0] == 0x0) ? "" : "/", subdir, "/", dp->d_name); 591 dodir(tp, rootdir, &name[len + 1]);
|
/src/usr.sbin/autofs/ |
automount.c | 148 static char rootdir[] = "/"; local in function:mount_unmount 186 rootdir, mntbuf, nitems);
|
/src/sbin/init/ |
init.c | 207 static char rootdir[PATH_MAX]; variable in typeref:typename:char[] 854 if (chroot(rootdir) != 0) { 856 rootdir); 935 * The Real(tm) /etc/rc now. Global variable rootdir will tell us 1302 if (chroot(rootdir) != 0) { 1304 sp->se_getty_argv[0], rootdir); 1760 (void)snprintf(path, sizeof(path), "%s/%s", rootdir, _PATH_TTYS); 1828 if (sysctlbyname("init.root", rootdir, &len, NULL, 0) == -1) { 1851 if (rootdir[len] != '\0' || strlen(rootdir) != len - 1) [all...] |
/src/libexec/httpd/ |
bozohttpd.h | 101 char *rootdir; /* root directory */ member in struct:bozohttpd_t
|
bozohttpd.c | 2695 httpd->rootdir = bozostrdup(httpd, NULL, chrootdir); 2696 if (chdir(httpd->rootdir) == -1) 2697 bozoerr(httpd, 1, "chdir(%s): %s", httpd->rootdir, 2699 if (chroot(httpd->rootdir) == -1) 2700 bozoerr(httpd, 1, "chroot(%s): %s", httpd->rootdir,
|
/src/sbin/newfs_udf/ |
udf_core.h | 145 uint32_t fsd, rootdir, vat; member in struct:udf_disclayout
|
udf_core.c | 439 * Pick fixed logical space sector numbers for main FSD, rootdir and 482 layout.rootdir = mpos; 487 layout.rootdir = mpos; 490 /* pos and mpos now refer to the rootdir block */ 1619 fsd->rootdir_icb.loc.lb_num = udf_rw32(layout.rootdir); 2759 root_icb.loc.lb_num = udf_rw32(layout.rootdir); 2776 /* rootdir has explicit only one link on creation; '..' is no link */ 2895 assert((layout.rootdir < 2) && (layout.fsd < 2)); 5022 udf_mark_allocated(layout.rootdir, context.metadata_part, 1); 5025 layout.rootdir, context.metadata_part, 1) [all...] |
/src/sys/kern/ |
vfs_lookup.c | 524 * Initializes the rootdir and erootdir state and returns a reference 534 struct vnode *rootdir, *erootdir, *curdir, *startdir; local in function:namei_getstartdir 549 rootdir = rootvnode; 551 rootdir = cwdi->cwdi_rdir; 562 /* explicit reference to real rootdir */ 582 startdir = rootdir; 586 state->ndp->ni_rootdir = rootdir; 592 * Must hold references to rootdir and erootdir while we're running. 609 * getstartdir. Initializes the rootdir and erootdir state and
|