Home
last modified time | relevance | path

Searched refs:ds_fd (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c95 int ds_fd = -1; variable
157 if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE) in ds_gets()
189 if (ds_fd >= 0) in ds_readbuf()
190 (void) close(ds_fd); in ds_readbuf()
191 if ((ds_fd = open(device, O_RDONLY)) >= 0 && in ds_readbuf()
192 read(ds_fd, buf, BLK_SIZE) == BLK_SIZE && in ds_readbuf()
210 } else if (ds_fd >= 0) { in ds_readbuf()
211 (void) close(ds_fd); in ds_readbuf()
212 ds_fd = -1; in ds_readbuf()
264 ds_fd, ds_realfd, ds_volcnt, ds_volno, ds_totread, ds_volpart, in ds_putinfo()
[all …]
H A Dpkgtrans.c116 extern int ds_fd; /* open file descriptor for data stream WHERE? */
791 ds_fd = creat(device, 0644); in wdsheader()
793 ds_fd = open(device, 1); in wdsheader()
795 if (ds_fd < 0) { in wdsheader()
815 (void) write(ds_fd, (hdr->text_buffer + block_cnt), BLK_SIZE); in wdsheader()
861 if (n = esystem(tmp_entry, list_fd, ds_fd)) { in wdsheader()
1192 if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) { in pkgxfer()
1296 n = esystem(cmd, -1, (options & PT_ODTSTREAM) ? ds_fd : -1); in pkgxfer()
1365 if ((ds_fd = open(dstdev.cdevice, 1)) < 0) { in pkgxfer()
/illumos-gate/usr/src/lib/libds/common/
H A Dlibds.c66 static int ds_fd = -1; variable
329 if (ds_fd >= 0) in ds_init()
332 if ((ds_fd = open(vlds_device, 0)) < 0) in ds_init()
368 if (ds_fd < 0 && (errno = ds_init()) != 0) { in ds_register()
414 if (ioctl(ds_fd, VLDS_SVC_REG, &vlds_arg) < 0) { in ds_register()
425 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg); in ds_register()
479 if (ds_fd < 0) { in ds_hdl_lookup()
493 if (ioctl(ds_fd, VLDS_HDL_LOOKUP, &vlds_arg) < 0) { in ds_hdl_lookup()
510 if (ds_fd < 0) { in ds_domain_lookup()
517 if (ioctl(ds_fd, VLDS_DMN_LOOKUP, &vlds_arg) < 0) { in ds_domain_lookup()
[all …]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dlibdiskstatus.c78 if ((dsp->ds_fd = open(path, O_RDWR)) < 0) { in disk_status_open()
137 (void) close(dsp->ds_fd); in disk_status_close()
H A Dds_impl.h48 int ds_fd; /* device file descriptor */ member
H A Dds_scsi.c187 result = uscsi_mode_select(sip->si_dsp->ds_fd, in scsi_mode_select()
200 result = uscsi_mode_select_10(sip->si_dsp->ds_fd, in scsi_mode_select()
234 result = uscsi_mode_sense(sip->si_dsp->ds_fd, page_code, in scsi_mode_sense()
243 result = uscsi_mode_sense_10(sip->si_dsp->ds_fd, in scsi_mode_sense()
270 result = uscsi_request_sense(sip->si_dsp->ds_fd, in scsi_request_sense()
294 result = uscsi_log_sense(sip->si_dsp->ds_fd, in scsi_log_sense()