Dmitry V. Levin
c37173f76d
Let native 64-bit personality be personality 0, and 32-bit personality be personality 1, to follow the traditional layout used for other architectures. * defs.h [AARCH64]: Swap PERSONALITY0_WORDSIZE and PERSONALITY1_WORDSIZE, remove DEFAULT_PERSONALITY. [AARCH64 && HAVE_M32_MPERS]: Rename PERSONALITY1_* to PERSONALITY0_*. * file.c [AARCH64 || defined X86_64 || defined X32]: Define STAT32_PERSONALITY for AARCH64 as well. * syscall.c (update_personality) [AARCH64]: Adjust PERSONALITY_NAMES. * linux/aarch64/errnoent1.h: Adjust comment. * linux/aarch64/get_error.c (get_error): Adjust tcp->currpers check. * linux/aarch64/get_syscall_args.c (get_syscall_args): Likewise. * linux/arm/arch_sigreturn.c (arch_sigreturn) [AARCH64]: Likewise. * linux/aarch64/get_scno.c (arch_get_scno): Adjust update_personality invocations. * linux/aarch64/ioctls_arch0.h: Swap with ... * linux/aarch64/ioctls_arch1.h: ... this file. * linux/aarch64/ioctls_inc0.h: Swap with ... * linux/aarch64/ioctls_inc1.h: ... this file. * linux/aarch64/syscallent.h: Swap with ... * linux/aarch64/syscallent1.h: ... this file.
72 lines
2.9 KiB
C
72 lines
2.9 KiB
C
#include "64/syscallent.h"
|
|
|
|
/* Arch-specific block, not used on AArch64 */
|
|
[244 ... 259] = { },
|
|
|
|
/* Quote from asm-generic/unistd.h:
|
|
*
|
|
* All syscalls below here should go away really,
|
|
* these are provided for both review and as a porting
|
|
* help for the C library version.
|
|
*
|
|
* Last chance: are any of these important enough to
|
|
* enable by default?
|
|
*/
|
|
|
|
[1024] = { 3, TD|TF, SEN(open), "open" },
|
|
[1025] = { 2, TF, SEN(link), "link" },
|
|
[1026] = { 1, TF, SEN(unlink), "unlink" },
|
|
[1027] = { 3, TF, SEN(mknod), "mknod" },
|
|
[1028] = { 2, TF, SEN(chmod), "chmod" },
|
|
[1029] = { 3, TF, SEN(chown), "chown" },
|
|
[1030] = { 2, TF, SEN(mkdir), "mkdir" },
|
|
[1031] = { 1, TF, SEN(rmdir), "rmdir" },
|
|
[1032] = { 3, TF, SEN(chown), "lchown" },
|
|
[1033] = { 2, TF, SEN(access), "access" },
|
|
[1034] = { 2, TF, SEN(rename), "rename" },
|
|
[1035] = { 3, TF, SEN(readlink), "readlink" },
|
|
[1036] = { 2, TF, SEN(symlink), "symlink" },
|
|
[1037] = { 2, TF, SEN(utimes), "utimes" },
|
|
[1038] = { 2, TF, SEN(stat), "stat" },
|
|
[1039] = { 2, TF, SEN(lstat), "lstat" },
|
|
[1040] = { 1, TD, SEN(pipe), "pipe" },
|
|
[1041] = { 2, TD, SEN(dup2), "dup2" },
|
|
[1042] = { 1, TD, SEN(epoll_create), "epoll_create" },
|
|
[1043] = { 0, TD, SEN(inotify_init), "inotify_init" },
|
|
[1044] = { 1, TD, SEN(eventfd), "eventfd" },
|
|
[1045] = { 3, TD|TS, SEN(signalfd), "signalfd" },
|
|
[1046] = { 4, TD|TN, SEN(sendfile64), "sendfile" },
|
|
[1047] = { 2, TD, SEN(ftruncate), "ftruncate" },
|
|
[1048] = { 2, TF, SEN(truncate), "truncate" },
|
|
[1049] = { 2, TF, SEN(stat), "stat" },
|
|
[1050] = { 2, TF, SEN(lstat), "lstat" },
|
|
[1051] = { 2, TD, SEN(fstat), "fstat" },
|
|
[1052] = { 3, TD, SEN(fcntl), "fcntl" },
|
|
[1053] = { 4, TD, SEN(fadvise64), "fadvise64" },
|
|
[1054] = { 4, TD|TF, SEN(newfstatat), "newfstatat" },
|
|
[1055] = { 2, TD, SEN(fstatfs), "fstatfs" },
|
|
[1056] = { 2, TF, SEN(statfs), "statfs" },
|
|
[1057] = { 3, TD, SEN(lseek), "lseek" },
|
|
[1058] = { 6, TD|TM|SI, SEN(mmap), "mmap" },
|
|
[1059] = { 1, 0, SEN(alarm), "alarm" },
|
|
[1060] = { 0, 0, SEN(getpgrp), "getpgrp" },
|
|
[1061] = { 0, TS, SEN(pause), "pause" },
|
|
[1062] = { 1, 0, SEN(time), "time" },
|
|
[1063] = { 2, TF, SEN(utime), "utime" },
|
|
[1064] = { 2, TD|TF, SEN(creat), "creat" },
|
|
[1065] = { 3, TD, SEN(getdents), "getdents" },
|
|
[1066] = { 3, TD|TF, SEN(futimesat), "futimesat" },
|
|
[1067] = { 5, TD, SEN(select), "select" },
|
|
[1068] = { 3, TD, SEN(poll), "poll" },
|
|
[1069] = { 4, TD, SEN(epoll_wait), "epoll_wait" },
|
|
[1070] = { 2, 0, SEN(ustat), "ustat" },
|
|
[1071] = { 0, TP, SEN(vfork), "vfork" },
|
|
[1072] = { 4, TP, SEN(wait4), "wait4" },
|
|
[1073] = { 6, TN, SEN(recv), "recv" },
|
|
[1074] = { 4, TN, SEN(send), "send" },
|
|
[1075] = { 2, 0, SEN(bdflush), "bdflush" },
|
|
[1076] = { 1, TF, SEN(umount), "umount" },
|
|
[1077] = { 1, TF, SEN(uselib), "uselib" },
|
|
[1078] = { 1, 0, SEN(sysctl), "sysctl" },
|
|
[1079] = { 0, TP, SEN(fork), "fork" },
|