aboutsummaryrefslogtreecommitdiff
path: root/pk/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/syscall.c')
-rw-r--r--pk/syscall.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pk/syscall.c b/pk/syscall.c
index add12ce..f9e0664 100644
--- a/pk/syscall.c
+++ b/pk/syscall.c
@@ -379,12 +379,16 @@ ssize_t sys_writev(int fd, const void* iov, int cnt)
return ret;
}
-
int sys_getdents(int fd, void* dirbuf, int count)
{
return 0; //stub
}
+int sys_nosys()
+{
+ return -ENOSYS;
+}
+
long syscall(long a0, long a1, long a2, long a3, long a4, long a5, long n)
{
const static void* syscall_table[] = {
@@ -426,6 +430,7 @@ long syscall(long a0, long a1, long a2, long a3, long a4, long a5, long n)
[SYS_fcntl] = sys_fcntl,
[SYS_getdents] = sys_getdents,
[SYS_dup] = sys_dup,
+ [SYS_readlinkat] = sys_nosys,
};
if(n >= ARRAY_SIZE(syscall_table) || !syscall_table[n])