system/fd_util: remove unused functions
This commit is contained in:
@@ -54,13 +54,6 @@ extern "C" {
|
||||
int
|
||||
fd_set_cloexec(int fd, bool enable);
|
||||
|
||||
/**
|
||||
* Wrapper for dup(), which sets the CLOEXEC flag on the new
|
||||
* descriptor.
|
||||
*/
|
||||
int
|
||||
dup_cloexec(int oldfd);
|
||||
|
||||
/**
|
||||
* Wrapper for open(), which sets the CLOEXEC flag (atomically if
|
||||
* supported by the OS).
|
||||
@@ -68,13 +61,6 @@ dup_cloexec(int oldfd);
|
||||
int
|
||||
open_cloexec(const char *path_fs, int flags, int mode);
|
||||
|
||||
/**
|
||||
* Wrapper for pipe(), which sets the CLOEXEC flag (atomically if
|
||||
* supported by the OS).
|
||||
*/
|
||||
int
|
||||
pipe_cloexec(int fd[2]);
|
||||
|
||||
/**
|
||||
* Wrapper for pipe(), which sets the CLOEXEC flag (atomically if
|
||||
* supported by the OS).
|
||||
@@ -85,24 +71,6 @@ pipe_cloexec(int fd[2]);
|
||||
int
|
||||
pipe_cloexec_nonblock(int fd[2]);
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
/**
|
||||
* Wrapper for socketpair(), which sets the CLOEXEC flag (atomically
|
||||
* if supported by the OS).
|
||||
*/
|
||||
int
|
||||
socketpair_cloexec(int domain, int type, int protocol, int sv[2]);
|
||||
|
||||
/**
|
||||
* Wrapper for socketpair(), which sets the flags CLOEXEC and NONBLOCK
|
||||
* (atomically if supported by the OS).
|
||||
*/
|
||||
int
|
||||
socketpair_cloexec_nonblock(int domain, int type, int protocol, int sv[2]);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_LIBMPDCLIENT
|
||||
/* Avoid symbol conflict with statically linked libmpdclient */
|
||||
#define socket_cloexec_nonblock socket_cloexec_nonblock_noconflict
|
||||
@@ -123,20 +91,6 @@ int
|
||||
accept_cloexec_nonblock(int fd, struct sockaddr *address,
|
||||
size_t *address_length_r);
|
||||
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
struct msghdr;
|
||||
|
||||
/**
|
||||
* Wrapper for recvmsg(), which sets the CLOEXEC flag (atomically if
|
||||
* supported by the OS).
|
||||
*/
|
||||
ssize_t
|
||||
recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_INOTIFY_INIT
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user