Registers `write` system call to syscall_shim library.
Signed-off-by: Simon Kuenzer <
simon.kuenzer@xxxxxxxxx>
---
lib/vfscore/
Makefile.uk | 2 +-
lib/vfscore/
exportsyms.uk | 2 ++
lib/vfscore/main.c | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/vfscore/
Makefile.uk b/lib/vfscore/
Makefile.ukindex e0daa5fa..2022e949 100644
--- a/lib/vfscore/
Makefile.uk+++ b/lib/vfscore/
Makefile.uk@@ -25,4 +25,4 @@ LIBVFSCORE_SRCS-$(CONFIG_LIBVFSCORE_AUTOMOUNT_ROOTFS) += \
$(LIBVFSCORE_BASE)/rootfs.c
-UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += writev-3
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += write-3 writev-3
diff --git a/lib/vfscore/
exportsyms.uk b/lib/vfscore/
exportsyms.ukindex d3ebf547..690801b6 100644
--- a/lib/vfscore/
exportsyms.uk+++ b/lib/vfscore/
exportsyms.uk@@ -15,6 +15,8 @@ vfscore_vop_erofs
open
creat
write
+uk_syscall_e_write
+uk_syscall_r_write
close
read
mkdir
diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
index b9abe1ef..b0d8335a 100644
--- a/lib/vfscore/main.c
+++ b/lib/vfscore/main.c
@@ -379,7 +379,7 @@ ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
LFS64(pwrite);
-ssize_t write(int fd, const void *buf, size_t count)
+UK_SYSCALL_DEFINE(ssize_t, write, int, fd, const void *, buf, size_t, count)
{
return pwrite(fd, buf, count, -1);
}
--
2.20.1