mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
net/local: add FIONSPACE support
Change-Id: Ib96079c6ef7fe3df60ee9f83330b6ed55718bc5f Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -724,6 +724,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