| 96 | } |
| 97 | |
| 98 | int makepair(int fds[2]) { |
| 99 | return ::socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, fds); |
| 100 | } |
| 101 | #else |
| 102 | // Simple mock up of the read/write functions of a socketpair for testing |
| 103 | // systems without socketpairs or MSG_NOSIGNAL/MSG_DONTWAIT (Windows/BSDs) |
no test coverage detected