/titanic_41/usr/src/cmd/ctwatch/ |
H A D | ctwatch.c | 235 watched_fd_t *wfd; in main() local 266 wfd = calloc(argc, sizeof (struct pollfd)); in main() 267 if (wfd == NULL) in main() 289 wfd[nfds].wf_fd = in main() 293 wfd[nfds].wf_type = type = get_type(argv[i]); in main() 295 (void) close(wfd[nfds].wf_fd); in main() 338 wfd[nfds].wf_fd = fd; in main() 339 wfd[nfds].wf_type = type; in main() 352 if (ioctl(wfd[i].wf_fd, CT_ERELIABLE, NULL) == -1) { in main() 359 (void) ioctl(wfd[i].wf_fd, CT_ERESET, NULL); in main() [all …]
|
/titanic_41/usr/src/cmd/sgs/elfdump/common/ |
H A D | lintsup.c | 47 const char *wname, int wfd, uchar_t osabi) in regular32() argument 49 return (regular64(file, fd, elf, flags, wname, wfd, osabi)); in regular32() 54 const char *wname, int wfd, uchar_t osabi) in regular64() argument 56 return (regular32(file, fd, elf, flags, wname, wfd, osabi)); in regular64()
|
H A D | main.c | 548 const char *wname, int wfd, uchar_t osabi) in decide() argument 553 r = regular64(file, fd, elf, flags, wname, wfd, osabi); in decide() 555 r = regular32(file, fd, elf, flags, wname, wfd, osabi); in decide() 562 const char *wname, int wfd, uchar_t osabi) in archive() argument 704 wname, wfd, osabi) == 1) in archive() 709 wname, wfd, osabi) == 1) in archive() 730 int var, fd, wfd = 0; in main() local 935 if ((wfd = open(wname, (O_RDWR | O_CREAT | O_TRUNC), in main() 970 ret = archive(file, fd, elf, flags, wname, wfd, osabi); in main() 973 ret = decide(file, fd, elf, flags, wname, wfd, osabi); in main() [all …]
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | sfsasl.c | 577 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where) in tls_retry() argument 580 int wfd; 618 where, rfd, wfd, err); 623 (err == SSL_ERROR_WANT_WRITE && wfd >= FD_SETSIZE))) 629 where, rfd, wfd); 656 FD_SET(wfd, &ssl_maskw); 661 ret = select(wfd + 1, NULL, &ssl_maskw, &ssl_maskx, 718 int r, rfd, wfd, try, ssl_err; local 746 wfd = SSL_get_wfd(so->con); 747 try = tls_retry(so->con, rfd, wfd, tlsstart, [all …]
|
/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | procclose.c | 46 if (p->wfd >= 0 && p->wfd != p->rfd) in procclose() 47 close(p->wfd); in procclose()
|
H A D | procopen.c | 426 proc->wfd = -1; in procopen() 800 proc->wfd = pio[1]; in procopen() 805 proc->wfd = pio[0]; in procopen() 807 proc->wfd = poi[1]; in procopen() 818 if (proc->wfd > 2) in procopen() 819 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC); in procopen()
|
/titanic_41/usr/src/cmd/keyserv/ |
H A D | update.c | 235 int wfd; local 267 wfd = open(tmpname, O_CREAT|O_RDWR|O_TRUNC, 269 if (wfd == -1) { 275 wf = fdopen(wfd, "w"); 279 (void) close(wfd);
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | astcopy.c | 51 astcopy(int rfd, int wfd, off_t n) in astcopy() argument 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1); in astcopy() 88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1; in astcopy()
|
/titanic_41/usr/src/lib/libast/common/disc/ |
H A D | sfdcmore.c | 99 int wfd = sffileno(rp); local 104 write(wfd, label, n); 127 write(wfd, "\r", 1); 129 write(wfd, " ", 1); 130 write(wfd, "\r", 1);
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | cu.c | 1494 int wfd; in w_char() local 1498 wfd = WIOFD(fd); in w_char() 1499 wiobuf = &Wiobuf[wfd*WRIOBSZ]; in w_char() 1501 if (Wiop[wfd] >= &wiobuf[WRIOBSZ]) { in w_char() 1506 *(Wiop[wfd]++) = _Cxc & WMASK(fd); /* mask off appropriate bits */ in w_char() 1515 int wfd; local 1519 wfd = WIOFD(fd); 1520 wiobuf = &Wiobuf[wfd*WRIOBSZ]; 1522 if (Wiop[wfd] > wiobuf) { 1524 while(write(fd, wiobuf, (Wiop[wfd] - wiobuf)) < 0) { [all …]
|
/titanic_41/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 410 int wfd = -1; local 415 wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600); 416 if (wfd == -1) { 439 close(wfd); 444 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) { 446 close(wfd); 450 close(wfd);
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | channels.c | 166 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument 171 channel_max_fd = MAX(channel_max_fd, wfd); in channel_register_fds() 177 c->wfd = wfd; in channel_register_fds() 178 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds() 186 if (!isatty(c->wfd)) { in channel_register_fds() 188 c->self, c->wfd); in channel_register_fds() 193 c->wfd_isatty = isatty(c->wfd); in channel_register_fds() 199 if (wfd != -1) in channel_register_fds() 200 set_nonblock(wfd); in channel_register_fds() 212 channel_new(char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument [all …]
|
H A D | nchan.c | 482 if (channel_close_fd(&c->wfd) < 0) in chan_shutdown_write() 485 c->self, c->wfd, strerror(errno)); in chan_shutdown_write()
|
/titanic_41/usr/src/cmd/sed/ |
H A D | process.c | 457 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile, in substitute() 460 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl || in substitute() 461 write(cp->u.s->wfd, "\n", 1) != 1) in substitute() 754 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd)) in cfclose() 756 cp->u.s->wfd = -1; in cfclose()
|
H A D | defs.h | 66 int wfd; /* Cached file descriptor */ member
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | cp.c | 225 int wfd; in visit() local 575 …else if ((wfd = open(state->path, st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags, ent->fts… in visit() 588 close(wfd); in visit() 593 if (!(op = sfnew(NiL, NiL, SF_UNBOUND, wfd, SF_WRITE))) in visit() 596 close(wfd); in visit() 605 if (sfsync(op) || state->sync && fsync(wfd) || sfclose(op)) in visit() 615 close(wfd); in visit()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/ |
H A D | wanboot-cgi.c | 274 int wfd = -1; in copy_file() local 278 (wfd = open(dest, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR)) < 0 || in copy_file() 292 if (!write_buffer(wfd, buf, validsize)) { in copy_file() 316 if (wfd != -1) { in copy_file() 317 (void) close(wfd); in copy_file() 792 int wfd = -1; in build_trustfile() local 847 if ((wfd = open((char *)truststorepath, in build_trustfile() 851 if ((wfp = fdopen(wfd, "w+")) == NULL) { in build_trustfile()
|
/titanic_41/usr/src/lib/libast/common/sfio/ |
H A D | sfpopen.c | 172 (sflags&SF_READ) ? proc->rfd : proc->wfd, sflags|((sflags&SF_RDWR)?0:SF_READ))) || 173 _sfpopen(f, (sflags&SF_READ) ? proc->wfd : -1, proc->pid, pflags) < 0)
|
/titanic_41/usr/src/lib/libast/common/include/ |
H A D | proc.h | 85 int wfd; /* write fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/amd64/include/ast/ |
H A D | proc.h | 94 int wfd; /* write fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/i386/include/ast/ |
H A D | proc.h | 94 int wfd; /* write fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | proc.h | 94 int wfd; /* write fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/sparc/include/ast/ |
H A D | proc.h | 94 int wfd; /* write fd if applicable */ member
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 672 int n, wfd = fileno(stdin); in readwrite() local 683 pfd[1].fd = wfd; in readwrite() 721 if ((n = read(wfd, buf, plen)) < 0) in readwrite()
|
/titanic_41/usr/src/cmd/ssh/include/ |
H A D | channels.h | 84 int wfd; /* write fd */ member
|