Lines Matching refs:out
166 if (out.flags & (ISSEEK | ISPIPE)) { in pos_out()
168 if (lseek(out.fd, seek_offset(&out), SEEK_CUR) == -1 && in pos_out()
170 err(1, "%s", out.name); in pos_out()
175 if (out.offset < 0) in pos_out()
179 if (out.flags & NOREAD) { in pos_out()
181 t_op.mt_count = out.offset; in pos_out()
183 if (ioctl(out.fd, MTIOCTOP, &t_op) == -1) in pos_out()
184 err(1, "%s", out.name); in pos_out()
189 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
190 if ((n = read(out.fd, out.db, out.dbsz)) > 0) in pos_out()
194 err(1, "%s", out.name); in pos_out()
203 if (ioctl(out.fd, MTIOCTOP, &t_op) == -1) in pos_out()
204 err(1, "%s", out.name); in pos_out()
206 while (cnt++ < out.offset) { in pos_out()
207 n = write(out.fd, out.db, out.dbsz); in pos_out()
209 err(1, "%s", out.name); in pos_out()
210 if (n != out.dbsz) in pos_out()
211 errx(1, "%s: write failure", out.name); in pos_out()