Searched refs:rootfd (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keylogin.c | 117 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 D | chkey.c | 738 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/common/ |
H A D | pci_virtio_9p.c | 272 int rootfd; in pci_vt9p_init() local 299 rootfd = open(value, O_DIRECTORY); in pci_vt9p_init() 300 if (rootfd < 0) { in pci_vt9p_init() 347 if (cap_rights_limit(rootfd, &rootcap) != 0) in pci_vt9p_init() 354 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 D | find_elf.c | 118 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 D | fs.h | 35 int l9p_backend_fs_init(struct l9p_backend **backendp, int rootfd, bool ro);
|
H A D | fs.c | 3097 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()
|