Searched defs:search_file (Results 1 - 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/ |
H A D | tazmo.c | 1334 int search_file; local 1341 if ((search_file = open(devpath, O_RDONLY | O_NDELAY)) < 0) 1347 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) { 1348 (void) close(search_file); 1358 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) { 1359 (void) close(search_file); 1362 (void) close(search_file);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 1597 int search_file; local 1606 if ((search_file = open_disk(devpath, O_RDWR | O_NDELAY)) < 0) { 1612 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) { 1613 (void) close(search_file); 1622 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) { 1623 (void) close(search_file); 1631 ret = ioctl(search_file, DKIOCREMOVABLE, &isremovable); 1633 (void) close(search_file); 1638 if (ioctl(search_file, DKIOCGMEDIAINFO, &mediainfo) == -1) { 1659 if (ioctl(search_file, DKIOCGMEDIAINF [all...] |
Completed in 59 milliseconds