Lines Matching refs:shutdown
132 /* With shutdown(SHUT_WR) */
134 if (shutdown(fd[0], SHUT_WR) == -1)
135 err(1, "shutdown");
138 report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents);
141 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents);
146 err(1, "read after other side shutdown");
162 if (shutdown(fd[1], SHUT_WR) == -1)
163 err(1, "shutdown second");
166 report(num++, "after second shutdown", POLLIN | POLLHUP, pfd0.revents);
169 report(num++, "after second shutdown", POLLHUP, pfd1.revents);
177 * With shutdown(SHUT_RD)
178 * Note that shutdown(SHUT_WR) is passed to the peer, but
179 * shutdown(SHUT_RD) is not.
182 if (shutdown(fd[0], SHUT_RD) == -1)
183 err(1, "shutdown");
186 report(num++, "after shutdown(SHUT_RD)", POLLIN | POLLOUT, pfd0.revents);
189 report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents);
190 if (shutdown(fd[0], SHUT_WR) == -1)
191 err(1, "shutdown");
194 report(num++, "after shutdown(SHUT_WR)", POLLHUP, pfd0.revents);
197 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents);