summaryrefslogtreecommitdiff
path: root/include/xine/xineutils.h
diff options
context:
space:
mode:
authorChris Rankin <rankincj@yahoo.com>2011-10-03 12:38:45 +0100
committerChris Rankin <rankincj@yahoo.com>2011-10-03 12:38:45 +0100
commita39a950269d165f18448cc7d6da691bf14b9e03b (patch)
tree2ff0626b06e3e87cb9f3d7678af4859b5d65b594 /include/xine/xineutils.h
parentcba782a23ee5c9c668e02f9c6d95acba70464d18 (diff)
downloadxine-lib-a39a950269d165f18448cc7d6da691bf14b9e03b.tar.gz
xine-lib-a39a950269d165f18448cc7d6da691bf14b9e03b.tar.bz2
Prefix open_cloexec() and create_cloexec() with xine_, and add new xine_socket_cloexec() function.
Diffstat (limited to 'include/xine/xineutils.h')
-rw-r--r--include/xine/xineutils.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/xine/xineutils.h b/include/xine/xineutils.h
index 8b1860ea6..fa34931ec 100644
--- a/include/xine/xineutils.h
+++ b/include/xine/xineutils.h
@@ -185,13 +185,19 @@ 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 open_cloexec(const char *name, int flags) XINE_PROTECTED;
+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 create_cloexec(const char *name, int flags, mode_t mode) XINE_PROTECTED;
+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