mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 20:00:42 +00:00
fs/fs_fsync:Fix the expected error of socket,fifo and pipe returning error in fsync case
This commit is contained in:
parent
23d1d4c42a
commit
2ec117b3ca
2 changed files with 7 additions and 0 deletions
|
|
@ -877,6 +877,10 @@ int pipecommon_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||
}
|
||||
break;
|
||||
|
||||
case BIOC_FLUSH:
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -847,6 +847,9 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
|
|||
ret = -ENOTCONN;
|
||||
}
|
||||
break;
|
||||
case BIOC_FLUSH:
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
default:
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue