Lines Matching refs:mode
156 static const char *mode[] = {
170 * may follow the mode-string whenever
173 for (i = 0; i < __arraycount(mode); i++) {
176 f = fopen(path, mode[i]);
184 atf_tc_fail_nonfatal("opened file as '%s'", mode[i]);
208 atf_tc_set_md_var(tc, "descr", "Test that append-mode works");
254 static const char *mode[] = {
269 for (i = 0; i < __arraycount(mode); i++) {
271 f = fopen(path, mode[i]);
278 atf_tc_fail_nonfatal("failed to open file as %s", mode[i]);
310 atf_tc_set_md_var(tc, "descr", "Test fopen(3) with 'f' mode");
315 static const char *mode[] = { "rf", "r+f", "wf", "w+f", "af", "a+f" };
323 for (j = 0; j < __arraycount(mode); j++) {
326 f = fopen(devs[i], mode[j]);
335 devs[i], mode[j]);
359 * at the start, except for append-mode.