Home
last modified time | relevance | path

Searched refs:rootfd (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/cmd/keyserv/
H A Dkeylogin.c117 int rootfd, bakfd, hexkeybytes; in write_rootkey() local
131 if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) { in write_rootkey()
138 if (!(rootfile = fdopen(rootfd, "w"))) { in write_rootkey()
142 close(rootfd); in write_rootkey()
H A Dchkey.c738 int rootfd, bakfd, hexkeybytes; in write_rootkey() local
752 if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) { in write_rootkey()
759 if (!(rootfile = fdopen(rootfd, "w"))) { in write_rootkey()
763 close(rootfd); in write_rootkey()
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_9p.c273 int rootfd; in pci_vt9p_init() local
300 rootfd = open(value, O_DIRECTORY); in pci_vt9p_init()
301 if (rootfd < 0) { in pci_vt9p_init()
348 if (cap_rights_limit(rootfd, &rootcap) != 0) in pci_vt9p_init()
355 if (l9p_backend_fs_init(&sc->vsc_fs_backend, rootfd, ro) != 0) { in pci_vt9p_init()
/illumos-gate/usr/src/tools/find_elf/
H A Dfind_elf.c118 static int rootfd = -1; variable
219 rootfd = fd; in process_arg()
240 rootfd = open(dir, O_RDONLY); in process_arg()
242 rootfd = open(dir, O_RDONLY|O_DIRECTORY); in process_arg()
244 if (rootfd < 0) { in process_arg()
299 if (fstatat(rootfd, path_name(p), &sb, in process_dir()
/illumos-gate/usr/src/lib/lib9p/common/backend/
H A Dfs.h35 int l9p_backend_fs_init(struct l9p_backend **backendp, int rootfd, bool ro);
H A Dfs.c3097 l9p_backend_fs_init(struct l9p_backend **backendp, int rootfd, bool ro) in l9p_backend_fs_init() argument
3161 sc->fs_rootfd = rootfd; in l9p_backend_fs_init()
3166 if (fpathconf(rootfd, _PC_XATTR_ENABLED) > 0) in l9p_backend_fs_init()