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

/opensolaris-onvv-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) {
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/stage2/
H A Ddir.h135 #define dirfd(dirp) ((dirp)->dd_fd) macro
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c30 * fdopendir, dirfd -- C library extension routines
90 dirfd(DIR *dirp) function
/opensolaris-onvv-gate/usr/src/cmd/svc/startd/
H A Dlog.c578 int dirfd, logfd; local
661 if ((dirfd = log_dir_writeable(LOG_PREFIX_NORMAL)) == -1) {
662 if ((dirfd = log_dir_writeable(LOG_PREFIX_EARLY)) == -1)
673 if ((logfd = openat(dirfd, STARTD_DEFAULT_LOG,
675 (void) close(dirfd);
680 (void) close(dirfd);
/opensolaris-onvv-gate/usr/src/head/
H A Ddirent.h104 extern int dirfd(DIR *);
142 extern int dirfd();
/opensolaris-onvv-gate/usr/src/lib/libsqlite/src/
H A Dos.h115 int dirfd; /* File descriptor for the directory */ member in struct:OsFile
H A Dos.c467 id->dirfd = -1;
598 id->dirfd = -1;
686 id->dirfd = -1;
774 assert( id->dirfd<0 );
775 id->dirfd = open(zDirname, O_RDONLY|O_BINARY, 0644);
776 if( id->dirfd<0 ){
779 TRACE3("OPENDIR %-3d %s\n", id->dirfd, zDirname);
915 if( id->dirfd>=0 ) close(id->dirfd);
916 id->dirfd
[all...]
/opensolaris-onvv-gate/usr/src/cmd/cpio/
H A Dcpio.c142 static int creat_lnk(int dirfd, char *name1_p, char *name2_p);
143 static int creat_spec(int dirfd);
160 static int openout(int dirfd);
165 static void rstfiles(int over, int dirfd);
168 static void set_tym(int dirfd, char *nam_p, time_t atime, time_t mtime);
1717 creat_lnk(int dirfd, char *name1_p, char *name2_p) argument
1764 else if (unlinkat(dirfd, get_component(name2_p), 0) < 0)
1816 creat_spec(int dirfd) argument
1842 if (fchownat(dirfd, ".", Rpw_p->pw_uid,
1849 } else if ((fchownat(dirfd, "
3926 int dirfd; local
5500 openout(int dirfd) argument
6083 rstfiles(int over, int dirfd) argument
6738 set_tym(int dirfd, char *nam_p, time_t atime, time_t mtime) argument
9285 int dirfd; local
9711 unlinkat(int dirfd, char *path, int flag) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/tar/
H A Dtar.c464 static void setPathTimes(int dirfd, char *path, timestruc_t modTime);
472 static void resugname(int dirfd, char *name, int symflag);
519 static int getstat(int dirfd, char *longname, char *shortname,
1728 int dirfd = -1; local
1750 dirfd = attrinfo->attr_parentfd;
1753 dirfd = open(".", O_RDONLY);
1756 if (dirfd == -1) {
1774 if (getstat(dirfd, longname, shortname, attrparent))
1781 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW);
2200 if ((infile = openat(dirfd, shortnam
2842 int dirfd = -1; local
4424 resugname(int dirfd, char *name, int symflag) argument
6529 setPathTimes(int dirfd, char *path, timestruc_t modTime) argument
7656 getstat(int dirfd, char *longname, char *shortname, char *attrparent) argument
7747 int dirfd; local
8330 int dirfd; local
8474 unlinkat(int dirfd, char *path, int flag) argument
[all...]
/opensolaris-onvv-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);
/opensolaris-onvv-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_quota.c1124 int newfd, dirfd, afd; local
1137 if ((dirfd = open(dir, O_RDONLY)) < 0) {
1145 (fsetattr(dirfd, XATTR_VIEW_READWRITE, request))) {
1147 (void) close(dirfd);
1153 (void) close(dirfd);
/opensolaris-onvv-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 &&
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/
H A Dextensions.c1969 int dirfd; local
1983 dirfd = open(fs, O_RDONLY);
1987 ioctl(dirfd, Q_QUOTACTL, &qp);
1988 close(dirfd);
H A Dglob.c277 if (fstat(dirfd(dirp), &stb) < 0)
/opensolaris-onvv-gate/usr/src/lib/c_synonyms/
H A Dsyn_common230 dirfd
/opensolaris-onvv-gate/usr/src/cmd/sendmail/src/
H A Dmap.c1506 int dirfd;
1515 dirfd = safeopen(dirfile, mode, DBMMODE, sff);
1518 if (dirfd < 0 || pagfd < 0)
1521 if (dirfd >= 0)
1522 (void) close(dirfd);
1530 if (ftruncate(dirfd, (off_t) 0) < 0 ||
1534 (void) close(dirfd);
1544 (fstat(dirfd, &std) < 0 || fstat(pagfd, &stp) < 0))
1547 (void) close(dirfd);
1556 map->map_lockfd = dirfd;
[all...]
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);
/opensolaris-onvv-gate/usr/src/lib/libc/port/
H A Dmapfile-vers134 dirfd;
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/
H A Dconfig_h.SH2367 * This manifest constant lets the C program know that dirfd

Completed in 217 milliseconds