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

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



This should be in the same patch with the previous changes to dup.

Reviewed-by: Daniel Dinca <dincadaniel97@xxxxxxxxx>

On 02.05.2020 21:18, Constantin Raducanu wrote:
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;




 


Rackspace

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