Lines Matching defs:nbytes
242 blockread(int fd, size_t secsize, void *buf, size_t nbytes, off_t offset)
251 assert(nbytes <= 512);
254 return pread(fd, buf, nbytes, offset);
261 memcpy(buf, &iobuf[mod], nbytes);
264 return nr == (off_t)secsize ? (off_t)nbytes : -1;
271 blockwrite(int fd, size_t secsize, const void *buf, size_t nbytes,
281 assert(nbytes <= 512);
284 return pwrite(fd, buf, nbytes, offset);
291 memcpy(&iobuf[mod], buf, nbytes);
296 return nr == (off_t)secsize ? (off_t)nbytes : -1;