Searched refs:dirfd (Results 1 - 25 of 32) sorted by relevance

12

/macosx-10.10.1/gnutar-453/gnutar/lib/
H A Ddirfd.h1 /* Declare dirfd, if necessary.
27 #if !HAVE_DECL_DIRFD && !defined dirfd
28 int dirfd (DIR const *);
H A Ddirfd.c0 /* dirfd.c -- return the file descriptor associated with an open DIR*
23 #include "dirfd.h"
26 dirfd (DIR const *dir_p) function
H A Dfchdir.c33 #include "dirfd.h"
136 descriptors. Needed because there is a function dirfd(). */
142 int fd = dirfd (dp);
164 int fd = dirfd (dp);
H A Dgetcwd.c22 # include "dirfd.h"
100 /* The results of opendir() in this file are not used with dirfd and fchdir,
240 fd = dirfd (dirstream);
H A Dgnulib.mk210 ## begin gnulib module dirfd
213 EXTRA_DIST += dirfd.c dirfd.h
215 EXTRA_libtar_a_SOURCES += dirfd.c
217 ## end gnulib module dirfd
/macosx-10.10.1/Libc-1044.1.2/gen/
H A Ddirfd.c28 int dirfd(DIR *dirp) { function
H A Dfts.c724 if (FCHDIR(sp, dirfd(dirp))) {
/macosx-10.10.1/Heimdal-398.1.2/lib/roken/
H A Dcloexec.c64 rk_cloexec(dirfd(d));
H A Droken.h.in744 #define dirfd(x) ((x)->dd_fd)
746 #ifndef _WIN32 /* Windows code never calls dirfd */
747 #error Missing dirfd() and ->dd_fd
/macosx-10.10.1/BerkeleyDB-21/db/clib/
H A Dgetcwd.c64 #ifndef dirfd
65 #define dirfd(dirp) ((dirp)->dd_fd) macro
179 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
/macosx-10.10.1/Libc-1044.1.2/include/
H A Ddirent.h181 #define dirfd(dirp) ({ \ macro
191 int dirfd(DIR *dirp) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
/macosx-10.10.1/OpenSSH-189/openssh/openbsd-compat/
H A Dbsd-closefrom.c84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp))
H A Dgetcwd.c148 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
/macosx-10.10.1/sudo-73/src/
H A Dclosefrom.c117 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp))
H A Dgetcwd.c179 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
H A Dmissing.h239 * If dirfd() does not exists, hopefully dd_fd does.
242 # define dirfd(_d) ((_d)->dd_fd) macro
/macosx-10.10.1/kext_tools-384.1.4/
H A Dsafecalls.c179 int dirfd = -1, savedir = -1; local
190 if (-1 == (dirfd = open(parent, O_RDONLY, 0))) goto finish;
192 if (spolicy(fdvol, dirfd)) {
206 if ((bsderr = fchdir(dirfd))) goto finish;
220 if (dirfd != -1) close(dirfd);
555 if (spolicy(srcfdvol, dirfd(dir)))
/macosx-10.10.1/zsh-61/zsh/Src/Modules/
H A Dfiles.c387 if ((ds.dirfd = open(".", O_RDONLY|O_NOCTTY)) < 0 &&
389 ds.dirfd = open("..", O_RDONLY|O_NOCTTY);
413 d.dirfd = d.level = -1;
426 if ((err & 2) && ds.dirfd >= 0 && restoredir(&ds) && zchdir(pwd)) {
432 if (ds.dirfd >= 0)
433 close(ds.dirfd);
/macosx-10.10.1/Heimdal-398.1.2/lib/krb5/
H A Dkuserok.c141 fd = dirfd(d);
/macosx-10.10.1/Libc-1044.1.2/gen/FreeBSD/
H A Dgetcwd.c236 if (!(dir = opendir(up)) || _fstat(dirfd(dir), &s))
/macosx-10.10.1/xnu-2782.1.97/bsd/sys/
H A Dfile_internal.h259 extern int nameiat(struct nameidata *ndp, int dirfd);
/macosx-10.10.1/xnu-2782.1.97/tools/tests/xnu_quick_test/
H A Dtests.c5240 int dirfd = -1; local
5265 dirfd = openat (AT_FDCWD, target, O_RDONLY, 0);
5266 if (dirfd == -1) {
5274 retcount = getattrlistbulk(dirfd,
5314 if (dirfd != -1) {
5315 (void)close(dirfd);
/macosx-10.10.1/zsh-61/zsh/Src/
H A Dglob.c637 if (ds.dirfd >= 0)
638 close(ds.dirfd);
H A Dzsh.h991 int dirfd, level; member in struct:dirsav
/macosx-10.10.1/xnu-2782.1.97/bsd/vfs/
H A Dvfs_syscalls.c2874 nameiat(struct nameidata *ndp, int dirfd) argument
2876 if ((dirfd != AT_FDCWD) &&
2893 error = vnode_getfromfd(ndp->ni_cnd.cn_context, dirfd,
3485 int dirfd)
3487 if ((dirfd != AT_FDCWD) && !(ndp->ni_cnd.cn_flags & USEDVP)) {
3502 error = vnode_getfromfd(ndp->ni_cnd.cn_context, dirfd,
3483 open1at(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, fp_allocfn_t fp_zalloc, void *cra, int32_t *retval, int dirfd) argument

Completed in 214 milliseconds

12