Lines Matching defs:fname
240 char fname[] = "test.txt";
243 int fd = open(fname, O_CREAT | O_WRONLY | O_TRUNC, 0644);
251 expect<int>(0, [=]{return access(fname, F_OK);}, "access F_OK");
252 expect<int>(0, [=]{return access(fname, R_OK);}, "access R_OK");
253 expect<int>(0, [=]{return access(fname, W_OK);}, "access W_OK");
256 expect<bool>(true, [=]{return access(fname, X_OK) != 0;}, "access X_OK");
259 int s = stat(fname, &stat_buf);
275 int fd = open(fname, O_RDONLY);
296 int fd = open(fname, O_RDONLY);
305 int un = unlink(fname);