未验证 提交 955d78cd 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2658 from Lawlieta/develop_sal

[net][sal] Improve ioctl interface to support socketfd operations
...@@ -35,7 +35,9 @@ int dfs_net_getsocket(int fd) ...@@ -35,7 +35,9 @@ int dfs_net_getsocket(int fd)
static int dfs_net_ioctl(struct dfs_fd* file, int cmd, void* args) 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) 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.
先完成此消息的编辑!
想要评论请 注册