From a39a950269d165f18448cc7d6da691bf14b9e03b Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Mon, 3 Oct 2011 12:38:45 +0100 Subject: Prefix open_cloexec() and create_cloexec() with xine_, and add new xine_socket_cloexec() function. --- include/xine/xineutils.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/xine/xineutils.h') 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 -- cgit v1.2.3