diff options
author | wm4 <wm4@nowhere> | 2014-10-26 01:18:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-26 01:40:36 +0200 |
commit | 6f88bc77617dbf8a919830ae070e5ca926755587 (patch) | |
tree | e2922d05c7bc3cc22f2bed8bad587f7bfa8d2311 /osdep/io.h | |
parent | 38546d5a998e546b976fc5b8c0525cead670e9f3 (diff) | |
download | mpv-6f88bc77617dbf8a919830ae070e5ca926755587.tar.bz2 mpv-6f88bc77617dbf8a919830ae070e5ca926755587.tar.xz |
osdep: add helper for creating a sane pipe()
Or in other words, a pipe that has the CLOEXEC flag set. Needed since
Linux' pipe2() is not in POSIX yet.
Diffstat (limited to 'osdep/io.h')
-rw-r--r-- | osdep/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/io.h b/osdep/io.h index ac1a0f90fa..c3fc0cf9cb 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -45,6 +45,7 @@ #endif bool mp_set_cloexec(int fd); +int mp_make_cloexec_pipe(int pipes[2]); int mp_make_wakeup_pipe(int pipes[2]); #ifdef _WIN32 |