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:
ed 2016-08-15 19:42:21 +00:00
parent aeece5ab80
commit daab1ae395

View File

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