net/local: forward threshold ioctl() to pipe

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-07-21 12:02:23 +08:00 committed by Xiang Xiao
parent 8766865e09
commit 9004a49431

View File

@ -787,6 +787,26 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
ret = -ENOTCONN;
}
break;
case PIPEIOC_POLLINTHRD:
if (conn->lc_infile.f_inode != NULL)
{
ret = file_ioctl(&conn->lc_infile, cmd, arg);
}
else
{
ret = -ENOTCONN;
}
break;
case PIPEIOC_POLLOUTTHRD:
if (conn->lc_outfile.f_inode != NULL)
{
ret = file_ioctl(&conn->lc_outfile, cmd, arg);
}
else
{
ret = -ENOTCONN;
}
break;
case BIOC_FLUSH:
ret = -EINVAL;
break;