mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core-util: introduce FD_CLOEXEC wrappers for open/socket/pipe/accept
This commit is contained in:
parent
754644fa6e
commit
9c1a98953f
3 changed files with 86 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue