/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tag.h | 22 int tfd; member in struct:tag_files
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rename.c | 51 renameat(int ffd, char *from, int tfd, char *to) argument 61 if ((error = fgetstartvp(tfd, to, &tstartvp)) != 0)
|
H A D | link.c | 51 linkat(int ffd, char *from, int tfd, char *to, int flag) argument 66 if ((error = fgetstartvp(tfd, to, &tstartvp)) != 0)
|
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 185 int tfd; local 200 if ((tfd = open(dev, O_WRONLY|O_NOCTTY)) == -1) { 203 if (!isatty(tfd)) { 204 (void) close(tfd); 215 if (fstat(tfd, &stbuf) < 0 || 217 (void) close(tfd); 221 (void) close(tfd); 226 (void) close(tfd);
|
/illumos-gate/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; 52 tfd [all...] |
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);
|
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; 144 tfd [all...] |
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 93 int tfd, *shndx, ndx = 1, off = 0; local 167 if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) { 175 if ((telf = elf_begin(tfd, ELF_C_WRITE, 0)) == NULL) { 328 (void) close(tfd); 338 (void) fchmod(tfd, sbuf.st_mode); 340 (void) close(tfd);
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 36 get_attrdirs(int indfd, int outdfd, char *attrfile, int *sfd, int *tfd) argument 61 *tfd = fd2;
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv.c | 179 int ufd, tfd; local
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | repval.c | 460 int tfd; local 471 if ((tfd = mkstemp(genfmri_temp_filename)) == -1) { 475 if (fchmod(tfd, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == -1) { 476 (void) close(tfd); 481 if ((tfp = fdopen(tfd, "w")) == NULL) { 482 (void) close(tfd);
|
/illumos-gate/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 ! [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);
|
/illumos-gate/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); [all...] |
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | setupterm.c | 236 int n, tfd; local 252 tfd = -1; 266 tfd = open(fname, 0); 270 if ((tfd < 0) && (errno == EACCES)) 274 if (tfd < 0) { 282 tfd = open(fname, 0); 289 if (tfd < 0) { 313 n = (int)read(tfd, tiebuf, sizeof (tiebuf)); 314 (void) close(tfd);
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | libcontract.c | 198 ct_ctl_newct(int cfd, ctevid_t evid, int tfd) argument 200 if (ioctl(cfd, CT_CNEWCT, tfd) == -1)
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ttyname.c | 736 int tfd = open("/dev/console", O_WRONLY); local 737 if (tfd >= 0) { 742 (void) write(tfd, buf, strlen(buf)); 743 (void) close(tfd);
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | output.c | 692 int tfd = -1; local 700 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0) 702 if ((telf = elf_begin(tfd, ELF_C_WRITE, NULL)) == NULL) 712 (void) close(tfd);
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.c | 453 int cfd, tfd; local 500 if ((tfd = mkstemp(tuname)) == -1) 505 if (fchmod(tfd, 0644) == -1) 507 if ((tfp = fdopen(tfd, "w")) == NULL)
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt_xlate.h | 147 fd_t tfd; member in union:convert
|
/illumos-gate/usr/src/cmd/lofiadm/ |
H A D | main.c | 1485 int tfd = -1; local 1570 if ((tfd = mkstemp64(tmpfilename)) == -1) 1650 wbytes = write(tfd, compressed_seg, len_compressed + SEGHDR); 1718 if (lseek(tfd, 0, SEEK_SET) != 0) 1724 rbytes = read(tfd, compressed_seg, compressed_segsize + SEGHDR); 1750 (void) close(tfd); 1754 if (tfd != -1) 1776 if (tfd != -1) 1777 (void) close(tfd);
|
/illumos-gate/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, t [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 692 int tfd, len, rval; local 705 tfd = open64(CTFS_ROOT "/device/template", O_RDWR); 706 (void) ct_tmpl_set_critical(tfd, CT_DEV_EV_OFFLINE); 707 (void) ct_tmpl_set_cookie(tfd, (uint64_t)(uintptr_t)stp); 710 if ((rval = ct_dev_tmpl_set_minor(tfd, &link_path[13])) != 0) 713 else if ((rval = ct_tmpl_create(tfd, &stp->set_ctid)) != 0) 717 (void) close(tfd);
|