From 25ebcc9c337d284d8fde86e2b904b4130c836e3f Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Wed, 8 May 2019 10:48:17 +0800 Subject: [PATCH] [net][sal] Improve ioctl interface to support for socketfd operations Signed-off-by: chenyong <1521761801@qq.com> --- components/net/sal_socket/dfs_net/dfs_net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/net/sal_socket/dfs_net/dfs_net.c b/components/net/sal_socket/dfs_net/dfs_net.c index 37db186eff..f1a3d777a1 100644 --- a/components/net/sal_socket/dfs_net/dfs_net.c +++ b/components/net/sal_socket/dfs_net/dfs_net.c @@ -35,7 +35,9 @@ int dfs_net_getsocket(int fd) static int dfs_net_ioctl(struct dfs_fd* file, int cmd, void* args) { - return -EIO; + int socket = (int) file->data; + + return sal_ioctlsocket(socket, cmd, args); } static int dfs_net_read(struct dfs_fd* file, void *buf, size_t count)