forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/testing/selftests/proc/proc-self-syscall.c
....@@ -19,7 +19,6 @@
1919 #include <sys/stat.h>
2020 #include <fcntl.h>
2121 #include <errno.h>
22
-#include <unistd.h>
2322 #include <string.h>
2423 #include <stdio.h>
2524
....@@ -38,7 +37,7 @@
3837 fd = open("/proc/self/syscall", O_RDONLY);
3938 if (fd == -1) {
4039 if (errno == ENOENT)
41
- return 2;
40
+ return 4;
4241 return 1;
4342 }
4443