X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsocket-util.h;h=2acc9741416bfc06782026dfe8905b15d64d9b92;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=61372f8a7c36c3ff78a9d705e91273b2648d3bed;hpb=fb14862dcf197ed025a3a337ca47c2f5e9560c0d;p=sliver-openvswitch.git diff --git a/lib/socket-util.h b/lib/socket-util.h index 61372f8a7..2acc97414 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -38,7 +38,9 @@ int lookup_hostname(const char *host_name, struct in_addr *); 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, @@ -63,8 +65,10 @@ int write_fully(int fd, const void *, size_t, size_t *bytes_written); 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);