Lines Matching defs:fname
90 static int has_file(const char *fname, int required)
94 ret = stat(fname, &buf);
99 fname);
103 tst_brkm(TBROK | TERRNO, cleanup, "stat %s", fname);
124 static unsigned long parse_entry(const char *fname, const char *entry)
132 f = fopen(fname, "r");
146 char fname[128];
148 sprintf(fname, "/proc/%u/io", getpid());
149 return parse_entry(fname, entry);
195 * @fname: name of file to test
201 static void read_testfile(int do_readahead, const char *fname, size_t fsize,
214 fd = open(fname, O_RDONLY);
216 tst_brkm(TBROK | TERRNO, cleanup, "Failed to open %s", fname);