Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 28 Feb 2024 16:42:15 +0800
From: Hongliang Wang <wanghongliang@...ngson.cn>
To: musl@...ts.openwall.com
Subject: LoongArch:bits/syscall.h:update syscall number.

Hi,

Delete __NR_getrlimit and __NR_setrlimit, which are not supported
in LoongArch in linux kernel.
Add 441-446, 448-456 syscall number.

---
  arch/loongarch64/bits/syscall.h.in | 17 +++++++++++++++--
  1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/arch/loongarch64/bits/syscall.h.in 
b/arch/loongarch64/bits/syscall.h.in
index 0980e533..2afb4ea1 100644
--- a/arch/loongarch64/bits/syscall.h.in
+++ b/arch/loongarch64/bits/syscall.h.in
@@ -158,8 +158,6 @@
  #define __NR_uname                      160
  #define __NR_sethostname                161
  #define __NR_setdomainname              162
-#define __NR_getrlimit                  163
-#define __NR_setrlimit                  164
  #define __NR_getrusage                  165
  #define __NR_umask                      166
  #define __NR_prctl                      167
@@ -292,6 +290,21 @@
  #define __NR_pidfd_getfd                438
  #define __NR_faccessat2                 439
  #define __NR_process_madvise            440
+#define __NR_epoll_pwait2               441
+#define __NR_mount_setattr              442
+#define __NR_quotactl_fd                443
+#define __NR_landlock_create_ruleset    444
+#define __NR_landlock_add_rule          445
+#define __NR_landlock_restrict_self     446
+#define __NR_process_mrelease           448
+#define __NR_futex_waitv                449
+#define __NR_set_mempolicy_home_node    450
+#define __NR_cachestat                  451
+#define __NR_fchmodat2                  452
+#define __NR_map_shadow_stack           453
+#define __NR_futex_wake                 454
+#define __NR_futex_wait                 455
+#define __NR_futex_requeue              456
  #define __NR_fcntl                      __NR3264_fcntl
  #define __NR_statfs                     __NR3264_statfs
  #define __NR_fstatfs                    __NR3264_fstatfs
-- 
2.37.1

Regards,
Hongliang Wang

View attachment "0001-LoongArch-bits-syscall.h-update-syscall-number.patch" of type "text/x-patch" (2123 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.