From: Hongliang Wang <wanghongliang@loongson.cn>
To: musl@lists.openwall.com
Subject: [musl] LoongArch:bits/syscall.h:update syscall number.
Date: Wed, 28 Feb 2024 16:42:15 +0800 [thread overview]
Message-ID: <be9b49f2-2d4e-d57f-254a-2bf9fc0b60cb@loongson.cn> (raw)
[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]
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
[-- Attachment #2: 0001-LoongArch-bits-syscall.h-update-syscall-number.patch --]
[-- Type: text/x-patch, Size: 2121 bytes --]
From 71bb136d040b63349a92c55634aff8bd263c0a80 Mon Sep 17 00:00:00 2001
From: wanghongliang <wanghongliang@loongson.cn>
Date: Wed, 28 Feb 2024 06:38:08 +0800
Subject: [PATCH] LoongArch:bits/syscall.h:update syscall number.
Delete __NR_getrlimit and __NR_setrlimit, which are not supported
in LoongArch in linux kernel.
Add 441-446, 448-456 syscall number.
Signed-off-by: wanghongliang <wanghongliang@loongson.cn>
---
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
next reply other threads:[~2024-02-28 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-28 8:42 Hongliang Wang [this message]
2024-02-29 22:35 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be9b49f2-2d4e-d57f-254a-2bf9fc0b60cb@loongson.cn \
--to=wanghongliang@loongson.cn \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).