Searched refs:ds_fd (Results 1 – 6 of 6) sorted by relevance
/titanic_44/usr/src/lib/libpkg/common/ |
H A D | dstream.c | 92 int ds_fd = -1; variable 155 if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE) in ds_gets() 187 if (ds_fd >= 0) in ds_readbuf() 188 (void) close(ds_fd); in ds_readbuf() 189 if ((ds_fd = open(device, O_RDONLY)) >= 0 && in ds_readbuf() 190 read(ds_fd, buf, BLK_SIZE) == BLK_SIZE && in ds_readbuf() 208 } else if (ds_fd >= 0) { in ds_readbuf() 209 (void) close(ds_fd); in ds_readbuf() 210 ds_fd = -1; in ds_readbuf() 262 ds_fd, ds_realfd, ds_volcnt, ds_volno, ds_totread, ds_volpart, in ds_putinfo() [all …]
|
H A D | pkgtrans.c | 122 extern int ds_fd; /* open file descriptor for data stream WHERE? */ 942 ds_fd = creat(device, 0644); in wdsheader() 944 ds_fd = open(device, 1); in wdsheader() 946 if (ds_fd < 0) { in wdsheader() 966 (void) write(ds_fd, (hdr->text_buffer + block_cnt), BLK_SIZE); in wdsheader() 1141 if (n = esystem(tmp_entry, list_fd, ds_fd)) { in wdsheader() 1484 if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) { in pkgxfer() 1588 n = esystem(cmd, -1, (options & PT_ODTSTREAM) ? ds_fd : -1); in pkgxfer() 1657 if ((ds_fd = open(dstdev.cdevice, 1)) < 0) { in pkgxfer()
|
/titanic_44/usr/src/lib/libds/common/ |
H A D | libds.c | 66 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 …]
|
/titanic_44/usr/src/lib/fm/libdiskstatus/common/ |
H A D | libdiskstatus.c | 78 if ((dsp->ds_fd = open(path, O_RDWR)) < 0) { in disk_status_open() 136 (void) close(dsp->ds_fd); in disk_status_close()
|
H A D | ds_impl.h | 49 int ds_fd; /* device file descriptor */ member
|
H A D | ds_scsi.c | 181 result = uscsi_mode_select(sip->si_dsp->ds_fd, in scsi_mode_select() 194 result = uscsi_mode_select_10(sip->si_dsp->ds_fd, in scsi_mode_select() 228 result = uscsi_mode_sense(sip->si_dsp->ds_fd, page_code, in scsi_mode_sense() 237 result = uscsi_mode_sense_10(sip->si_dsp->ds_fd, in scsi_mode_sense() 264 result = uscsi_request_sense(sip->si_dsp->ds_fd, in scsi_request_sense() 288 result = uscsi_log_sense(sip->si_dsp->ds_fd, in scsi_log_sense()
|