summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_private.h
diff options
context:
space:
mode:
authorChris Rankin <rankincj@yahoo.com>2011-10-03 21:27:57 +0100
committerChris Rankin <rankincj@yahoo.com>2011-10-03 21:27:57 +0100
commit7a585790118e837ec788ac9b3e4cf6a381c61234 (patch)
tree9d60c2cce1518d75c9b0bd1bc31e278e74cc7f3f /src/xine-engine/xine_private.h
parenta39a950269d165f18448cc7d6da691bf14b9e03b (diff)
downloadxine-lib-7a585790118e837ec788ac9b3e4cf6a381c61234.tar.gz
xine-lib-7a585790118e837ec788ac9b3e4cf6a381c61234.tar.bz2
Set CLOEXEC flag on three more sockets.
There are two functions that actually set this flag: int _x_set_file_close_on_exec() int _x_set_socket_close_on_exec() (We need two functions because file descriptors and sockets are not the same under WIN32 - of course). These function belong to libxine's internal API, i.e. they are not available for use by plugins.
Diffstat (limited to 'src/xine-engine/xine_private.h')
-rw-r--r--src/xine-engine/xine_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xine-engine/xine_private.h b/src/xine-engine/xine_private.h
index 6c01d3a2d..a82f6a05f 100644
--- a/src/xine-engine/xine_private.h
+++ b/src/xine-engine/xine_private.h
@@ -94,4 +94,11 @@ void _x_audio_decoder_shutdown (xine_stream_t *stream) INTERNAL;
*/
void xine_probe_fast_memcpy(xine_t *xine) INTERNAL;
+/**
+ * @brief Make file descriptors and sockets uninheritable
+ */
+int _x_set_file_close_on_exec(int fd) INTERNAL;
+
+int _x_set_socket_close_on_exec(int s) INTERNAL;
+
#endif