Lines Matching refs:buf
89 void *buf;
122 void *buf; /* do the I/O here */
130 bread(void* buf, long nbytes)
136 p = (long*)buf;
137 end = (char*)buf + nbytes;
176 char buf[8192];
185 while ((size = read(sfd, buf, 8192)) > 0) {
186 if (write(dfd, buf, size) < size) return -1;
282 state->buf = NULL;
285 char buf[8192];
289 sprintf(buf, "/tmp/%d", (int)getpid());
290 s = (char*)malloc(strlen(state->filename) + strlen(buf) + 1);
301 CHK(state->buf = mmap(0, state->nbytes, PROT_READ,
329 bread(state->buf, state->nbytes);
342 if (state->buf) munmap(state->buf, state->nbytes);