Lines Matching refs:ds_fd

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()
272 &ds_fd, &ds_realfd, &ds_volcnt, &ds_volno, &ds_totread, in ds_getinfo()
285 return (ds_fd >= 0 ? B_TRUE : B_FALSE); in ds_fd_open()
301 if (ds_fd >= 0) in ds_init()
305 if ((ds_fd = open(device, O_RDONLY)) < 0) { in ds_init()
327 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) { in ds_init()
352 while (read(ds_fd, ds_header, BLK_SIZE) > 0) in ds_init()
359 if ((ds_fd = open(norewind, O_RDONLY)) < 0) { in ds_init()
375 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) { in ds_init()
401 if (read(ds_fd, ds_header + header_size, BLK_SIZE) != in ds_init()
504 if (n = esystem(cmd, ds_fd, -1)) { in ds_init()
627 if ((ds_fd = open(device, O_RDONLY)) < 0) in ds_getnextvol()
651 if (n = esystem(cmd, ds_fd, -1)) { in ds_skip()
694 if (n = esystem(cmd, ds_fd, -1)) { in ds_next()
744 while ((amtread = read(ds_fd, readbuf, BLK_SIZE)) != 0) { in BIO_ds_dump()
804 oflag = fcntl(ds_fd, F_GETFL, 0); in ds_ginit()
813 (void) fcntl(ds_fd, F_DUPFD, fd); in ds_ginit()
828 ds_realfd = ds_fd; in ds_ginit()
829 ds_fd = fileno(ds_pp); in ds_ginit()
851 ds_fd = -1; in ds_close()
852 } else if (ds_fd >= 0) { in ds_close()
853 (void) close(ds_fd); in ds_close()
854 ds_fd = -1; in ds_close()