Lines Matching refs:testfile
21 static char __thread testfile[1024];
30 if ((fd = open(testfile, O_CREAT | O_WRONLY, 0600)) < 0)
40 snprintf(&buf[0], sizeof(buf), "touch %s", testfile);
50 snprintf(&buf[0], sizeof(buf), "echo hi >> %s", testfile);
60 snprintf(&buf[0], sizeof(buf), "%s.tmp", testfile);
67 if (rename(testfile,buf) != 0)
70 if (rename(buf, testfile) != 0)
82 vnode_fd = open(testfile, O_RDWR);
84 err(1, "open of %s", testfile);
97 if (unlink(testfile) < 0)
245 snprintf(testfile, sizeof(testfile), "/tmp/kqueue-test%d.tmp",
259 unlink(testfile);