Lines Matching refs:read
477 if ((i = read(fd, buf, size)) == size) {
490 read(fd, cp, (int)secsize) < 0) {
1321 if ((io_res = read(fsreadfd, cleanbuf.b_un.b_buf, size)) != size) {
2316 * No one should call dirty() in read only mode.
2376 pwarn("%s: Unable to read Disk geometry", disk);
2445 * Since both attempts to read the label failed, we're
2488 * read. Doing an llseek( , , SEEK_END) would probably work
2503 * First, see if we can read the device at all, just to
2509 ((read(fd, buf, DEV_BSIZE)) == -1))
2514 * to find the first read that fails (this isn't strictly
2534 (read(fd, buf, DEV_BSIZE) != DEV_BSIZE))
2560 ((read(fd, buf, DEV_BSIZE)) != DEV_BSIZE))
2566 /* the size is the last successfully read sector offset plus one */