/titanic_44/usr/src/cmd/backup/restore/ |
H A D | utilities.c | 150 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 D | dirs.c | 665 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 D | restore.c | 855 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 D | tape.c | 754 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_44/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncloop.c | 63 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_44/usr/src/uts/common/syscall/ |
H A D | readlink.c | 54 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 D | symlink.c | 56 symlinkat(char *target, int dfd, char *linkname) in symlinkat() argument 70 if ((error = fgetstartvp(dfd, linkname, &startvp)) != 0) in symlinkat()
|
/titanic_44/usr/src/lib/libc/port/sys/ |
H A D | open.c | 51 __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_44/usr/src/cmd/fs.d/nfs/nfsmapid/ |
H A D | nfsmapid.c | 260 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_44/usr/src/cmd/fs.d/reparsed/ |
H A D | reparsed.c | 315 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_44/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 446 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_44/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 438 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_44/usr/src/cmd/sendmail/src/ |
H A D | collect.c | 198 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 D | map.c | 1414 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_44/usr/src/cmd/idmap/idmapd/ |
H A D | idmapd.c | 68 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_44/usr/src/cmd/filesync/ |
H A D | recon.c | 666 { 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_44/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 883 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_44/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | ifdef.c | 912 int dfd; in dkhost_connect() local 938 while ( (dfd = ttyi = dkdial(line)) < 0 ) { in dkhost_connect() 960 close(dfd); in dkhost_connect()
|
/titanic_44/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 1157 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_44/usr/src/cmd/fs.d/autofs/ |
H A D | autod_main.c | 915 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_44/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 1573 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_44/usr/src/cmd/svr4pkg/pkgserv/ |
H A D | pkgserv.c | 209 int dfd; in server_main() local 303 if ((dfd = creat(door, 0644)) < 0 || close(dfd) < 0) { in server_main()
|
/titanic_44/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | dfs.c | 1197 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_44/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 385 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_44/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 157 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()
|