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;
|
break;
|
||||||
|
|
||||||
|
case BIOC_FLUSH:
|
||||||
|
ret = -EINVAL;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = -ENOTTY;
|
ret = -ENOTTY;
|
||||||
break;
|
break;
|
||||||
|
@ -847,6 +847,9 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
|
|||||||
ret = -ENOTCONN;
|
ret = -ENOTCONN;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case BIOC_FLUSH:
|
||||||
|
ret = -EINVAL;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
ret = -ENOTTY;
|
ret = -ENOTTY;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user