Home
last modified time | relevance | path

Searched refs:POLL_STDOUT (Results 1 – 2 of 2) sorted by relevance

/src/contrib/netcat/
H A Dnetcat.c83 #define POLL_STDOUT 3 macro
884 pfd[POLL_STDOUT].fd = (tun_fd != -1) ? tun_fd : stdout_fd; in readwrite()
885 pfd[POLL_STDOUT].events = 0; in readwrite()
897 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) { in readwrite()
957 if (pfd[POLL_STDOUT].revents & POLLHUP) in readwrite()
958 pfd[POLL_STDOUT].fd = -1; in readwrite()
963 if (pfd[POLL_STDOUT].fd == -1) { in readwrite()
1009 pfd[POLL_STDOUT].events = POLLOUT; in readwrite()
1019 if (pfd[POLL_STDOUT].revents & POLLOUT && netinbufpos > 0) { in readwrite()
1020 ret = drainbuf(pfd[POLL_STDOUT].fd, netinbuf, in readwrite()
[all …]
/src/crypto/openssh/regress/
H A Dnetcat.c94 #define POLL_STDOUT 3 macro
811 pfd[POLL_STDOUT].fd = stdout_fd; in readwrite()
812 pfd[POLL_STDOUT].events = 0; in readwrite()
822 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) { in readwrite()
875 if (pfd[POLL_STDOUT].revents & POLLHUP) in readwrite()
876 pfd[POLL_STDOUT].fd = -1; in readwrite()
881 if (pfd[POLL_STDOUT].fd == -1) { in readwrite()
927 pfd[POLL_STDOUT].events = POLLOUT; in readwrite()
937 if (pfd[POLL_STDOUT].revents & POLLOUT && netinbufpos > 0) { in readwrite()
938 ret = drainbuf(pfd[POLL_STDOUT].fd, netinbuf, in readwrite()
[all …]