net/local: support FIONWRITE for domain socket ioctl

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6 2022-11-24 15:26:27 +08:00 committed by Xiang Xiao
parent 28739b8b8a
commit c37d90c194
1 changed files with 1 additions and 0 deletions

View File

@ -829,6 +829,7 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
ret = -ENOTCONN; ret = -ENOTCONN;
} }
break; break;
case FIONWRITE:
case FIONSPACE: case FIONSPACE:
if (conn->lc_outfile.f_inode != NULL) if (conn->lc_outfile.f_inode != NULL)
{ {