Lines Matching refs:fopen
47 static const char *path = "fopen";
155 atf_tc_set_md_var(tc, "descr", "Test errors from fopen(3)");
167 f = fopen(path, "w+");
180 f = fopen(path, mode[i]);
195 ATF_REQUIRE_ERRNO(EISDIR, fopen("/usr/bin", "w") == NULL);
198 ATF_REQUIRE_ERRNO(ENOENT, fopen("/a/b/c/d/e/f", "r") == NULL);
201 ATF_REQUIRE_ERRNO(ENAMETOOLONG, fopen(buf, "r+") == NULL);
222 f = fopen(path, "w+");
228 f = fopen(path, "a");
233 f = fopen(path, "r");
250 atf_tc_set_md_var(tc, "descr", "Test fopen(3) modes");
266 f = fopen(path, "w+");
276 f = fopen(path, mode[i]);
359 atf_tc_set_md_var(tc, "descr", "Test fopen(3) with NULL path (without "
375 ATF_REQUIRE_ERRNO(EFAULT, fopen(NULL, "r") == NULL);
381 atf_tc_set_md_var(tc, "descr", "Test fopen(3) with NULL path (with "
398 fp = fopen(NULL, "r");
407 atf_tc_set_md_var(tc, "descr", "Test permissions with fopen(3)");
415 ATF_REQUIRE_ERRNO(EACCES, fopen("/bin/ls", "a+") == NULL);
418 ATF_REQUIRE_ERRNO(EACCES, fopen("/bin/ls", "w+") == NULL);
424 atf_tc_set_md_var(tc, "descr", "Test fopen(3) with 'f' mode");
440 f = fopen(devs[i], mode[j]);
464 atf_tc_set_md_var(tc, "descr", "Test fopen(3) with 'l' mode");
478 f = fopen(linkpath, mode[j]);
512 f = fopen(path, "w+");
522 f = fopen(path, "r");
528 f = fopen(path, "a");
563 f = fopen(path, "w+");
573 f = fopen(path, "r");