4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 22:17:20 +08:00

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

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2019-05-08 10:48:17 +08:00
parent 1fe6888e25
commit 25ebcc9c33

View File

@ -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)