net/local: forward threshold ioctl() to pipe
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
8766865e09
commit
9004a49431
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue