fs/fs_fsync:Fix the expected error of socket,fifo and pipe returning error in fsync case

This commit is contained in:
crafcat7 2023-01-16 23:59:41 +08:00 committed by Xiang Xiao
parent 23d1d4c42a
commit 2ec117b3ca
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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;