[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 1/4] lib/vfscore: Register `write` to syscall_shim



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.uk
index 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.uk
index 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


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.