From c37d90c19456219576701783575b0d3dc4194a4f Mon Sep 17 00:00:00 2001 From: wangbowen6 Date: Thu, 24 Nov 2022 15:26:27 +0800 Subject: [PATCH] net/local: support FIONWRITE for domain socket ioctl Signed-off-by: wangbowen6 --- net/local/local_sockif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/local/local_sockif.c b/net/local/local_sockif.c index 4d639e3f3a..4aaf6c25fd 100644 --- a/net/local/local_sockif.c +++ b/net/local/local_sockif.c @@ -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) {