/illumos-gate/usr/src/cmd/ctwatch/ |
H A D | ctwatch.c | 233 watched_fd_t *wfd; in main() local 264 wfd = calloc(argc, sizeof (struct pollfd)); in main() 265 if (wfd == NULL) in main() 287 wfd[nfds].wf_fd = in main() 291 wfd[nfds].wf_type = type = get_type(argv[i]); in main() 293 (void) close(wfd[nfds].wf_fd); in main() 336 wfd[nfds].wf_fd = fd; in main() 337 wfd[nfds].wf_type = type; in main() 350 if (ioctl(wfd[i].wf_fd, CT_ERELIABLE, NULL) == -1) { in main() 357 (void) ioctl(wfd[i].wf_fd, CT_ERESET, NULL); in main() [all …]
|
/illumos-gate/usr/src/test/smbsrv-tests/cmd/ |
H A D | run_smbtorture.py | 79 def run(self, rfd, wfd, timeout, cmd): argument 83 def finish(self, start, wfd): argument 85 wfd.write(f'END | {self} | {timediff}\n') 89 wfd.write(f'START | {self.name} | {starttime.time()}\n') 91 return finish(self, starttime, wfd) 95 subprocess.run(cmd, universal_newlines=True, stdout=wfd, 110 wfd.write('\nKilled due to timeout\n') 113 return finish(self, starttime, wfd)
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | sfsasl.c | 580 int wfd; 618 where, rfd, wfd, err); 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, 830 int r, rfd, wfd, try, ssl_err; local 857 wfd = SSL_get_wfd(so->con); [all …]
|
H A D | srvrsmtp.c | 620 int rfd, wfd; local 1877 wfd = sm_io_getinfo(OutChannel, SM_IO_WHAT_FD, NULL); 1879 if (rfd < 0 || wfd < 0 || 1881 SSL_set_wfd(srv_ssl, wfd) <= 0) 1905 i = tls_retry(srv_ssl, rfd, wfd, tlsstart,
|
H A D | deliver.c | 6106 int rfd, wfd; local 6159 wfd = sm_io_getinfo(mci->mci_out, SM_IO_WHAT_FD, NULL); 6162 if (rfd < 0 || wfd < 0 || 6164 (result = SSL_set_wfd(clt_ssl, wfd)) != 1) 6185 i = tls_retry(clt_ssl, rfd, wfd, tlsstart,
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
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 929 if ((wfd = open(wname, (O_RDWR | O_CREAT | O_TRUNC), in main() 967 ret = decide(file, fd, elf, flags, wname, wfd, osabi); in main() 978 if (wfd) in main() [all …]
|
H A D | elfdump.c | 4971 const char *wname, int wfd, uchar_t osabi) in regular() argument 5171 if (wfd) { in regular() 5178 if (write(wfd, _cache->c_data->d_buf, in regular() 5206 if ((wfd == 0) && (flags & FLG_CTL_MATCH) && in regular()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | update.c | 233 int wfd; local 265 wfd = open(tmpname, O_CREAT|O_RDWR|O_TRUNC, 267 if (wfd == -1) { 273 wf = fdopen(wfd, "w"); 277 (void) close(wfd);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | procclose.c | 44 if (p->wfd >= 0 && p->wfd != p->rfd) in procclose() 45 close(p->wfd); in procclose()
|
H A D | procopen.c | 469 proc->wfd = -1; in procopen() 862 proc->wfd = pio[1]; in procopen() 867 proc->wfd = pio[0]; in procopen() 869 proc->wfd = poi[1]; in procopen() 880 if (proc->wfd > 2) in procopen() 881 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC); in procopen()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cu.c | 1487 int wfd; in w_char() local 1491 wfd = WIOFD(fd); in w_char() 1492 wiobuf = &Wiobuf[wfd*WRIOBSZ]; in w_char() 1494 if (Wiop[wfd] >= &wiobuf[WRIOBSZ]) { in w_char() 1507 int wfd; in wioflsh() local 1511 wfd = WIOFD(fd); in wioflsh() 1512 wiobuf = &Wiobuf[wfd*WRIOBSZ]; in wioflsh() 1514 if (Wiop[wfd] > wiobuf) { in wioflsh() 1516 while(write(fd, wiobuf, (Wiop[wfd] - wiobuf)) < 0) { in wioflsh() 1524 Wiop[wfd] = wiobuf; in wioflsh() [all …]
|
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | process.c | 471 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile, in substitute() 474 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl || in substitute() 475 write(cp->u.s->wfd, "\n", 1) != 1) in substitute() 768 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd)) in cfclose() 770 cp->u.s->wfd = -1; in cfclose()
|
H A D | defs.h | 66 int wfd; /* Cached file descriptor */ member
|
H A D | compile.c | 558 s->wfd = -1; in compile_flags() 614 if (!aflag && (s->wfd = open(wfile, in compile_flags()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | uart_emul.c | 125 int wfd; /* fd for writing, may be == rfd */ member 203 (void)write(tf->wfd, &wb, 1); in ttywrite() 879 sc->tty.rfd = sc->tty.wfd = -1; in uart_sock_backend() 901 sc->tty.wfd = STDOUT_FILENO; in uart_stdio_backend() 906 if (fcntl(sc->tty.wfd, F_SETFL, O_NONBLOCK) != 0) in uart_stdio_backend() 940 sc->tty.rfd = sc->tty.wfd = fd; in uart_tty_backend()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cp.c | 243 int wfd; in visit() local 598 …else if ((wfd = open(state->path, (st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags)|O_cloex… in visit() 611 close(wfd); in visit() 614 if (!(op = sfnew(NiL, NiL, SF_UNBOUND, wfd, SF_WRITE))) in visit() 617 close(wfd); in visit() 626 if (sfsync(op) || state->sync && fsync(wfd) || sfclose(op)) in visit() 637 close(wfd); in visit()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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)
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | proc.h | 89 int wfd; /* write fd if applicable */ member
|
/illumos-gate/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()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/ |
H A D | RELEASE | 1490 procopen: FD_CLOEXEC rfd && wfd
|