Searched refs:unlinkat (Results 1 - 19 of 19) sorted by relevance

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_unlinkat.c46 #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-11-stable/usr.sbin/pw/
H A Drm_r.c69 unlinkat(dirfd, e->d_name, 0);
75 unlinkat(rootfd, path, 0);
77 unlinkat(rootfd, path, AT_REMOVEDIR);
H A Dpw_user.c1010 unlinkat(conf.rootfd, file + 1, 0);
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c191 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-11-stable/contrib/openbsm/bin/auditdistd/
H A Dunlinkat.h39 unlinkat(int fd, const char *path, int flag) function
H A Dtrail.c58 #include "unlinkat.h"
307 if (unlinkat(dfd, trail->tr_filename, 0) == -1) {
423 if (unlinkat(dfd, filename, 0) == -1) {
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf456 unlinkat
/freebsd-11-stable/tests/sys/audit/
H A Dfile-delete.c220 "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-11-stable/sys/compat/freebsd32/
H A Dcapabilities.conf190 unlinkat
/freebsd-11-stable/sys/sys/
H A Dsyscall.mk354 unlinkat.o \
/freebsd-11-stable/usr.bin/bsdiff/bspatch/
H A Dbspatch.c61 if (unlinkat(dirfd, newfile, 0))
62 warn("unlinkat");
/freebsd-11-stable/include/
H A Dunistd.h437 int unlinkat(int, const char *, int);
/freebsd-11-stable/lib/libc/sys/
H A DMakefile.inc464 MLINKS+=unlink.2 unlinkat.2
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_file.c636 if (ldebug(unlinkat))
637 printf(ARGS(unlinkat, "%s"), path);
/freebsd-11-stable/contrib/pjdfstest/
H A Dpjdfstest.c153 { "unlinkat", ACTION_UNLINKAT, { TYPE_DESCRIPTOR, TYPE_STRING, TYPE_STRING, TYPE_NONE } },
676 rval = unlinkat(NUM(0), STR(1),
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp403 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0);
/freebsd-11-stable/usr.sbin/newsyslog/
H A Dnewsyslog.c1629 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) {
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c2889 r = unlinkat(chdir_fd, head, 0);
2924 r = unlinkat(chdir_fd, head, 0);
3012 /* If we operate with openat(), fstatat() and unlinkat() there was
/freebsd-11-stable/contrib/openbsm/
H A Dconfigure13329 for ac_func in arc4random arc4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_mutex_lock renameat setproctitle sigtimedwait strchr strerror strlcat strlcpy strndup strrchr strstr strtol strtoul unlinkat vis

Completed in 269 milliseconds