Lines Matching refs:unlink
43 static char path[] = "unlink";
48 atf_tc_set_md_var(tc, "descr", "A basic test of unlink(2)");
63 ATF_REQUIRE(unlink(path) == 0);
72 (void)unlink(path);
78 atf_tc_set_md_var(tc, "descr", "Test error conditions of unlink(2)");
88 ATF_REQUIRE_ERRNO(EBUSY, unlink("/") == -1);
91 ATF_REQUIRE_ERRNO(ENAMETOOLONG, unlink(buf) == -1);
94 ATF_REQUIRE_ERRNO(ENOENT, unlink("/a/b/c/d/e/f/g/h/i/j/k/l/m") == -1);
99 (void)unlink(path);
105 atf_tc_set_md_var(tc, "descr", "Test unlink(2) for a FIFO");
112 ATF_REQUIRE(unlink(path) == 0);
120 (void)unlink(path);
126 atf_tc_set_md_var(tc, "descr", "Test permissions with unlink(2)");
135 rv = unlink("/etc");
138 "unlink() returned %d, errno %d", rv, errno);
141 ATF_REQUIRE_ERRNO(EACCES, unlink("/root/.profile") == -1);
146 (void)unlink(path);