2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

socket-util: Remove unused functions.

A Windows porter mentioned to me that these functions caused special
trouble in the Windows port.  However, they are no longer used, so we
might as well remove them.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
Ben Pfaff
2013-12-09 17:28:32 -08:00
parent cf06c2e944
commit f87d3302c4
2 changed files with 0 additions and 278 deletions

View File

@@ -73,30 +73,6 @@ char *describe_fd(int fd);
* in <netinet/ip.h> is used. */
#define DSCP_DEFAULT (IPTOS_PREC_INTERNETCONTROL >> 2)
/* Maximum number of fds that we support sending or receiving at one time
* across a Unix domain socket. */
#define SOUTIL_MAX_FDS 8
/* Iovecs. */
size_t iovec_len(const struct iovec *iovs, size_t n_iovs);
bool iovec_is_empty(const struct iovec *iovs, size_t n_iovs);
/* Functions particularly useful for Unix domain sockets. */
void xsocketpair(int domain, int type, int protocol, int fds[2]);
int send_iovec_and_fds(int sock,
const struct iovec *iovs, size_t n_iovs,
const int fds[], size_t n_fds);
int send_iovec_and_fds_fully(int sock,
const struct iovec *iovs, size_t n_iovs,
const int fds[], size_t n_fds,
size_t skip_bytes, size_t *bytes_sent);
int send_iovec_and_fds_fully_block(int sock,
const struct iovec *iovs, size_t n_iovs,
const int fds[], size_t n_fds);
int recv_data_and_fds(int sock,
void *data, size_t size,
int fds[SOUTIL_MAX_FDS], size_t *n_fdsp);
/* Helpers for calling ioctl() on an AF_INET socket. */
struct ifreq;
int af_inet_ioctl(unsigned long int command, const void *arg);