/titanic_44/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_hx.c | 26 static int tfd = -1; variable 31 if (tfp && tfd != -1) { 33 return tfd; 37 tfd = 0; 40 tfd = open(fname, O_RDONLY); 41 if (tfd != -1) 42 tfp = fdopen(tfd, "r"); 44 return tfd; 50 int cfd = tfd; in hex_close() 52 tfd = -1; in hex_close()
|
H A D | ipft_td.c | 54 static int tfd = -1; variable 60 if (tfd != -1) 61 return tfd; 64 tfd = 0; 67 tfd = open(fname, O_RDONLY); 68 tfp = fdopen(tfd, "r"); 70 return tfd; 77 return close(tfd); in tcpd_close()
|
H A D | ipft_tx.c | 42 static int tfd = -1; variable 123 if (tfp && tfd != -1) { 125 return tfd; 129 tfd = 0; 132 tfd = open(fname, O_RDONLY); 133 if (tfd != -1) 134 tfp = fdopen(tfd, "r"); 136 return tfd; 142 int cfd = tfd; in text_close() 144 tfd = -1; in text_close()
|
/titanic_44/usr/src/lib/libbc/libc/sys/common/ |
H A D | send.c | 87 int tfd; local 91 tfd = open(logname, O_WRONLY); 92 if (tfd == -1) 95 if (tfd != s) { 96 if (dup2(tfd, s) < 0) { 97 close(tfd); 100 close(tfd);
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 185 int tfd; in find_user() local 200 if ((tfd = open(dev, O_WRONLY|O_NOCTTY)) == -1) { in find_user() 203 if (!isatty(tfd)) { in find_user() 204 (void) close(tfd); in find_user() 215 if (fstat(tfd, &stbuf) < 0 || in find_user() 217 (void) close(tfd); in find_user() 221 (void) close(tfd); in find_user() 226 (void) close(tfd); in find_user()
|
/titanic_44/usr/src/cmd/lp/lib/lp/ |
H A D | tidbit.c | 241 tfd; local 258 tfd = -1; 260 tfd = open_terminfo_file(terminfo, term); 262 if (tfd < 0) 263 tfd = open_terminfo_file(TERMINFO, term); 265 if (tfd >= 0) 266 (void) Fstat(tfd, &statbuf); 268 if (tfd < 0 || !statbuf.st_size) { 280 n = Read(tfd, pt->tiebuf, statbuf.st_size); 281 (void) Close(tfd);
|
/titanic_44/usr/src/cmd/backup/restore/ |
H A D | restore.c | 995 int fromfd, fromdir, tofd, todir, tfd; local 999 fromfd = tofd = fromdir = todir = tfd = -1; 1001 resolve(orig, &tfd, &from); 1002 if (tfd == AT_FDCWD && pathconf(orig, _PC_XATTR_EXISTS) != 1) { 1006 if ((fromfd = openat64(tfd, from, O_RDONLY|O_NONBLOCK)) == -1) { 1009 if (tfd != AT_FDCWD) (void) close(tfd); 1015 if (tfd != AT_FDCWD) (void) close(tfd); 1023 if (tfd != AT_FDCWD) (void) close(tfd); 1026 if (tfd != AT_FDCWD) (void) close(tfd); 1028 resolve(targ, &tfd, &to); [all …]
|
H A D | utilities.c | 1101 int tfd; local 1103 *fd = tfd = AT_FDCWD; 1107 (*fd = openat64(tfd, *rpath, O_RDONLY)) > 0) { 1108 if (tfd != AT_FDCWD) (void) close(tfd); 1109 tfd = *fd; 1115 if (*fd < 0 || (*fd = openat64(tfd, ".", O_RDONLY|O_XATTR)) < 0) { 1122 if (tfd != AT_FDCWD) (void) close(tfd);
|
/titanic_44/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 93 int tfd, *shndx, ndx = 1, off = 0; in delete_comment() local 167 if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) { in delete_comment() 175 if ((telf = elf_begin(tfd, ELF_C_WRITE, 0)) == NULL) { in delete_comment() 328 (void) close(tfd); in delete_comment() 338 (void) fchmod(tfd, sbuf.st_mode); in delete_comment() 340 (void) close(tfd); in delete_comment()
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | rename.c | 51 renameat(int ffd, char *from, int tfd, char *to) in renameat() argument 61 if ((error = fgetstartvp(tfd, to, &tstartvp)) != 0) in renameat()
|
H A D | link.c | 51 linkat(int ffd, char *from, int tfd, char *to, int flag) in linkat() argument 66 if ((error = fgetstartvp(tfd, to, &tstartvp)) != 0) in linkat()
|
/titanic_44/usr/src/lib/libcurses/screen/ |
H A D | setupterm.c | 236 int n, tfd; in setupterm() local 252 tfd = -1; in setupterm() 266 tfd = open(fname, 0); in setupterm() 270 if ((tfd < 0) && (errno == EACCES)) in setupterm() 274 if (tfd < 0) { in setupterm() 282 tfd = open(fname, 0); in setupterm() 289 if (tfd < 0) { in setupterm() 313 n = (int)read(tfd, tiebuf, sizeof (tiebuf)); in setupterm() 314 (void) close(tfd); in setupterm()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | repval.c | 460 int tfd; in repvals_to_file() local 471 if ((tfd = mkstemp(genfmri_temp_filename)) == -1) { in repvals_to_file() 475 if (fchmod(tfd, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == -1) { in repvals_to_file() 476 (void) close(tfd); in repvals_to_file() 481 if ((tfp = fdopen(tfd, "w")) == NULL) { in repvals_to_file() 482 (void) close(tfd); in repvals_to_file()
|
/titanic_44/usr/src/cmd/logadm/ |
H A D | conf.c | 445 int cfd, tfd; in conf_close() local 492 if ((tfd = mkstemp(tuname)) == -1) in conf_close() 497 if (fchmod(tfd, 0644) == -1) in conf_close() 499 if ((tfp = fdopen(tfd, "w")) == NULL) in conf_close()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | ttyname.c | 736 int tfd = open("/dev/console", O_WRONLY); in get_pri_dirs() local 737 if (tfd >= 0) { in get_pri_dirs() 742 (void) write(tfd, buf, strlen(buf)); in get_pri_dirs() 743 (void) close(tfd); in get_pri_dirs()
|
/titanic_44/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 36 get_attrdirs(int indfd, int outdfd, char *attrfile, int *sfd, int *tfd) in get_attrdirs() argument 61 *tfd = fd2; in get_attrdirs()
|
/titanic_44/usr/src/cmd/lofiadm/ |
H A D | main.c | 1418 int tfd = -1; in lofi_compress() local 1503 if ((tfd = mkstemp64(tmpfilename)) == -1) in lofi_compress() 1583 wbytes = write(tfd, compressed_seg, len_compressed + SEGHDR); in lofi_compress() 1651 if (lseek(tfd, 0, SEEK_SET) != 0) in lofi_compress() 1657 rbytes = read(tfd, compressed_seg, compressed_segsize + SEGHDR); in lofi_compress() 1683 (void) close(tfd); in lofi_compress() 1687 if (tfd != -1) in lofi_compress() 1709 if (tfd != -1) in lofi_compress() 1710 (void) close(tfd); in lofi_compress()
|
/titanic_44/usr/src/tools/ctf/cvt/ |
H A D | output.c | 692 int tfd = -1; in write_ctf() local 700 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0) in write_ctf() 702 if ((telf = elf_begin(tfd, ELF_C_WRITE, NULL)) == NULL) in write_ctf() 712 (void) close(tfd); in write_ctf()
|
/titanic_44/usr/src/lib/libcontract/common/ |
H A D | libcontract.c | 198 ct_ctl_newct(int cfd, ctevid_t evid, int tfd) in ct_ctl_newct() argument 200 if (ioctl(cfd, CT_CNEWCT, tfd) == -1) in ct_ctl_newct()
|
/titanic_44/usr/src/lib/libbsm/common/ |
H A D | adt_xlate.h | 147 fd_t tfd; member
|
H A D | adt_token.c | 916 sock = ((union convert *)p_data)->tfd; in adt_to_in_peer()
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | queue.c | 355 int tfd = -1; local 376 tfd = open(tf, TF_OPEN_FLAGS, QueueFileMode); \ 395 if (tfd < 0 || 397 !lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB) || 400 (void *) &tfd, SM_IO_WRONLY, 408 tf, (int) geteuid(), tfd, tfp); 421 if (tfd < 0) 424 if (tfd < 0) 439 if (tfd >= 0) 445 if (lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB)) [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 692 int tfd, len, rval; in ses_create_contract() local 705 tfd = open64(CTFS_ROOT "/device/template", O_RDWR); in ses_create_contract() 706 (void) ct_tmpl_set_critical(tfd, CT_DEV_EV_OFFLINE); in ses_create_contract() 707 (void) ct_tmpl_set_cookie(tfd, (uint64_t)(uintptr_t)stp); in ses_create_contract() 710 if ((rval = ct_dev_tmpl_set_minor(tfd, &link_path[13])) != 0) in ses_create_contract() 713 else if ((rval = ct_tmpl_create(tfd, &stp->set_ctid)) != 0) in ses_create_contract() 717 (void) close(tfd); in ses_create_contract()
|
/titanic_44/usr/src/cmd/ypcmd/ |
H A D | ypserv.c | 179 int ufd, tfd; in ypinit() local
|