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

Lines Matching refs:openat

50 	ATF_REQUIRE((fd = openat(_dirfd, name, O_CREAT | O_TRUNC | O_WRONLY,
92 atf_tc_set_md_var(tc, "descr", "Basic positive openat testcases");
99 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/f3", O_RDONLY) >= 0);
100 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/../../f1", O_RDONLY) >= 0);
101 ATF_REQUIRE(openat(dirfd, "l3/f3", O_RDONLY) >= 0);
102 ATF_REQUIRE(openat(dirfd, "l3/../../f1", O_RDONLY) >= 0);
103 ATF_REQUIRE(openat(dirfd, "../testdir/d1/f1", O_RDONLY) >= 0);
104 ATF_REQUIRE(openat(dirfd, "lup/f1", O_RDONLY) >= 0);
105 ATF_REQUIRE(openat(dirfd, "l3/ld1", O_RDONLY) >= 0);
106 ATF_REQUIRE(openat(dirfd, "l3/lf1", O_RDONLY) >= 0);
108 ATF_REQUIRE(openat(dirfd, abspath, O_RDONLY) >= 0);
130 ATF_REQUIRE_MSG(openat(dirfd, "d1/..", O_RDONLY) >= 0, "%s",
153 ATF_REQUIRE(openat(dirfd, "d1/d2/d3/../../f1", O_RDONLY) >= 0);
154 ATF_REQUIRE(openat(dirfd, "l3/../../f1", O_RDONLY) >= 0);
155 ATF_REQUIRE(openat(dirfd, "l3/ld1", O_RDONLY) >= 0);
156 ATF_REQUIRE(openat(dirfd, "l3/lf1", O_RDONLY) >= 0);
165 atf_tc_set_md_var(tc, "descr", "Basic negative openat testcases");
173 openat(dirfd, "does-not-exist", O_RDONLY) < 0);
175 openat(dirfd, "l3/does-not-exist", O_RDONLY) < 0);
197 ATF_REQUIRE_ERRNO(ECAPMODE, openat(AT_FDCWD, "d1/f1", O_RDONLY) < 0);
200 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "..", O_RDONLY) < 0);
201 ATF_REQUIRE((subdirfd = openat(dirfd, "l3", O_RDONLY)) >= 0);
203 openat(subdirfd, "../../f1", O_RDONLY) < 0);
206 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, abspath, O_RDONLY) < 0);
209 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "lup/f1", O_RDONLY) < 0);
231 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "..", O_RDONLY) < 0);
232 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "d1/../..", O_RDONLY) < 0);
233 ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "../testdir/d1/f1", O_RDONLY) < 0);