Lines Matching refs:openat
46 #define FILE "dir/openat"
47 #define BASEFILE "openat"
53 atf_tc_set_md_var(tc, "descr", "See that openat works with fd");
65 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) != -1);
74 "See that openat works with fd as AT_FDCWD");
85 ATF_REQUIRE((fd = openat(AT_FDCWD, BASEFILE, O_RDONLY, 0)) != -1);
93 "See that openat fails with fd as AT_FDCWD and bad path");
100 ATF_REQUIRE((fd = openat(AT_FDCWD, FILEERR, O_RDONLY, 0)) == -1);
106 atf_tc_set_md_var(tc, "descr", "See that openat fail with bad path");
115 ATF_REQUIRE((fd = openat(dfd, FILEERR, O_RDONLY, 0)) == -1);
122 atf_tc_set_md_var(tc, "descr", "See that openat fails with bad fdat");
135 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) == -1);
142 atf_tc_set_md_var(tc, "descr", "See that openat fails with fd as -1");
152 ATF_REQUIRE((fd = openat(-1, FILE, O_RDONLY, 0)) == -1);