mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 04:47:47 +08:00
net/local: support FIONWRITE for domain socket ioctl
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -829,6 +829,7 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
|
||||
ret = -ENOTCONN;
|
||||
}
|
||||
break;
|
||||
case FIONWRITE:
|
||||
case FIONSPACE:
|
||||
if (conn->lc_outfile.f_inode != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user