Searched refs:unlink (Results 1 - 25 of 681) sorted by relevance

1234567891011>>

/freebsd-13-stable/bin/rm/tests/
H A Drm_test.sh31 atf_set "descr" "unlink correctly handles -filename"
36 atf_check -s exit:0 unlink foo
37 atf_check -s exit:0 unlink -- bar
38 atf_check -s exit:0 unlink -foo
39 atf_check -s exit:0 unlink -- -bar
/freebsd-13-stable/contrib/pjdfstest/tests/unlink/
H A D13.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/13.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns EFAULT if the path argument points outside the process's allocated address space"
12 expect EFAULT unlink NULL
13 expect EFAULT unlink DEADCODE
H A D02.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/02.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters"
16 expect 0 unlink ${nx}
17 expect ENOENT unlink ${nx}
18 expect ENAMETOOLONG unlink ${nxx}
H A D03.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/03.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns ENAMETOOLONG if an entire path name exceeded {PATH_MAX} characters"
18 expect 0 unlink ${nx}
19 expect ENOENT unlink ${nx}
20 expect ENAMETOOLONG unlink ${nxx}
H A D04.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/04.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns ENOENT if the named file does not exist"
16 expect 0 unlink ${n0}
17 expect ENOENT unlink ${n0}
18 expect ENOENT unlink ${n1}
H A D07.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/07.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns ELOOP if too many symbolic links were encountered in translating the pathname"
17 expect ELOOP unlink ${n0}/test
18 expect ELOOP unlink ${n1}/test
19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
H A D09.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/09.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns EPERM if the named file has its immutable, undeletable or append-only flag set"
27 expect EPERM unlink ${n0}
29 expect 0 unlink ${n0}
33 expect EPERM unlink ${n0}
35 expect 0 unlink ${n0}
40 expect EPERM unlink ${n0}
44 expect 0 unlink ${n0}
50 expect EPERM unlink ${n0}
52 expect 0 unlink
[all...]
H A D10.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/10.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns EPERM if the parent directory of the named file has its immutable or append-only flag set"
30 expect EPERM unlink ${n0}/${n1}
32 expect 0 unlink ${n0}/${n1}
36 expect 0 unlink ${n0}/${n1}
42 expect EPERM unlink ${n0}/${n1}
45 expect 0 unlink ${n0}/${n1}
51 expect EPERM unlink ${n0}/${n1}
53 expect 0 unlink ${n0}/${n1}
57 expect 0 unlink
[all...]
H A D00.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/00.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink removes regular files, symbolic links, fifos and sockets"
22 expect 0 unlink ${n0}
27 expect 0 unlink ${n0}
32 expect 0 unlink ${n0}
37 expect 0 unlink ${n0}
42 expect 0 unlink ${n0}
47 expect 0 unlink ${n0}
50 # successful unlink(2) updates ctime.
55 expect 0 unlink
[all...]
/freebsd-13-stable/contrib/pjdfstest/tests/symlink/
H A D02.t17 expect 0 unlink ${n0}
19 expect 0 unlink ${nx}
23 expect 0 unlink ${n0}
H A D03.t18 expect 0 unlink ${n0}
20 expect 0 unlink ${nx}
H A D07.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/link/
H A D09.t17 expect 0 unlink ${n0}
18 expect 0 unlink ${n1}
H A D02.t18 expect 0 unlink ${nx}
20 expect 0 unlink ${n0}
21 expect 0 unlink ${nx}
25 expect 0 unlink ${n0}
H A D10.t23 expect 0 unlink ${n1}
27 expect 0 unlink ${n0}
/freebsd-13-stable/bin/rm/
H A DMakefile9 LINKS= ${BINDIR}/rm ${BINDIR}/unlink
10 MLINKS= rm.1 unlink.1
/freebsd-13-stable/contrib/pjdfstest/tests/rmdir/
H A D01.t18 expect 0 unlink ${n0}/${n1}
23 expect 0 unlink ${n0}
27 expect 0 unlink ${n0}
31 expect 0 unlink ${n0}
H A D05.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_unlink.c43 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)");
89 ATF_REQUIRE_ERRNO(EISDIR, unlink("/") == -1);
91 ATF_REQUIRE_ERRNO(EBUSY, unlink("/") == -1);
95 ATF_REQUIRE_ERRNO(ENAMETOOLONG, unlink(buf) == -1);
98 ATF_REQUIRE_ERRNO(ENOENT, unlink("/a/b/c/d/e/f/g/h/i/j/k/l/m") == -1);
103 (void)unlink(pat
[all...]
/freebsd-13-stable/contrib/pjdfstest/tests/chflags/
H A D06.t21 expect 0 unlink ${n0}
22 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/ftruncate/
H A D07.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/mkdir/
H A D07.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/mkfifo/
H A D07.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/mknod/
H A D07.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}
/freebsd-13-stable/contrib/pjdfstest/tests/open/
H A D12.t19 expect 0 unlink ${n0}
20 expect 0 unlink ${n1}

Completed in 124 milliseconds

1234567891011>>