Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 25 of 32) sorted by relevance

12

/titanic_41/usr/src/cmd/backup/restore/
H A Dutilities.c150 int dfd; in newnode() local
154 resolve(myname(np), &dfd, &cp); in newnode()
155 if (dfd != AT_FDCWD) { in newnode()
156 if (fchdir(dfd) < 0) { in newnode()
162 (void) close(dfd); in newnode()
176 if (dfd != AT_FDCWD) { in newnode()
178 (void) close(dfd); in newnode()
190 int dfd; in removenode() local
200 resolve(myname(ep), &dfd, &cp); in removenode()
201 if (dfd != AT_FDCWD) { in removenode()
[all …]
H A Ddirs.c665 int dfd; in setdirmodes() local
720 resolve(myname(ep), &dfd, &cp); in setdirmodes()
721 if (dfd != AT_FDCWD) { in setdirmodes()
722 if (fchdir(dfd) < 0) { in setdirmodes()
727 (void) close(dfd); in setdirmodes()
766 if (dfd != AT_FDCWD) { in setdirmodes()
768 (void) close(dfd); in setdirmodes()
H A Drestore.c855 int dfd; in createlinks() local
868 resolve(myname(np), &dfd, &from); in createlinks()
869 if (dfd != AT_FDCWD) { in createlinks()
870 if (fchdir(dfd) < 0) { in createlinks()
875 (void) close(dfd); in createlinks()
886 if (dfd != AT_FDCWD) { in createlinks()
888 (void) close(dfd); in createlinks()
H A Dtape.c754 int dfd; in extractfile() local
768 resolve(name, &dfd, &rname); in extractfile()
769 if (dfd != AT_FDCWD) { in extractfile()
770 if (fchdir(dfd) < 0) { in extractfile()
776 (void) close(dfd); in extractfile()
1003 if (dfd != AT_FDCWD) { in extractfile()
1005 (void) close(dfd); in extractfile()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c63 static int cfd, dfd; /* control and data descriptors */ variable
169 dfd = open(dnambuf, O_RDWR); in main()
170 if (dfd < 0) { in main()
332 pfd.fd = dfd; in quiet_period()
336 (void) read(dfd, bigbuf, sizeof (bigbuf)); in quiet_period()
366 if (write(dfd, packet, reclen) != reclen) { in first_packet()
372 pfd.fd = dfd; in first_packet()
379 len = read(dfd, bigbuf, reclen); in first_packet()
443 pfd.fd = dfd; in many_packets()
449 (void) lseek(dfd, (long)0, 0); in many_packets()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Dreadlink.c54 readlinkat(int dfd, char *name, char *buf, size_t count) in readlinkat() argument
69 if ((error = fgetstartvp(dfd, name, &startvp)) != 0) in readlinkat()
131 readlinkat32(int dfd, caddr32_t name, caddr32_t buf, size32_t count) in readlinkat32() argument
133 return ((ssize32_t)readlinkat(dfd, (char *)(uintptr_t)name, in readlinkat32()
H A Dsymlink.c56 symlinkat(char *target, int dfd, char *linkname) in symlinkat() argument
70 if ((error = fgetstartvp(dfd, linkname, &startvp)) != 0) in symlinkat()
/titanic_41/usr/src/lib/libc/port/sys/
H A Dopen.c51 __openat(int dfd, const char *path, int oflag, mode_t mode) in __openat() argument
53 int fd = syscall(SYS_openat, dfd, path, oflag, mode); in __openat()
71 __openat64(int dfd, const char *path, int oflag, mode_t mode) in __openat64() argument
73 int fd = syscall(SYS_openat64, dfd, path, oflag, mode); in __openat64()
/titanic_41/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c260 int dfd; in start_svcs() local
273 if ((dfd = open(NFSMAPID_DOOR, O_RDWR|O_CREAT|O_TRUNC, in start_svcs()
290 (void) close(dfd); in start_svcs()
294 (void) close(dfd); in start_svcs()
/titanic_41/usr/src/cmd/fs.d/reparsed/
H A Dreparsed.c315 int dfd; in start_reparsed_svcs() local
326 if ((dfd = open(REPARSED_DOOR, O_RDWR|O_CREAT|O_TRUNC, in start_reparsed_svcs()
344 (void) close(dfd); in start_reparsed_svcs()
347 (void) close(dfd); in start_reparsed_svcs()
/titanic_41/usr/src/lib/libc/i386/sys/
H A Dptrace.c438 Dupfd(int fd, int dfd) in Dupfd() argument
444 if (dfd > 2 || (0 <= fd && fd <= 2)) { in Dupfd()
445 if (dfd > 2 && fd != dfd) in Dupfd()
446 (void) close(dfd); in Dupfd()
448 dfd = 3; in Dupfd()
449 if (fd != dfd) { in Dupfd()
450 dfd = fcntl(fd, F_DUPFD, (intptr_t)dfd); in Dupfd()
452 fd = dfd; in Dupfd()
/titanic_41/usr/src/lib/libc/sparc/sys/
H A Dptrace.c446 Dupfd(int fd, int dfd) in Dupfd() argument
452 if (dfd > 2 || (0 <= fd && fd <= 2)) { in Dupfd()
453 if (dfd > 2 && fd != dfd) in Dupfd()
454 (void) close(dfd); in Dupfd()
456 dfd = 3; in Dupfd()
457 if (fd != dfd) { in Dupfd()
458 dfd = fcntl(fd, F_DUPFD, (intptr_t)dfd); in Dupfd()
460 fd = dfd; in Dupfd()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dcollect.c198 int dfd; local
221 dfd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL);
222 if (dfd < 0 || fstat(dfd, &stbuf) < 0)
750 int dfd; local
758 dfd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL);
759 if (dfd >= 0)
760 dumpfd(dfd, true, true);
H A Dmap.c1414 int dfd; local
1582 dfd = dbm_dirfno(dbm);
1584 if (dfd == pfd)
1598 if (filechanged(dirfile, dfd, &std) ||
1627 if (dfd >= 0)
1628 (void) lockfile(dfd, map->map_file, ".dir", LOCK_UN);
1642 if (fchown(dfd, TrustedUid, -1) < 0 ||
1678 int dfd, pfd; local
1698 dfd = dbm_dirfno((DBM *) map->map_db1);
1699 if (dfd >= 0 && !bitset(MF_LOCKED, map->map_mflags))
[all …]
/titanic_41/usr/src/cmd/idmap/idmapd/
H A Didmapd.c68 static int dfd = -1; /* our door server fildes, for unregistration */ variable
384 dfd = xprt->xp_fd; in init_idmapd()
386 if (dfd == -1) { in init_idmapd()
390 if ((error = __idmap_reg(dfd)) != 0) { in init_idmapd()
423 (void) __idmap_unreg(dfd); in fini_idmapd()
/titanic_41/usr/src/cmd/filesync/
H A Drecon.c666 { int sfd, dfd; in samecompare() local
676 dfd = open(dstname, 0); in samecompare()
677 if (dfd < 0) { in samecompare()
688 if (read(dfd, dstbuf, COPY_BSIZE) != count) { in samecompare()
707 close(dfd); in samecompare()
/titanic_41/usr/src/cmd/utmpd/
H A Dutmpd.c883 int fd, dfd; in proc_to_fd() local
893 dfd = fcntl(fd, F_DUPFD, EXTRA_MARGIN); in proc_to_fd()
894 if (dfd > 0) { in proc_to_fd()
896 fd = dfd; in proc_to_fd()
/titanic_41/usr/src/cmd/lp/filter/postscript/postio/
H A Difdef.c912 int dfd; in dkhost_connect() local
938 while ( (dfd = ttyi = dkdial(line)) < 0 ) { in dkhost_connect()
960 close(dfd); in dkhost_connect()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c1157 int dfd; in zpool_find_import_impl() local
1182 if ((dfd = open64(rdsk, O_RDONLY)) < 0 || in zpool_find_import_impl()
1183 (dirp = fdopendir(dfd)) == NULL) { in zpool_find_import_impl()
1184 if (dfd >= 0) in zpool_find_import_impl()
1185 (void) close(dfd); in zpool_find_import_impl()
1207 slice->rn_dfd = dfd; in zpool_find_import_impl()
/titanic_41/usr/src/cmd/fs.d/autofs/
H A Dautod_main.c915 int dfd; in start_autofs_svcs() local
928 if ((dfd = open(AUTOFS_DOOR, O_RDWR|O_CREAT|O_TRUNC, in start_autofs_svcs()
945 (void) close(dfd); in start_autofs_svcs()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c1573 int dfd; in sink() local
1575 if ((dfd = open(np, O_RDONLY)) == -1) in sink()
1579 if (recvacl(dfd, exists, pflag) == ACL_FAIL) { in sink()
1580 (void) close(dfd); in sink()
1585 (void) close(dfd); in sink()
/titanic_41/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c209 int dfd; in server_main() local
303 if ((dfd = creat(door, 0644)) < 0 || close(dfd) < 0) { in server_main()
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c1197 int dfd; in dfs_root_xopen() local
1201 if ((dfd = open(rootdir, O_RDONLY)) > 0) { in dfs_root_xopen()
1202 xfd = openat(dfd, DFS_ROOT_XATTR, oflag | O_XATTR, 0600); in dfs_root_xopen()
1205 (void) close(dfd); in dfs_root_xopen()
/titanic_41/usr/src/lib/libproc/common/
H A DPcontrol.c385 dupfd(int fd, int dfd) in dupfd() argument
397 if (dfd > 0 || (0 <= fd && fd < mfd)) { in dupfd()
398 if (dfd <= 0) in dupfd()
399 dfd = mfd; in dupfd()
400 dfd = fcntl(fd, F_DUPFD, dfd); in dupfd()
402 fd = dfd; in dupfd()
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c157 int dfd; in nfsauth_svc() local
170 if ((dfd = open(MOUNTD_DOOR, O_RDWR|O_CREAT|O_TRUNC, in nfsauth_svc()
187 (void) close(dfd); in nfsauth_svc()
191 (void) close(dfd); in nfsauth_svc()

12