| /openbsd-src/sys/arch/powerpc64/stand/rdboot/ |
| H A D | cmd.c | 368 int dirfd, oldcwd; in Xls() local 384 dirfd = open(path, O_RDONLY); in Xls() 385 if (dirfd < 0) { in Xls() 390 if ((dir = fdopendir(dirfd)) < 0) { in Xls() 392 close(dirfd); in Xls() 396 fchdir(dirfd); in Xls() 398 if (fstatat(dirfd, dent->d_name, &sb, in Xls()
|
| /openbsd-src/sys/arch/octeon/stand/rdboot/ |
| H A D | cmd.c | 368 int dirfd, oldcwd; in Xls() local 384 dirfd = open(path, O_RDONLY); in Xls() 385 if (dirfd < 0) { in Xls() 390 if ((dir = fdopendir(dirfd)) < 0) { in Xls() 392 close(dirfd); in Xls() 396 fchdir(dirfd); in Xls() 398 if (fstatat(dirfd, dent->d_name, &sb, in Xls()
|
| /openbsd-src/lib/libc/gen/ |
| H A D | dirfd.c | 10 dirfd(DIR *dirp) in dirfd() function 14 DEF_WEAK(dirfd);
|
| H A D | scandir.c | 156 scandirat(int dirfd, const char *dirname, struct dirent ***namelist, in scandirat() argument 163 fd = HIDDEN(openat)(dirfd, dirname, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in scandirat()
|
| H A D | devname.c | 57 if (fstatat(dirfd(dirp), dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) in devname_nodb()
|
| H A D | ttyname.c | 126 if (fstatat(dirfd(dp), dirp->d_name, &dsb, AT_SYMLINK_NOFOLLOW) in oldttyname()
|
| H A D | Makefile.inc | 9 daemon.c devname.c dirfd.c dirname.c disklabel.c elf_aux_info.c \
|
| H A D | fts.c | 611 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build() 723 p->fts_info = fts_stat(sp, p, 0, dirfd(dirp)); in fts_build()
|
| /openbsd-src/sys/sys/ |
| H A D | namei.h | 157 enum uio_seg segflg, int dirfd, const char *namep, struct proc *p); 159 #define NDINITAT(ndp, op, flags, segflg, dirfd, namep, p) \ argument 160 ndinitat(ndp, op, flags, segflg, dirfd, namep, p)
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | chdir.t | 67 like($@, qr/^The dirfd function is unimplemented at/, "dirfd is unimplemented"); 82 like($@, qr/^The dirfd function is unimplemented at/, "dirfd is unimplemented");
|
| H A D | stat.t | 577 skip "No dirfd()", 4 unless $Config{d_dirfd} || $Config{d_dir_dd_fd}; 597 skip "No dirfd()", 4 unless $Config{d_dirfd} || $Config{d_dir_dd_fd};
|
| /openbsd-src/gnu/usr.bin/perl/t/io/ |
| H A D | perlio.t | 131 ok(defined $fd, "fileno(DIRHANDLE) is defined under dirfd()") 134 "fileno(DIRHANDLE) yields non-negative int under dirfd()"); 137 ok(!defined $fd, "fileno(DIRHANDLE) is undef when no dirfd()"); 138 isnt($errno, 0, "fileno(DIRHANDLE) sets errno when no dirfd()");
|
| /openbsd-src/lib/libc/hidden/ |
| H A D | dirent.h | 29 PROTO_NORMAL(dirfd);
|
| /openbsd-src/include/ |
| H A D | dirent.h | 103 int dirfd(DIR *);
|
| /openbsd-src/usr.bin/vi/common/ |
| H A D | recover.c | 544 if ((fd = rcv_openat(sp, dirfd(dirp), dp->d_name, NULL)) == -1) in rcv_list() 575 (void)unlinkat(dirfd(dirp), dp->d_name, 0); in rcv_list() 631 if ((fd = rcv_openat(sp, dirfd(dirp), dp->d_name, &lck)) == -1) in rcv_read()
|
| /openbsd-src/usr.sbin/cron/ |
| H A D | database.c | 128 process_crontab(dirfd(dir), dp->d_name, dp->d_name, in load_database()
|
| /openbsd-src/sys/kern/ |
| H A D | vfs_lookup.c | 84 enum uio_seg segflg, int dirfd, const char *namep, struct proc *p) in ndinitat() argument 90 ndp->ni_dirfd = dirfd; in ndinitat()
|
| /openbsd-src/usr.sbin/lpr/common_source/ |
| H A D | common.c | 240 if (fstat(dirfd(dirp), &stbuf) < 0) in getq()
|
| /openbsd-src/regress/sys/kern/unveil/ |
| H A D | syscalls.c | 99 int dirfd; in test_open() local 104 UV_SHOULD_SUCCEED(((dirfd = open("/", O_RDONLY | O_DIRECTORY)) == -1), "open"); in test_open()
|
| /openbsd-src/usr.bin/rdist/ |
| H A D | expand.c | 357 if (fstat(dirfd(dirp), &stb) == -1) in matchdir()
|
| /openbsd-src/usr.bin/mg/ |
| H A D | fileio.c | 533 if (fstatat(dirfd(dirp), dent->d_name, &statbuf, 0) < 0) in make_file_list()
|
| /openbsd-src/gnu/usr.bin/perl/t/porting/ |
| H A D | known_pod_issues.dat | 113 dirfd(3)
|
| /openbsd-src/usr.sbin/lpd/ |
| H A D | lp.c | 298 if (fstat(dirfd(dp), &st) == -1) { in lp_readqueue()
|
| /openbsd-src/usr.sbin/ypbind/ |
| H A D | ypbind.c | 367 (void)unlinkat(dirfd(dirp), dent->d_name, 0); in main()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_posix.cpp | 44 #define dirfd(dirp) (*(int *)(dirp)) macro 100 extern "C" int dirfd(void *dirp); 1950 int fd = dirfd(dirp); in TSAN_INTERCEPTOR()
|