/titanic_51/usr/src/cmd/nohup/ |
H A D | nohup.c | 252 int tmpfd; in fd_cb() local 286 tmpfd = pr_open(g_proc, file, oflags, 0); in fd_cb() 288 if (tmpfd < 0) { in fd_cb() 296 if (tmpfd != fd) { in fd_cb() 297 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD, in fd_cb() 299 (void) pr_close(g_proc, tmpfd); in fd_cb() 314 tmpfd = pr_open(g_proc, "/dev/tty", O_RDWR, 0); in fd_cb() 316 if (tmpfd != fd && tmpfd >= 0) { in fd_cb() 317 (void) pr_fcntl(g_proc, tmpfd, F_DUP2F in fd_cb() [all...] |
/titanic_51/usr/src/cmd/mail/ |
H A D | main.c | 51 int tmpfd = -1; in main() local 148 if ((tmpfd = mkstemp(dbgfname)) == -1) { in main() 153 if ((dbgfp = fdopen(tmpfd, "w")) == (FILE *)NULL) { in main() 156 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 179 int tmpfd; in dapli_process_tavor_node() local 248 tmpfd = fcntl(fd, F_DUPFD, 256); in dapli_process_tavor_node() 249 if (tmpfd < 0) { in dapli_process_tavor_node() 254 fd = tmpfd; in dapli_process_tavor_node() 476 int tmpfd; in dapls_ib_open_hca() local 502 tmpfd = fcntl(fd, F_DUPFD, 256); in dapls_ib_open_hca() 503 if (tmpfd < 0) { in dapls_ib_open_hca() 509 fd = tmpfd; in dapls_ib_open_hca()
|
/titanic_51/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 671 int fd = -1, tmpfd = -1; in kmf_download_crl() local 695 tmpfd = mkstemp(tempfn); in kmf_download_crl() 697 if (tmpfd == -1) { in kmf_download_crl() 704 ret = download_file(uri, proxy, proxy_port, maxsecs, tmpfd); in kmf_download_crl() 705 (void) close(tmpfd); in kmf_download_crl() 745 int fd = -1, tmpfd = -1; in kmf_download_cert() local 770 tmpfd = mkstemp(tempfn); in kmf_download_cert() 772 if (tmpfd == -1) { in kmf_download_cert() 779 ret = download_file(uri, proxy, proxy_port, maxsecs, tmpfd); in kmf_download_cert() 780 (void) close(tmpfd); in kmf_download_cert() [all...] |
H A D | policy.c | 1041 int prefix_len, tmpfd; in update_policyfile() local 1085 tmpfd = mkstemp(tmpfilename); in update_policyfile() 1087 if (tmpfd == -1) { in update_policyfile() 1091 if ((tmpfile = fdopen(tmpfd, "w")) == NULL) { in update_policyfile() 1092 (void) close(tmpfd); in update_policyfile() 1110 if (fchmod(tmpfd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) == -1) { in update_policyfile() 1111 (void) close(tmpfd); in update_policyfile()
|
/titanic_51/usr/src/cmd/sunpc/other/ |
H A D | dos2unix.c | 95 static int tmpfd = -1; variable 197 tmpfd = mkstemp(out_file_name); in main() 198 if (tmpfd == -1) { in main() 202 (void) close(tmpfd); in main()
|
H A D | unix2dos.c | 97 static int tmpfd = -1; variable 200 tmpfd = mkstemp(out_file_name); in main() 201 if (tmpfd == -1) { in main() 205 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/cmd/genmsg/ |
H A D | main.c | 104 int tmpfd = -1; in main() local 302 if ((tmpfd = mkstemp(tmpfile)) == -1) { in main() 310 if ((newfp = fdopen(tmpfd, "w")) == NULL) { in main() 316 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/cmd/vi/misc/ |
H A D | xstr.c | 74 int tmpfd; variable 111 tmpfd = mkstemp(strings); 112 if (tmpfd == -1) { 117 (void) close(tmpfd);
|
/titanic_51/usr/src/cmd/xstr/ |
H A D | xstr.c | 57 int tmpfd; variable 97 tmpfd = mkstemp(strings); in main() 98 if (tmpfd == -1) { in main() 103 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | sys-solaris.c | 559 int udpfd = -1, tmpfd; in plumb_ipif() local 572 tmpfd = open(drvnam, O_RDWR | O_NONBLOCK, 0); in plumb_ipif() 573 if (tmpfd < 0) { in plumb_ipif() 581 if (strioctl(tmpfd, PPPIO_DEBUG, &x, sizeof (x), 0) < 0) { in plumb_ipif() 585 if (myioctl(tmpfd, I_PUSH, IP_MOD_NAME) < 0) { in plumb_ipif() 604 if (myioctl(tmpfd, IF_UNITSEL, &ifunit) < 0) { in plumb_ipif() 609 ipmuxid = myioctl(udpfd, I_PLINK, (void *)tmpfd); in plumb_ipif() 615 ipmuxid = myioctl(ipfd, I_LINK, (void *)tmpfd); in plumb_ipif() 631 (void) close(tmpfd); in plumb_ipif() 636 (void) close(tmpfd); in plumb_ipif() 3133 int udp6fd = -1, tmpfd; plumb_ip6if() local [all...] |
/titanic_51/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 84 int tmpfd = -1; in mv_xattrs() local 112 if ((tmpfd = dup(indfd)) == -1) { in mv_xattrs() 117 if ((dirp = fdopendir(tmpfd)) == NULL) { in mv_xattrs()
|
/titanic_51/usr/src/cmd/cron/ |
H A D | crontab.c | 136 int tmpfd = -1; in main() local 252 tmpfd = mkstemp(edtemp); in main() 253 if (fchown(tmpfd, ruid, -1) == -1) { in main() 254 (void) close(tmpfd); in main() 257 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/cmd/auditreduce/ |
H A D | main.c | 842 int tmpfd = -1; in open_outfile() local 848 if ((tmpfd = mkstemp(f_outtemp)) == -1) { in open_outfile() 855 if (tmpfd != fileno(stdout)) { in open_outfile() 856 if ((dup2(tmpfd, fileno(stdout))) == -1) { in open_outfile() 863 (void) close(tmpfd); in open_outfile()
|
/titanic_51/usr/src/cmd/refer/ |
H A D | sortbib.c | 26 int tmpfd = -1; variable 76 if ((tmpfd = mkstemp(tempfile)) == -1) in main() 79 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 113 int tmpfd = -1; in main() local 135 tmpfd = mkstemp(tmpfil); in main() 136 if (tmpfd == -1 || fchown(tmpfd, getuid(), getgid()) == -1) { in main() 140 (void) close(tmpfd); in main()
|
/titanic_51/usr/src/lib/libshell/common/sh/ |
H A D | subshell.c | 80 short tmpfd; /* saved tmp file descriptor */ member 111 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0) in sh_subtmpfile() 553 sp->tmpfd = -1; in sh_subshell() 635 if(sp->tmpfd>=0) in sh_subshell() 638 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1) in sh_subshell() 640 sh_close(sp->tmpfd); in sh_subshell()
|
/titanic_51/usr/src/cmd/sendmail/aux/ |
H A D | vacation.c | 756 int i, pipefd[2], tmpfd; local 809 tmpfd = -1; 810 tmpfd = mkstemp(tmpf_name); 811 if (tmpfd == -1) { 815 tmpf = fdopen(tmpfd, "w");
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 89 short tmpfd; /* saved tmp file descriptor */ member 125 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0) in sh_subtmpfile() 608 sp->tmpfd = -1; in sh_subshell() 698 if(sp->tmpfd>=0) in sh_subshell() 701 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1) in sh_subshell() 703 sh_close(sp->tmpfd); in sh_subshell()
|
/titanic_51/usr/src/cmd/mailx/ |
H A D | fio.c | 496 int tmpfd = -1; in edstop() local 529 if ((tmpfd = mkstemp(tempname)) == -1) { in edstop() 535 if ((obuf = fdopen(tmpfd, "w")) == NULL) { in edstop() 540 (void) close(tmpfd); in edstop()
|
/titanic_51/usr/src/cmd/ttymon/ |
H A D | ttymon.c | 384 int fd, tmpfd; local 480 if ((tmpfd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) == -1) { 487 (void) close(tmpfd);
|
/titanic_51/usr/src/lib/librsm/common/ |
H A D | rsmlib.c | 122 int e, tmpfd; in _rsm_librsm_init() local 164 tmpfd = fcntl(_rsm_fd, F_DUPFD, 3); in _rsm_librsm_init() 165 if (tmpfd < 0) { in _rsm_librsm_init() 170 _rsm_fd = tmpfd; in _rsm_librsm_init() 762 int tmpfd; in rsm_memseg_export_create() local 841 tmpfd = fcntl(p->rsmseg_fd, F_DUPFD, 256); in rsm_memseg_export_create() 843 if (tmpfd < 0) { in rsm_memseg_export_create() 848 p->rsmseg_fd = tmpfd; in rsm_memseg_export_create() 1171 int tmpfd; in rsm_memseg_import_connect() local 1223 tmpfd in rsm_memseg_import_connect() [all...] |
/titanic_51/usr/src/lib/passwdutil/ |
H A D | files_attr.c | 1143 int tmpfd; in files_update_history() local 1161 if ((tmpfd = open(HISTEMP, O_WRONLY|O_CREAT|O_TRUNC, HISTMODE)) < 0) { in files_update_history() 1164 (void) fchown(tmpfd, (uid_t)0, (gid_t)0); in files_update_history() 1172 if ((dst = fdopen(tmpfd, "wF")) == NULL) { in files_update_history()
|
/titanic_51/usr/src/uts/common/syscall/ |
H A D | poll.c | 1625 int tmpfd; in pcacheset_resolve() local 1663 tmpfd = cached[count].fd; in pcacheset_resolve() 1664 if (pcache_delete_fd(ps, tmpfd, count, which, in pcacheset_resolve() 1678 if (cached[i].fd == tmpfd) { in pcacheset_resolve() 1680 tmpfd, (ssize_t)i, in pcacheset_resolve() 1698 if ((tmpfd = current[count].fd) >= 0) { in pcacheset_resolve() 1702 if ((fp = getf(tmpfd)) == NULL) { in pcacheset_resolve() 1739 releasef(tmpfd); in pcacheset_resolve() 1762 releasef(tmpfd); in pcacheset_resolve()
|
/titanic_51/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 1434 int rc = 0, lockfd = 0, tmpfd = 0; in da_update_defattrs() local 1445 if ((tmpfd = open(tmpdefpath, O_RDWR|O_CREAT, DA_DBMODE)) == -1) { in da_update_defattrs() 1449 (void) fchown(tmpfd, DA_UID, DA_GID); in da_update_defattrs() 1450 if ((tmpfp = fdopen(tmpfd, "r+")) == NULL) { in da_update_defattrs() 1451 (void) close(tmpfd); in da_update_defattrs() 1463 (void) close(tmpfd); in da_update_defattrs()
|