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
@ -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…
Reference in New Issue
Block a user