From: Florian Schmidt Date: Mon, 20 May 2019 11:29:47 +0000 (+0200) Subject: Provide ioctl X-Git-Tag: RELEASE-0.4~69 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=efcbdd0282759bc0cb3be96c413c77cce89c8146;p=unikraft%2Flibs%2Flwip.git Provide ioctl Signed-off-by: Florian Schmidt Reviewed-by: Felipe Huici --- diff --git a/exportsyms.uk b/exportsyms.uk index 42e255f..b17b5e1 100644 --- a/exportsyms.uk +++ b/exportsyms.uk @@ -6,6 +6,7 @@ getsockname getsockopt liblwip_init listen +lwip_ioctl lwip_htonl lwip_htons lwip_select diff --git a/include/sys/socket.h b/include/sys/socket.h index 90f80ba..11f622d 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -48,6 +48,8 @@ #define SOCK_NONBLOCK 0x20000000 #endif +#define ioctl(s, cmd, argp) lwip_ioctl(s, cmd, argp) + #ifdef CONFIG_LIBNOLIBC int socket(int domain, int type, int protocol); int accept(int s, struct sockaddr *addr, socklen_t *addrlen);