| 87 | #define SETSOCKOPT_CAST /* empty on POSIX */ |
| 88 | #include <unistd.h> |
| 89 | static inline const char* sock_strerror() { return strerror(errno); } |
| 90 | static inline int sock_errno() { return errno; } |
| 91 | static inline bool sock_is_eintr (int e) { return e == EINTR; } |
| 92 | static inline bool sock_is_eagain(int e) { return e == EAGAIN || e == EWOULDBLOCK; } |
| 93 | #include <arpa/inet.h> |
| 94 | #include <netinet/in.h> |
| 95 | #include <netinet/tcp.h> |
| 96 | #include <poll.h> |
| 97 | #include <signal.h> |
| 98 | #include <sys/socket.h> |
| 99 | #include <fcntl.h> |
no outgoing calls
no test coverage detected