git: ce3e4a3a96d9 - main - kboot: Sort system calls alphabetically
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Jun 2022 20:57:43 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ce3e4a3a96d951b4fcf231e8680935c01f1cc3e6 commit ce3e4a3a96d951b4fcf231e8680935c01f1cc3e6 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-06-13 17:28:31 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-06-27 20:54:45 +0000 kboot: Sort system calls alphabetically No functional change: sort the system calls alphbetically to make it easier to add new ones. Sponsored by: Netflix --- stand/kboot/arch/amd64/syscall_nr.h | 14 +++++++------- stand/kboot/arch/powerpc64/syscall_nr.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/stand/kboot/arch/amd64/syscall_nr.h b/stand/kboot/arch/amd64/syscall_nr.h index 193368364bf3..412fed5001b9 100644 --- a/stand/kboot/arch/amd64/syscall_nr.h +++ b/stand/kboot/arch/amd64/syscall_nr.h @@ -1,14 +1,14 @@ -#define SYS_read 0 -#define SYS_write 1 -#define SYS_open 2 #define SYS_close 3 +#define SYS_getdents 78 #define SYS_gettimeofday 96 -#define SYS_reboot 169 -#define SYS_mmap 9 -#define SYS_uname 63 #define SYS_lseek 8 -#define SYS_getdents 78 +#define SYS_mmap 9 +#define SYS_open 2 +#define SYS_read 0 +#define SYS_reboot 169 #define SYS_select 23 +#define SYS_uname 63 +#define SYS_write 1 #define __NR_kexec_load 246 #define KEXEC_ARCH_X86_64 62 diff --git a/stand/kboot/arch/powerpc64/syscall_nr.h b/stand/kboot/arch/powerpc64/syscall_nr.h index 2854124153a2..1b24ec6165f7 100644 --- a/stand/kboot/arch/powerpc64/syscall_nr.h +++ b/stand/kboot/arch/powerpc64/syscall_nr.h @@ -1,14 +1,14 @@ -#define SYS_read 3 -#define SYS_write 4 -#define SYS_open 5 #define SYS_close 6 +#define SYS_getdents 141 #define SYS_gettimeofday 78 -#define SYS_reboot 88 -#define SYS_mmap 90 -#define SYS_uname 120 #define SYS_llseek 140 -#define SYS_getdents 141 +#define SYS_mmap 90 +#define SYS_open 5 +#define SYS_read 3 +#define SYS_reboot 88 #define SYS_select 142 +#define SYS_uname 120 +#define SYS_write 4 #define __NR_kexec_load 268 #define KEXEC_ARCH_PPC64 21