Searched refs:PERROR_EXIT (Results 1 – 1 of 1) sorted by relevance
27 #define PERROR_EXIT(msg) { do { perror((msg)); exit(1); } while (0); }; macro37 PERROR_EXIT("SO_LINGER"); in setSoLinger()41 PERROR_EXIT("TCP_LINGER2"); in setSoLinger()61 if ((listensock = socket(AF_INET, SOCK_STREAM, 0)) == -1) PERROR_EXIT("listensock"); in bindRandomAddr()62 if (bind(listensock, (sockaddr *) &sin, sizeof(sin)) == -1) PERROR_EXIT("bind"); in bindRandomAddr()63 if (listen(listensock, 10) == -1) PERROR_EXIT("listen"); in bindRandomAddr()78 if (ioctlsock == -1) PERROR_EXIT("ioctlsock"); in killSockets()82 PERROR_EXIT("SIOCKILLADDR failed, did you run 32-bit userspace on a 64-bit kernel?"); in killSockets()101 if (connect(s, (sockaddr *) &listenaddr, sizeof(listenaddr)) == -1) PERROR_EXIT("connect"); in connectLoop()106 if (close(acceptedsock) == -1) PERROR_EXIT("close"); in connectLoop()[all …]