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

Re: [Minios-devel] [UNIKRAFT PATCH 3/4] lib/vfscore: Register `fstat` to syscall_shim



Reviewed-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>

On 12 Dec 2019, at 13:26, Simon Kuenzer <simon.kuenzer@xxxxxxxxx> wrote:

Registers `fstat` system call to syscall_shim library.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
lib/vfscore/Makefile.uk   | 1 +
lib/vfscore/exportsyms.uk | 2 ++
lib/vfscore/main.c        | 2 +-
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/vfscore/Makefile.uk b/lib/vfscore/Makefile.uk
index 44b2e6a8..69d65af9 100644
--- a/lib/vfscore/Makefile.uk
+++ b/lib/vfscore/Makefile.uk
@@ -27,3 +27,4 @@ LIBVFSCORE_SRCS-$(CONFIG_LIBVFSCORE_AUTOMOUNT_ROOTFS) += \

UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += write-3 writev-3
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += read-3 readv-3
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += fstat-2
diff --git a/lib/vfscore/exportsyms.uk b/lib/vfscore/exportsyms.uk
index 4ad4ee38..44f8ecd7 100644
--- a/lib/vfscore/exportsyms.uk
+++ b/lib/vfscore/exportsyms.uk
@@ -24,6 +24,8 @@ uk_syscall_r_read
mkdir
fsync
fstat
+uk_syscall_e_fstat
+uk_syscall_r_fstat
flock
fhold
fdrop
diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
index 383c6644..1c6287e7 100644
--- a/lib/vfscore/main.c
+++ b/lib/vfscore/main.c
@@ -553,7 +553,7 @@ int __fxstat(int ver __unused, int fd, struct stat *st)

LFS64(__fxstat);

-int fstat(int fd __unused, struct stat *st)
+UK_SYSCALL_DEFINE(int, fstat, int, fd, struct stat *, st)
{
return __fxstat(1, fd, st);
}
--
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®.