Lines Matching refs:fd
2370 int fd, error;
2379 if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
2390 error = _efi_use_whole_disk(fd);
2391 (void) close(fd);
3310 int fd;
3314 if ((fd = open(path, O_RDONLY)) < 0)
3319 if (devid_get(fd, &devid) == 0) {
3320 if (devid_get_minor_name(fd, &minor) == 0)
3326 (void) close(fd);
3864 int fd;
3879 if ((fd = open(rdiskpathname, O_RDONLY|O_NDELAY)) >= 0) {
3882 if ((err = efi_alloc_and_read(fd, &vtoc)) >= 0) {
3887 (void) close(fd);
3977 int fd;
4017 if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
4027 if (efi_alloc_and_init(fd, EFI_NUMPAR, &vtoc) != 0) {
4035 (void) close(fd);
4095 if (efi_write(fd, vtoc) != 0) {
4102 (void) close(fd);
4110 (void) close(fd);