• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/tests/sys/vfs/

Lines Matching refs:openat

50 	ATF_REQUIRE((fd = openat(_dirfd, name, O_CREAT | O_TRUNC | O_WRONLY,
91 atf_tc_set_md_var(tc, "descr", "Basic positive openat testcases");
98 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/f3", O_RDONLY) >= 0);
99 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/../../f1", O_RDONLY) >= 0);
100 ATF_REQUIRE(openat(dirfd, "l3/f3", O_RDONLY) >= 0);
101 ATF_REQUIRE(openat(dirfd, "l3/../../f1", O_RDONLY) >= 0);
102 ATF_REQUIRE(openat(dirfd, "../testdir/d1/f1", O_RDONLY) >= 0);
103 ATF_REQUIRE(openat(dirfd, "lup/f1", O_RDONLY) >= 0);
104 ATF_REQUIRE(openat(dirfd, "l3/ld1", O_RDONLY) >= 0);
105 ATF_REQUIRE(openat(dirfd, "l3/lf1", O_RDONLY) >= 0);
107 ATF_REQUIRE(openat(dirfd, abspath, O_RDONLY) >= 0);
131 ATF_REQUIRE_MSG(openat(dirfd, "d1/..", O_RDONLY) >= 0, "%s",
156 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/../../f1", O_RDONLY) >= 0);
157 ATF_REQUIRE(openat(dirfd, "l3/../../f1", O_RDONLY) >= 0);
158 ATF_REQUIRE(openat(dirfd, "l3/ld1", O_RDONLY) >= 0);
159 ATF_REQUIRE(openat(dirfd, "l3/lf1", O_RDONLY) >= 0);
168 atf_tc_set_md_var(tc, "descr", "Basic negative openat testcases");
176 openat(dirfd, "does-not-exist", O_RDONLY) < 0);
178 openat(dirfd, "l3/does-not-exist", O_RDONLY) < 0);
202 ATF_REQUIRE_ERRNO(ECAPMODE, openat(AT_FDCWD, "d1/f1", O_RDONLY) < 0);
205 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "..", O_RDONLY) < 0);
206 ATF_REQUIRE((subdirfd = openat(dirfd, "l3", O_RDONLY)) >= 0);
208 openat(subdirfd, "../../f1", O_RDONLY) < 0);
211 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, abspath, O_RDONLY) < 0);
214 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "lup/f1", O_RDONLY) < 0);
238 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "..", O_RDONLY) < 0);
239 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "d1/../..", O_RDONLY) < 0);
240 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "../testdir/d1/f1", O_RDONLY) < 0);