Lines Matching defs:fd
212 int fd, i;
242 if ((fd = g_object_open(ses_path, O_NDELAY | O_RDWR)) == -1) {
246 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t)&nobj) < 0) {
247 (void) close(fd);
251 (void) close(fd);
260 (void) close(fd);
266 if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t)all_objp) < 0) {
267 (void) close(fd);
282 (void) close(fd);
295 if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t)&obj) < 0) {
296 (void) close(fd);
321 if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t)&obj) < 0) {
322 (void) close(fd);
350 if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t)&obj) < 0) {
351 (void) close(fd);
374 if (ioctl(fd, SESIOC_SETOBJSTAT, (caddr_t)&obj) < 0) {
375 (void) close(fd);
381 (void) close(fd);
404 int err, fd, front_index, rear_index, offset;
525 if ((fd = g_object_open(ses_path, O_NDELAY | O_RDWR)) == -1) {
531 if (err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH,
533 (void) close(fd);
543 (void) close(fd);
565 (void) close(fd);
575 (void) close(fd);
584 (void) close(fd);
595 (void) close(fd);
604 (void) close(fd);
614 (void) close(fd);
621 (void) close(fd);
630 (void) close(fd);
687 if (err = g_scsi_send_diag_cmd(fd,
689 (void) close(fd);
695 (void) close(fd);