Lines Matching defs:path
49 static char path[] = "link";
62 (void)strlcat(buf, path, sizeof(buf));
83 fd = open(path, O_RDWR | O_CREAT, 0600);
88 ATF_REQUIRE(stat(path, &sa) == 0);
89 ATF_REQUIRE(link(path, pathl) == 0);
90 ATF_REQUIRE(stat(path, &sb) == 0);
96 ATF_REQUIRE(unlink(path) == 0);
102 (void)unlink(path);
120 fd = open(path, O_RDWR | O_CREAT, 0600);
126 ATF_REQUIRE(link(path, pathl) == 0);
127 ATF_REQUIRE_ERRNO(EEXIST, link(path, pathl) == -1);
133 ATF_REQUIRE_ERRNO(ENOENT, link(path, "/d/c/b/a") == -1);
136 ATF_REQUIRE_ERRNO(ENOENT, link("/a/b/c/d", path) == -1);
142 ATF_REQUIRE_ERRNO(EFAULT, link(path, (const char *)-1) == -1);
148 ATF_REQUIRE(unlink(path) == 0);
154 (void)unlink(path);
195 fd = open(path, O_RDWR | O_CREAT, 0600);
200 ATF_REQUIRE(link(path, pathl) == 0);
201 ATF_REQUIRE(stat(path, &sa) == 0);
214 ATF_REQUIRE(unlink(path) == 0);
220 (void)unlink(path);