int get_socket_rcvbuf(int sock);
int check_connection_completion(int fd);
+#ifndef _WIN32
int drain_rcvbuf(int fd);
+#endif
void drain_fd(int fd, size_t n_packets);
#ifndef _WIN32
int make_unix_socket(int style, bool nonblock,
int fsync_parent_dir(const char *file_name);
int get_mtime(const char *file_name, struct timespec *mtime);
+#ifndef _WIN32
void xpipe(int fds[2]);
void xpipe_nonblocking(int fds[2]);
+#endif
char *describe_fd(int fd);