aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/file.c b/file.c
index c3222427..f8171828 100644
--- a/file.c
+++ b/file.c
@@ -303,7 +303,7 @@ decode_open(struct tcb *tcp, int offset)
tprintf(", %#lo", tcp->u_arg[offset + 2]);
}
}
- return 0;
+ return RVAL_FD;
}
int
@@ -312,6 +312,12 @@ sys_open(struct tcb *tcp)
return decode_open(tcp, 0);
}
+int sys_delete_module(struct tcb *tcp)
+{
+ decode_open(tcp, 0);
+ return RVAL_DECIMAL;
+}
+
int
sys_openat(struct tcb *tcp)
{
@@ -348,7 +354,7 @@ sys_creat(struct tcb *tcp)
printpath(tcp, tcp->u_arg[0]);
tprintf(", %#lo", tcp->u_arg[1]);
}
- return 0;
+ return RVAL_FD;
}
#include "xlat/access_flags.h"