Lines Matching full:shutdown

152 	/* With shutdown(SHUT_WR) */  in main()
154 if (shutdown(fd[0], SHUT_WR) == -1) in main()
155 err(1, "shutdown"); in main()
158 report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents); in main()
161 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main()
166 err(1, "read after other side shutdown"); in main()
182 if (shutdown(fd[1], SHUT_WR) == -1) in main()
183 err(1, "shutdown second"); in main()
186 report(num++, "after second shutdown", POLLIN | POLLHUP, pfd0.revents); in main()
189 report(num++, "after second shutdown", POLLHUP, pfd1.revents); in main()
197 * With shutdown(SHUT_RD) in main()
198 * Note that shutdown(SHUT_WR) is passed to the peer, but in main()
199 * shutdown(SHUT_RD) is not. in main()
202 if (shutdown(fd[0], SHUT_RD) == -1) in main()
203 err(1, "shutdown"); in main()
206 report(num++, "after shutdown(SHUT_RD)", POLLIN | POLLOUT, pfd0.revents); in main()
209 report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents); in main()
210 if (shutdown(fd[0], SHUT_WR) == -1) in main()
211 err(1, "shutdown"); in main()
214 report(num++, "after shutdown(SHUT_WR)", POLLHUP, pfd0.revents); in main()
217 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main()
224 if (shutdown(fd[0], SHUT_RD) == -1) in main()
225 err(1, "shutdown"); in main()
228 report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents); in main()
234 if (shutdown(fd[0], SHUT_WR) == -1) in main()
235 err(1, "shutdown"); in main()
238 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT | POLLRDHUP, pfd1.revents); in main()