mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Let CloudABI use fdatasync() as well.
Now that FreeBSD supports fdatasync() natively, we can tidy up CloudABI's equivalent system call to use that instead.
This commit is contained in:
parent
43e5b7b6b3
commit
2256eed3eb
1 changed files with 2 additions and 3 deletions
|
|
@ -172,12 +172,11 @@ int
|
|||
cloudabi_sys_fd_datasync(struct thread *td,
|
||||
struct cloudabi_sys_fd_datasync_args *uap)
|
||||
{
|
||||
struct fsync_args fsync_args = {
|
||||
struct fdatasync_args fdatasync_args = {
|
||||
.fd = uap->fd
|
||||
};
|
||||
|
||||
/* Call into fsync(), as FreeBSD lacks fdatasync(). */
|
||||
return (sys_fsync(td, &fsync_args));
|
||||
return (sys_fdatasync(td, &fdatasync_args));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue