diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-30 03:30:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-30 03:30:42 +0100 |
commit | 9c1a98953f25aff7f11af80a073c9c46dee2438c (patch) | |
tree | bf0fbe07d3c02723808cba0c377e9fc2b545d522 /src/pulsecore/core-util.h | |
parent | 754644fa6e1ec83dba85bf586a2b09c2283aa096 (diff) |
core-util: introduce FD_CLOEXEC wrappers for open/socket/pipe/accept
Diffstat (limited to 'src/pulsecore/core-util.h')
-rw-r--r-- | src/pulsecore/core-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index 9986b14a..323fdcb4 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -28,6 +28,7 @@ #include <stdarg.h> #include <stdio.h> #include <string.h> +#include <sys/socket.h> #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> @@ -258,4 +259,9 @@ pa_bool_t pa_run_from_build_tree(void); const char *pa_get_temp_dir(void); +int pa_open_cloexec(const char *fn, int flags, mode_t mode); +int pa_socket_cloexec(int domain, int type, int protocol); +int pa_pipe_cloexec(int pipefd[2]); +int pa_accept_cloexec(int sockfd, struct sockaddr *addr, socklen_t *addrlen); + #endif |