浏览代码

Kernel: Move fchdir to end of enumerate syscalls.

The introduction fchdir in the middle of the EUMERATE_SYSCALLS
expression changed other syscall numbers, which broke compatibility.
This commit fixes that by moving it to the end.
Drew Stratford 5 年之前
父节点
当前提交
45ded86bcb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Kernel/Syscall.h

+ 2 - 2
Kernel/Syscall.h

@@ -32,7 +32,6 @@ struct timeval;
     __ENUMERATE_SYSCALL(gettimeofday)           \
     __ENUMERATE_SYSCALL(gethostname)            \
     __ENUMERATE_SYSCALL(chdir)                  \
-    __ENUMERATE_SYSCALL(fchdir)                 \
     __ENUMERATE_SYSCALL(uname)                  \
     __ENUMERATE_SYSCALL(set_mmap_name)          \
     __ENUMERATE_SYSCALL(readlink)               \
@@ -130,7 +129,8 @@ struct timeval;
     __ENUMERATE_SYSCALL(set_process_icon)       \
     __ENUMERATE_SYSCALL(mprotect)               \
     __ENUMERATE_SYSCALL(realpath)               \
-    __ENUMERATE_SYSCALL(get_process_name)
+    __ENUMERATE_SYSCALL(get_process_name)       \
+    __ENUMERATE_SYSCALL(fchdir)
 
 namespace Syscall {