Merge pull request #2658 from Lawlieta/develop_sal

[net][sal] Improve ioctl interface to support socketfd operations
This commit is contained in:
Bernard Xiong 2019-05-08 15:26:28 +08:00 committed by GitHub
commit 955d78cd14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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)