summaryrefslogtreecommitdiff
path: root/lib/socket-util.h
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2014-02-26 08:47:37 -0800
committerGurucharan Shetty <gshetty@nicira.com>2014-02-26 12:39:55 -0800
commita19a3a9fc32f7a115e7e7bc6895355c10806d13b (patch)
tree17c6809c878ebb412533ecffa14feb819a76ef3d /lib/socket-util.h
parent60567113f79bd17fbe9f773d6c9416671a95ee88 (diff)
downloadopenvswitch-a19a3a9fc32f7a115e7e7bc6895355c10806d13b.tar.gz
socket-util: pipe for Windows.
Windows does have pipes (the interface is a little different). We mostly use pipes in Linux to synchronize between parent and children and also to handle fatal signals and then wake from poll_loop(). For Windows, we are using events for the same purpose. So don't implement pipes for Windows. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/socket-util.h')
-rw-r--r--lib/socket-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/socket-util.h b/lib/socket-util.h
index 92f0c6f71..2acc97414 100644
--- a/lib/socket-util.h
+++ b/lib/socket-util.h
@@ -65,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);