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

12

/freebsd-9.3-release/sys/sys/
H A Dnamei.h161 #define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \
162 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, 0, td)
163 #define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rights, td) \
164 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, rights, td)
173 int dirfd,
182 ndp->ni_dirfd = dirfd;
169 NDINIT_ALL(struct nameidata *ndp, u_long op, u_long flags, enum uio_seg segflg, const char *namep, int dirfd, struct vnode *startdir, cap_rights_t rights, struct thread *td) argument
H A Dsyscallsubr.h70 enum uio_seg pathseg, char **pathbuf, int create, int dirfd);
/freebsd-9.3-release/lib/libc/gen/
H A Dgetcwd.c120 if (dir != NULL ? _fstat(dirfd(dir), &s) : lstat(".", &s))
142 fd = _openat(dir != NULL ? dirfd(dir) : AT_FDCWD,
148 if (!(dir = fdopendir(fd)) || _fstat(dirfd(dir), &s)) {
174 if (fstatat(dirfd(dir), dp->d_name, &s,
H A DSymbol.map384 dirfd;
H A Dfts-compat.c716 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
H A Dfts.c713 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
/freebsd-9.3-release/sys/security/audit/
H A Daudit.h102 void audit_arg_upath1(struct thread *td, int dirfd, char *upath);
103 void audit_arg_upath2(struct thread *td, int dirfd, char *upath);
279 #define AUDIT_ARG_UPATH1(td, dirfd, upath) do { \
281 audit_arg_upath1((td), (dirfd), (upath)); \
284 #define AUDIT_ARG_UPATH2(td, dirfd, upath) do { \
286 audit_arg_upath2((td), (dirfd), (upath)); \
359 #define AUDIT_ARG_UPATH1(td, dirfd, upath)
360 #define AUDIT_ARG_UPATH2(td, dirfd, upath)
H A Daudit_bsm_klib.c464 audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath) argument
493 if (dirfd == AT_FDCWD) {
498 error = fgetvp(td, dirfd, 0, &cvnp);
H A Daudit_arg.c714 audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp) argument
719 audit_canon_path(td, dirfd, upath, *pathp);
723 audit_arg_upath1(struct thread *td, int dirfd, char *upath) argument
731 audit_arg_upath(td, dirfd, upath, &ar->k_ar.ar_arg_upath1);
736 audit_arg_upath2(struct thread *td, int dirfd, char *upath) argument
744 audit_arg_upath(td, dirfd, upath, &ar->k_ar.ar_arg_upath2);
H A Daudit_private.h391 void audit_canon_path(struct thread *td, int dirfd, char *path,
/freebsd-9.3-release/usr.bin/bsdiff/bspatch/
H A Dbspatch.c56 static int dirfd = -1; variable
62 if (dirfd != -1 && newfile != NULL)
63 if (unlinkat(dirfd, newfile, 0))
124 (dirfd = open(directory, O_DIRECTORY)) < 0)
130 if ((newfd = openat(dirfd, newfile,
152 cap_rights_limit(dirfd, &rights_dir) < 0)
/freebsd-9.3-release/bin/pax/
H A Dtables.c75 static int dirfd = -1; /* storage for setting created dir time/mode */ variable
1094 if (dirfd != -1)
1101 if ((dirfd = mkstemp(tempfile)) >= 0) {
1128 if (dirfd < 0)
1135 if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) {
1148 if ((write(dirfd, name, dblk.nlen) == dblk.nlen) &&
1149 (write(dirfd, (char *)&dblk, sizeof(dblk)) == sizeof(dblk))) {
1171 if (dirfd < 0)
1181 if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0)
1183 if (read(dirfd,(cha
[all...]
/freebsd-9.3-release/crypto/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))
/freebsd-9.3-release/include/
H A Ddirent.h75 #define dirfd(dirp) ((dirp)->dd_fd) macro
/freebsd-9.3-release/usr.sbin/cpucontrol/
H A Dcpucontrol.c295 DIR *dirfd; local
324 dirfd = opendir(dir->path);
325 if (dirfd == NULL) {
329 while ((direntry = readdir(dirfd)) != NULL) {
343 error = closedir(dirfd);
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/
H A Dtrail.c164 dfd = dirfd(dirfp);
223 dfd = dirfd(trail->tr_dirfp);
368 dfd = dirfd(trail->tr_dirfp);
422 dfd = dirfd(trail->tr_dirfp);
450 fd = dirfd(trail->tr_dirfp);
494 return (dirfd(trail->tr_dirfp));
H A Dreceiver.c605 adhost->adh_trail_dirfd = dirfd(adhost->adh_trail_dirfp);
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dkuserok.c141 fd = dirfd(d);
/freebsd-9.3-release/sys/kern/
H A Dvfs_lookup.c1153 enum uio_seg pathseg, char **pathbuf, int create, int dirfd)
1191 if (dirfd != AT_FDCWD) {
1194 * included in the already opened dirfd.
1152 kern_alternate_path(struct thread *td, const char *prefix, const char *path, enum uio_seg pathseg, char **pathbuf, int create, int dirfd) argument
H A Dvfs_syscalls.c1100 /* XXX: audit dirfd */
2168 int dirfd; member in struct:faccessat_args
2926 int dirfd; member in struct:fchmodat_args
/freebsd-9.3-release/contrib/sendmail/src/
H A Dmap.c1501 int dirfd;
1510 dirfd = safeopen(dirfile, mode, DBMMODE, sff);
1513 if (dirfd < 0 || pagfd < 0)
1516 if (dirfd >= 0)
1517 (void) close(dirfd);
1525 if (ftruncate(dirfd, (off_t) 0) < 0 ||
1529 (void) close(dirfd);
1539 (fstat(dirfd, &std) < 0 || fstat(pagfd, &stp) < 0))
1542 (void) close(dirfd);
1551 map->map_lockfd = dirfd;
[all...]
H A Ddeliver.c951 int dirfd; local
969 dirfd = open(dirp, O_RDONLY, 0700);
972 dirp, dirfd);
973 if (dirfd >= 0)
975 if (fsync(dirfd) < 0)
985 (void) close(dirfd);
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_file.c95 linux_common_open(struct thread *td, int dirfd, char *path, int l_flags, int mode) argument
139 error = kern_openat(td, dirfd, path, UIO_SYSSPACE, bsd_flags, mode);
/freebsd-9.3-release/usr.sbin/newsyslog/
H A Dnewsyslog.c1558 dir_fd = dirfd(dirp);
2322 dir_fd = dirfd(dirp);

Completed in 188 milliseconds

12