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

[UNIKRAFT PATCH 01/11] lib/vfscore: Add the macro UK_SYSCALL_R_DEFINE for dup



Adds the macro UK_SYSCALL_R_DEFINE for `dup` in order to
be registered to syscall_shim library.

Signed-off-by: Constantin Raducanu <raducanu.costi@xxxxxxxxx>
---
 lib/vfscore/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
index 7c61013..5a287ed 100644
--- a/lib/vfscore/main.c
+++ b/lib/vfscore/main.c
@@ -1386,7 +1386,7 @@ UK_TRACEPOINT(trace_vfs_dup_err, "%d", int);
 /*
  * Duplicate a file descriptor
  */
-int dup(int oldfd)
+UK_SYSCALL_R_DEFINE(int, dup, int, oldfd)
 {
        struct vfscore_file *fp;
        int newfd;
-- 
2.17.1




 


Rackspace

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