mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
net/local: add FIONSPACE support
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -726,6 +726,16 @@ static int local_ioctl(FAR struct socket *psock, int cmd,
|
||||
ret = -ENOTCONN;
|
||||
}
|
||||
break;
|
||||
case FIONSPACE:
|
||||
if (conn->lc_outfile.f_inode != NULL)
|
||||
{
|
||||
ret = file_ioctl(&conn->lc_outfile, cmd, arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = -ENOTCONN;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user