From e4674e69e9fd84e448c5e1eeb5d0b0c2d688a14d Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 9 Aug 2020 15:22:13 +0100 Subject: [PATCH] New names for Magenta IO functions --- photon/libc/sys/magenta/fio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photon/libc/sys/magenta/fio.c b/photon/libc/sys/magenta/fio.c index d66df45..ca76276 100644 --- a/photon/libc/sys/magenta/fio.c +++ b/photon/libc/sys/magenta/fio.c @@ -102,7 +102,7 @@ unsigned int __fio_read(struct __io_file *f, char *buf, unsigned int sz) return real_sz; } - mx_status_t err = mx_read(f->handle, sz, buf + i, &real_sz); + mx_status_t err = mx_object_read(f->handle, sz, buf + i, &real_sz); if (err != MX_OK || real_sz != sz) { f->err = 1; @@ -140,7 +140,7 @@ int __fio_ungetc(struct __io_file *f, char c) unsigned int __fio_flush(struct __io_file *f) { unsigned long written = 0; - mx_status_t ret = mx_write(f->handle, f->buf_idx, f->buf, &written); + mx_status_t ret = mx_object_write(f->handle, f->buf_idx, f->buf, &written); if (ret != MX_OK || written != f->buf_idx) { f->err = 1; }