Searched refs:bootfd (Results 1 – 5 of 5) sorted by relevance
/freebsd/usr.sbin/bhyveload/ |
H A D | bhyveload.c | 763 loader_open(int bootfd) in loader_open() argument 773 assert(bootfd >= 0 || explicit_loader_fd >= 0); in loader_open() 777 fd = openat(bootfd, loader, O_RDONLY | O_RESOLVE_BENEATH); in loader_open() 793 int bootfd, opt, error, memflags, need_reinit; in main() local 795 bootfd = -1; in main() 880 bootfd = open("/boot", O_DIRECTORY | O_PATH); in main() 881 if (bootfd == -1) in main() 889 if (caph_rights_limit(bootfd, cap_rights_init(&rights, in main() 923 loader_open(bootfd); in main()
|
/freebsd/libexec/rbootd/ |
H A D | utils.c | 374 rtmp->bootfd = -1; in NewConn() 399 if (rtmp->bootfd >= 0) { in FreeConn() 400 (void) close(rtmp->bootfd); in FreeConn() 401 rtmp->bootfd = -1; in FreeConn()
|
H A D | rmpproto.c | 352 if ((rconn->bootfd = open(filename, O_RDONLY, 0600)) < 0) { in SendBootRepl() 441 if (lseek(oldconn->bootfd, (off_t)size, SEEK_SET) < 0) { in SendReadRepl() 452 if ((size = read(oldconn->bootfd, &rpl->r_rrpl.rmp_data, in SendReadRepl()
|
H A D | defs.h | 118 int bootfd; /* open boot file */ member
|
/freebsd/usr.sbin/bsdinstall/partedit/ |
H A D | gpart_ops.c | 417 int bootfd; in gpart_bootcode() local 435 bootfd = open(bootcode, O_RDONLY); in gpart_bootcode() 436 if (bootfd < 0) { in gpart_bootcode() 443 bootsize = lseek(bootfd, 0, SEEK_END); in gpart_bootcode() 445 lseek(bootfd, 0, SEEK_SET); in gpart_bootcode() 448 bytes += read(bootfd, boot + bytes, bootsize - bytes); in gpart_bootcode() 449 close(bootfd); in gpart_bootcode()
|