You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/24 11:47:15 UTC

[incubator-nuttx] branch master updated: net/local: support FIONWRITE for domain socket ioctl

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c37d90c194 net/local: support FIONWRITE for domain socket ioctl
c37d90c194 is described below

commit c37d90c19456219576701783575b0d3dc4194a4f
Author: wangbowen6 <wa...@xiaomi.com>
AuthorDate: Thu Nov 24 15:26:27 2022 +0800

    net/local: support FIONWRITE for domain socket ioctl
    
    Signed-off-by: wangbowen6 <wa...@xiaomi.com>
---
 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)
           {