Lines Matching refs:ds_fd

99 int	ds_fd = -1;
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_realfd, ds_volcnt, ds_volno, ds_totread, ds_volpart,
284 &ds_fd, &ds_realfd, &ds_volcnt, &ds_volno, &ds_totread,
292 * Return true if the file descriptor (ds_fd) is open on the package stream.
297 return (ds_fd >= 0 ? B_TRUE : B_FALSE);
313 if (ds_fd >= 0)
317 if ((ds_fd = open(device, O_RDONLY)) < 0) {
339 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
364 while (read(ds_fd, ds_header, BLK_SIZE) > 0)
371 if ((ds_fd = open(norewind, O_RDONLY)) < 0) {
387 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
413 if (read(ds_fd, ds_header + header_size, BLK_SIZE) !=
518 if (n = esystem(cmd, ds_fd, -1)) {
645 if ((ds_fd = open(device, O_RDONLY)) < 0)
669 if (n = esystem(cmd, ds_fd, -1)) {
712 if (n = esystem(cmd, ds_fd, -1)) {
740 * Description: Dumps all data from the static 'ds_fd' file handle into
762 while ((amtread = read(ds_fd, readbuf, BLK_SIZE)) != 0) {
842 oflag = fcntl(ds_fd, F_GETFL, 0);
845 if (fstat(ds_fd, &st_buf) == -1)
891 if (fstat(ds_fd, &orig_st_buf) < 0) {
896 (void) close(ds_fd);
897 if ((ds_fd = open(device, nflag, 0666)) != -1) {
898 if (ioctl(ds_fd, STREAMON) != -1) {
899 (void) close(ds_fd);
902 if ((ds_fd =
917 read(ds_fd, buf, BLK_SIZE);
948 fcntl(ds_fd, F_DUPFD, fd);
963 ds_realfd = ds_fd;
964 ds_fd = fileno(ds_pp);
996 if ((n = write(ds_fd, ptr,
1020 ds_fd = -1;
1021 } else if (ds_fd >= 0) {
1022 (void) close(ds_fd);
1023 ds_fd = -1;