/freebsd-13-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_unlinkat.c | 46 #define FILE "dir/unlinkat" 47 #define BASEFILE "unlinkat" 53 atf_tc_set_md_var(tc, "descr", "See that unlinkat works with fd"); 65 ATF_REQUIRE(unlinkat(dfd, BASEFILE, 0) == 0); 73 "See that unlinkat works with fd as AT_FDCWD"); 84 ATF_REQUIRE(unlinkat(AT_FDCWD, BASEFILE, 0) == 0); 91 "See that unlinkat fails with fd as AT_FDCWD and bad path"); 96 ATF_REQUIRE(unlinkat(AT_FDCWD, FILEERR, 0) == -1); 102 atf_tc_set_md_var(tc, "descr", "See that unlinkat fail with bad path"); 110 ATF_REQUIRE(unlinkat(df [all...] |
/freebsd-13-stable/usr.sbin/pw/ |
H A D | rm_r.c | 73 unlinkat(dirfd, e->d_name, 0); 79 unlinkat(rootfd, path, 0); 81 unlinkat(rootfd, path, AT_REMOVEDIR);
|
H A D | pw_user.c | 1010 unlinkat(conf.rootfd, file + 1, 0);
|
/freebsd-13-stable/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 191 CHECK(ret == -1 || unlinkat(dirfd, "cap_create", 0) == 0); 197 CHECK(ret == -1 || unlinkat(dirfd, "cap_create", 0) == 0); 202 CHECK(ret == -1 || unlinkat(dirfd, "cap_create", 0) == 0); 234 CHECK(unlinkat(dirfd, "cap_fsync", 0) == 0); 254 CHECK(unlinkat(dirfd, "cap_ftruncate", 0) == 0); 260 CHECK(ret == -1 || unlinkat(dirfd, "cap_create", 0) == 0); 266 CHECK(ret == -1 || unlinkat(dirfd, "cap_create", 0) == 0); 287 CHECK(unlinkat(dirfd, "cap_fsync", 0) == 0); 301 CHECK(unlinkat(dirfd, "cap_chflagsat", 0) == 0); 311 CHECK(unlinkat(dirf [all...] |
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
H A D | unlinkat.h | 39 unlinkat(int fd, const char *path, int flag) function
|
H A D | trail.c | 58 #include "unlinkat.h" 313 if (unlinkat(dfd, trail->tr_filename, 0) == -1) { 450 if (unlinkat(dfd, filename, 0) == -1) {
|
/freebsd-13-stable/contrib/lib9p/backend/ |
H A D | backend.h | 66 int (*unlinkat)(void *, struct l9p_request *); member in struct:l9p_backend
|
H A D | fs.c | 1753 if (unlinkat(file->ff_dirfd, file->ff_name, 2934 if (unlinkat(dirff->ff_dirfd, newname, AT_REMOVEDIR) != 0) 2937 if (unlinkat(dirff->ff_dirfd, newname, 0) != 0) 3031 backend->unlinkat = fs_unlinkat;
|
/freebsd-13-stable/contrib/capsicum-test/ |
H A D | capability-fd.cc | 690 EXPECT_OK(unlinkat(dirfd, "cap_create", 0)); 696 EXPECT_OK(unlinkat(dirfd, "cap_create", 0)); 702 EXPECT_OK(unlinkat(dirfd, "cap_create", 0)); 710 EXPECT_OK(unlinkat(dirfd, "cap_faccess", 0)); 745 EXPECT_OK(unlinkat(dirfd, "cap_fsync", 0)); 765 EXPECT_OK(unlinkat(dirfd, "cap_ftruncate", 0)); 771 EXPECT_OK(unlinkat(dirfd, "cap_create", 0)); 777 EXPECT_OK(unlinkat(dirfd, "cap_create", 0)); 807 EXPECT_OK(unlinkat(dirfd, "cap_fsync", 0)); 815 EXPECT_OK(unlinkat(dirf [all...] |
H A D | capmode.cc | 428 EXPECT_OK(unlinkat(dfd, "linky", 0)); 429 EXPECT_OK(unlinkat(dfd, "subdir", AT_REMOVEDIR)); 492 EXPECT_CAPMODE(unlinkat(AT_FDCWD, "linky", 0));
|
/freebsd-13-stable/sbin/savecore/ |
H A D | savecore.c | 346 (void)unlinkat(savedirfd, path, 0); 348 (void)unlinkat(savedirfd, path, 0); 350 (void)unlinkat(savedirfd, path, 0); 352 (void)unlinkat(savedirfd, path, 0); 354 (void)unlinkat(savedirfd, path, 0); 356 (void)unlinkat(savedirfd, path, 0); 363 (void)unlinkat(savedirfd, "info.last", 0); 364 (void)unlinkat(savedirfd, "key.last", 0); 365 (void)unlinkat(savedirfd, "vmcore.last", 0); 366 (void)unlinkat(savedirf [all...] |
/freebsd-13-stable/sys/kern/ |
H A D | capabilities.conf | 493 unlinkat
|
/freebsd-13-stable/tests/sys/audit/ |
H A D | file-delete.c | 220 "unlinkat(2) call"); 227 ATF_REQUIRE_EQ(0, unlinkat(AT_FDCWD, path, AT_REMOVEDIR)); 241 "unlinkat(2) call"); 248 ATF_REQUIRE_EQ(-1, unlinkat(AT_FDCWD, errpath, AT_REMOVEDIR));
|
/freebsd-13-stable/sys/sys/ |
H A D | syscall.mk | 351 unlinkat.o \
|
/freebsd-13-stable/lib/libutil/ |
H A D | pidfile.c | 213 unlinkat(dirfd, pfh->pf_filename, 0);
|
/freebsd-13-stable/include/ |
H A D | unistd.h | 439 int unlinkat(int, const char *, int);
|
/freebsd-13-stable/usr.bin/bsdiff/bspatch/ |
H A D | bspatch.c | 60 if (unlinkat(dirfd, newfile, 0)) 61 warn("unlinkat");
|
/freebsd-13-stable/lib/libc/sys/ |
H A D | Makefile.inc | 496 MLINKS+=unlink.2 unlinkat.2
|
/freebsd-13-stable/contrib/lib9p/ |
H A D | request.c | 1438 error = be->unlinkat != NULL ? be->unlinkat(be->softc, req) : ENOSYS;
|
/freebsd-13-stable/contrib/lib9p/pytest/ |
H A D | p9conn.py | 1132 def unlinkat(self, dirfd, name, flags): member in class:P9Client 1140 self.badresp('unlinkat {0} in ' 1702 # If we have unlinkat, that's the fast way. But it may 1707 self.unlinkat(dfid, name, 0)
|
/freebsd-13-stable/sys/contrib/openzfs/etc/systemd/system-generators/ |
H A D | zfs-mount-generator.c | 600 (void) unlinkat(destdir_fd, mountfile, 0);
|
/freebsd-13-stable/contrib/pjdfstest/ |
H A D | pjdfstest.c | 180 { "unlinkat", ACTION_UNLINKAT, { TYPE_DESCRIPTOR, TYPE_STRING, TYPE_STRING, TYPE_NONE } }, 796 rval = unlinkat(NUM(0), STR(1),
|
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 403 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0);
|
/freebsd-13-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 2815 r = unlinkat(chdir_fd, head, 0); 2850 r = unlinkat(chdir_fd, head, 0); 2938 /* If we operate with openat(), fstatat() and unlinkat() there was
|
/freebsd-13-stable/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1631 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) {
|