summaryrefslogtreecommitdiff
path: root/include/xine/xineutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xine/xineutils.h')
-rw-r--r--include/xine/xineutils.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/xine/xineutils.h b/include/xine/xineutils.h
index 6c62bb84f..fa34931ec 100644
--- a/include/xine/xineutils.h
+++ b/include/xine/xineutils.h
@@ -181,6 +181,24 @@ void xine_usec_sleep(unsigned usec) XINE_PROTECTED;
*/
char *xine_strcat_realloc (char **dest, char *append) XINE_PROTECTED;
+/**
+ * opens a file, ensuring that the descriptor will be closed
+ * automatically after a fork/execute.
+ */
+int xine_open_cloexec(const char *name, int flags) XINE_PROTECTED;
+
+/**
+ * creates a file, ensuring that the descriptor will be closed
+ * automatically after a fork/execute.
+ */
+int xine_create_cloexec(const char *name, int flags, mode_t mode) XINE_PROTECTED;
+
+/**
+ * creates a socket, ensuring that the descriptor will be closed
+ * automatically after a fork/execute.
+ */
+int xine_socket_cloexec(int domain, int type, int protocol) XINE_PROTECTED;
+
/*
* Color Conversion Utility Functions
* The following data structures and functions facilitate the conversion