Lines Matching full:shutdown
48 /* Shutdown(2) on an invalid file descriptor has to return EBADF. */ in main()
49 if ((shutdown(listen_sock, SHUT_RDWR) != -1) && (errno != EBADF)) in main()
50 errx(-1, "shutdown() for invalid file descriptor does not " in main()
92 if ((shutdown(connect_sock, SHUT_RD - 1) != -1) && (errno != EINVAL)) in main()
93 errx(-1, "shutdown(SHUT_RD - 1) does not return EINVAL"); in main()
94 if ((shutdown(connect_sock, SHUT_RDWR + 1) != -1) && (errno != EINVAL)) in main()
95 errx(-1, "shutdown(SHUT_RDWR + 1) does not return EINVAL"); in main()
97 if (shutdown(connect_sock, SHUT_RD) < 0) in main()
98 errx(-1, "shutdown(SHUT_RD) for connect socket: %s", in main()
100 if (shutdown(connect_sock, SHUT_WR) < 0) in main()
101 errx(-1, "shutdown(SHUT_WR) for connect socket: %s", in main()