Blame libmultipath/uxsock.h

Packit Service 0af388
/* some prototypes */
Packit Service 0af388
int ux_socket_listen(const char *name);
Packit Service 0af388
int send_packet(int fd, const char *buf);
Packit Service 0af388
int recv_packet(int fd, char **buf, unsigned int timeout);
Packit Service 0af388
Packit Service 0af388
#define _MAX_CMD_LEN		512
Packit Service 0af388
Packit Service 0af388
/*
Packit Service 0af388
 * Used for receiving socket command from untrusted socket client where data
Packit Service 0af388
 * size is restricted to 512(_MAX_CMD_LEN) at most.
Packit Service 0af388
 * Return -EINVAL if data length requested by client exceeded the _MAX_CMD_LEN.
Packit Service 0af388
 */
Packit Service 0af388
int recv_packet_from_client(int fd, char **buf, unsigned int timeout);