Lines Matching defs:buf
325 char buf[PATHBUFLEN];
326 snprintf(buf, sizeof buf, TMPDIR "~poison%d",tmpcount++);
327 fd = open(buf, O_CREAT|O_RDWR, 0600);
329 unlink(buf);
335 int playfile(char *buf)
338 if (buf[0] == 0)
339 snprintf(buf, PATHBUFLEN, TMPDIR "~poison%d", tmpcount++);
340 fd = open(buf, O_CREAT|O_RDWR|O_TRUNC, 0600);
406 static char *ndesc(char *buf, char *name, char *add)
408 snprintf(buf, 100, "%s %s", name, add);
409 return buf;
443 char buf[128];
445 optionalerr("explicit read after poison", read(fd, buf, sizeof buf) < 0);
589 char buf[10];
603 if (pread(fd, buf, 10, 0) != 0)
809 char buf[PATHBUFLEN];
815 snprintf(buf, PATHBUFLEN, "%s/test%d", hugetlbfsdir, tmpcount++);
816 page = alloc_filebacked_hugepage(buf, HPS, 0, &fd);
820 free_filebacked_hugepage(page, HPS, fd, buf);