提交 25ebcc9c 编写于 作者: Lawlieta's avatar Lawlieta

[net][sal] Improve ioctl interface to support for socketfd operations

Signed-off-by: Lawlieta's avatarchenyong <1521761801@qq.com>
上级 1fe6888e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册