Home
last modified time | relevance | path

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

/freebsd/contrib/netcat/
H A Dnetcat.c81 #define POLL_NETOUT 1 macro
876 pfd[POLL_NETOUT].fd = net_fd; in readwrite()
877 pfd[POLL_NETOUT].events = 0; in readwrite()
897 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) { in readwrite()
951 if (pfd[POLL_NETOUT].revents & POLLHUP) { in readwrite()
953 shutdown(pfd[POLL_NETOUT].fd, SHUT_WR); in readwrite()
954 pfd[POLL_NETOUT].fd = -1; in readwrite()
960 if (pfd[POLL_NETOUT].fd == -1) in readwrite()
978 pfd[POLL_NETOUT].events = POLLOUT; in readwrite()
984 if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) { in readwrite()
[all …]
/freebsd/crypto/openssh/regress/
H A Dnetcat.c92 #define POLL_NETOUT 1 macro
803 pfd[POLL_NETOUT].fd = net_fd; in readwrite()
804 pfd[POLL_NETOUT].events = 0; in readwrite()
822 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) { in readwrite()
869 if (pfd[POLL_NETOUT].revents & POLLHUP) { in readwrite()
871 shutdown(pfd[POLL_NETOUT].fd, SHUT_WR); in readwrite()
872 pfd[POLL_NETOUT].fd = -1; in readwrite()
878 if (pfd[POLL_NETOUT].fd == -1) in readwrite()
896 pfd[POLL_NETOUT].events = POLLOUT; in readwrite()
902 if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) { in readwrite()
[all …]