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

/osnet-11/usr/src/lib/libpkg/common/
H A Ddstream.c99 int ds_fd = -1; variable
168 if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE)
200 if (ds_fd >= 0)
201 (void) close(ds_fd);
202 if ((ds_fd = open(device, O_RDONLY)) >= 0 &&
203 read(ds_fd, buf, BLK_SIZE) == BLK_SIZE &&
221 } else if (ds_fd >= 0) {
222 (void) close(ds_fd);
223 ds_fd = -1;
274 ds_fd, ds_realf
[all...]
H A Dpkgtrans.c121 extern int ds_fd; /* open file descriptor for data stream WHERE? */
948 ds_fd = creat(device, 0644);
950 ds_fd = open(device, 1);
952 if (ds_fd < 0) {
972 write(ds_fd, (hdr->text_buffer + block_cnt), BLK_SIZE);
1153 if (n = esystem(tmp_entry, list_fd, ds_fd)) {
1488 if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) {
1585 n = esystem(cmd, -1, (options & PT_ODTSTREAM) ? ds_fd : -1);
1654 if ((ds_fd = open(dstdev.cdevice, 1)) < 0) {
/osnet-11/usr/src/lib/libds/common/
H A Dlibds.c65 static int ds_fd = -1; variable
335 if (ds_fd >= 0)
338 if ((ds_fd = open(vlds_device, 0)) < 0)
374 if (ds_fd < 0 && (errno = ds_init()) != 0) {
420 if (ioctl(ds_fd, VLDS_SVC_REG, &vlds_arg) < 0) {
431 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg);
485 if (ds_fd < 0) {
499 if (ioctl(ds_fd, VLDS_HDL_LOOKUP, &vlds_arg) < 0) {
516 if (ds_fd < 0) {
523 if (ioctl(ds_fd, VLDS_DMN_LOOKU
[all...]
/osnet-11/usr/src/lib/fm/libdiskstatus/common/
H A Dds_impl.h46 int ds_fd; /* device file descriptor */ member in struct:disk_status
H A Dlibdiskstatus.c79 if ((dsp->ds_fd = open(path, O_RDWR)) < 0) {
137 (void) close(dsp->ds_fd);
H A Dds_scsi.c178 result = uscsi_mode_select(sip->si_dsp->ds_fd,
191 result = uscsi_mode_select_10(sip->si_dsp->ds_fd,
225 result = uscsi_mode_sense(sip->si_dsp->ds_fd, page_code,
234 result = uscsi_mode_sense_10(sip->si_dsp->ds_fd,
261 result = uscsi_request_sense(sip->si_dsp->ds_fd,
285 result = uscsi_log_sense(sip->si_dsp->ds_fd,

Completed in 48 milliseconds