浏览代码

Add in the missing get_kernel_syms syscall

Eric Andersen 24 年之前
父节点
当前提交
3157236c72
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      libc/sysdeps/linux/common/syscalls.c

+ 5 - 1
libc/sysdeps/linux/common/syscalls.c

@@ -988,7 +988,11 @@ _syscall5(int, init_module, void *, first, void *, second, void *, third,
 #	endif
 #endif
 
-//#define __NR_get_kernel_syms  130
+#define __NR_get_kernel_syms  130
+#ifdef L_get_kernel_syms
+struct kernel_sym;
+_syscall1(int, get_kernel_syms, struct kernel_sym *, table);
+#endif
 
 //#define __NR_quotactl         131