Lines Matching refs:write
224 int out_blk; /* -\ next block address to write */
225 int out_count; /* | blocks remaining for next write */
603 printf(" -w force open with read/write flag\n");
779 res = write(sg_fd, inqBuff, inqInLen);
993 printf(" 0x02 Error counters (write)\n");
2555 "Reducing write to %d blocks per loop\n",
2578 while (((res = write(outfd, wrkPos, blocks * bs)) < 0)
3478 "write once optical disk",
3863 /* Don't worry, being very careful not to write to a none-sg file ... */
4651 res = write(sg_fd, rbBuff, rbOutLen);
4653 perror("sg_test_rwbuf: write (desc) error");
4816 res = write(sg_fd, rbBuff, rbOutLen);
4818 perror("sg_test_rwbuf: write (data) error");
4874 res = write(sg_fd, rbBuff, rbOutLen);
4876 perror("sg_test_rwbuf: write (data) error");
4923 /* Don't worry, being very careful not to write to a none-sg file ... */
5056 res = write(sg_fd, (const void *)sghp,
5060 perror("write to sg failed");
5237 intfield(pagestart + 6, 3, "Starting write precomp");
6167 while (((res = write(sg_fd, &io_hdr, sizeof(io_hdr))) < 0) &&
6236 while (((res = write(sg_fd, &io_hdr, sizeof(io_hdr))) < 0) &&
6659 while (((res = write(outfd, wrkPos, blocks * bs)) < 0)
6863 /* if write would be out of sequence then wait */
6894 /* skip actual write operation */
6973 while (((res = write(clp->outfd, rep->buffp,
6983 fprintf(stderr, "error normal write, %s\n",
7130 /* N.B. This re-write could now be out of write sequence */
7172 while (((res = write(rep->wr ? rep->outfd : rep->infd, hp,