Searched defs:dirfd (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c30 * fdopendir, dirfd -- C library extension routines
90 dirfd(DIR *dirp) function
/illumos-gate/usr/src/cmd/runat/
H A Drunat.c56 int dirfd; local
75 if ((dirfd = openat64(fd, ".", O_RDONLY|O_XATTR)) == -1) {
84 if (fchdir(dirfd) == -1) {
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dos.h115 int dirfd; /* File descriptor for the directory */ member in struct:OsFile
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Ddir.h135 #define dirfd(dirp) ((dirp)->dd_fd) macro
/illumos-gate/usr/src/cmd/rm/
H A Drm.c241 opendirat(int dirfd, const char *entry, struct dlist *frm) argument
248 while ((fd = openat(dirfd, entry, O_RDONLY|O_NONBLOCK)) == -1 &&
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c579 int dirfd, logfd; local
662 if ((dirfd = log_dir_writeable(LOG_PREFIX_NORMAL)) == -1) {
663 if ((dirfd = log_dir_writeable(LOG_PREFIX_EARLY)) == -1)
674 if ((logfd = openat(dirfd, STARTD_DEFAULT_LOG,
676 (void) close(dirfd);
681 (void) close(dirfd);
/illumos-gate/usr/src/cmd/chmod/
H A Dchmod.c1000 int dirfd; local
1031 if (((dirfd = dup(parentfd)) == -1) ||
1032 ((dirp = fdopendir(dirfd)) == NULL)) {
1035 if (dirfd > 0) {
1036 (void) close(dirfd);
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_quota.c1128 int newfd, dirfd, afd; local
1143 if ((dirfd = open(dir, O_RDONLY)) < 0) {
1149 if (fgetattr(dirfd, XATTR_VIEW_READWRITE, &attr) != 0) {
1150 (void) close(dirfd);
1159 (void) close(dirfd);
1178 (fsetattr(dirfd, XATTR_VIEW_READWRITE, attr))) {
1180 (void) close(dirfd);
1189 (void) close(dirfd);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c204 int dirfd; local
206 if ((dirfd = openat(AT_FDCWD, dirname,
211 if ((dirp = fdopendir(dirfd)) == NULL) {
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddeliver.c950 int dirfd; local
968 dirfd = open(dirp, O_RDONLY, 0700);
971 dirp, dirfd);
972 if (dirfd >= 0)
974 if (fsync(dirfd) < 0)
984 (void) close(dirfd);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c144 static int creat_lnk(int dirfd, char *name1_p, char *name2_p);
145 static int creat_spec(int dirfd);
162 static int openout(int dirfd);
167 static void rstfiles(int over, int dirfd);
170 static void set_tym(int dirfd, char *nam_p, time_t atime, time_t mtime);
1722 creat_lnk(int dirfd, char *name1_p, char *name2_p) argument
1769 else if (unlinkat(dirfd, get_component(name2_p), 0) < 0)
1821 creat_spec(int dirfd) argument
1847 if (fchownat(dirfd, ".", Rpw_p->pw_uid,
1854 } else if ((fchownat(dirfd, "
3931 int dirfd; local
5505 openout(int dirfd) argument
6088 rstfiles(int over, int dirfd) argument
6746 set_tym(int dirfd, char *nam_p, time_t atime, time_t mtime) argument
9292 int dirfd; local
9718 unlinkat(int dirfd, char *path, int flag) argument
[all...]
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c459 static void setPathTimes(int dirfd, char *path, timestruc_t modTime);
467 static void resugname(int dirfd, char *name, int symflag);
514 static int getstat(int dirfd, char *longname, char *shortname,
1840 int dirfd = -1; local
1862 dirfd = attrinfo->attr_parentfd;
1865 dirfd = open(".", O_RDONLY);
1868 if (dirfd == -1) {
1886 if (getstat(dirfd, longname, shortname, attrparent))
1893 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW);
2311 if ((infile = openat(dirfd, shortnam
2938 int dirfd = -1; local
4520 resugname(int dirfd, char *name, int symflag) argument
6618 setPathTimes(int dirfd, char *path, timestruc_t modTime) argument
7744 getstat(int dirfd, char *longname, char *shortname, char *attrparent) argument
7835 int dirfd; local
8416 int dirfd; local
8560 unlinkat(int dirfd, char *path, int flag) argument
[all...]

Completed in 111 milliseconds