dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] syscall: fix loongarch support and add inotify
@ 2023-12-27 23:00 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-12-27 23:00 UTC (permalink / raw)
  To: spew; +Cc: EW

From: EW <e@80x24.org>

---
 lib/PublicInbox/Syscall.pm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index 3e315ea7..4af210c5 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -199,7 +199,7 @@ if ($^O eq "linux") {
         $u64_mod_8        = 1;
         $SYS_signalfd4 = 484;
 	$SFD_CLOEXEC = 010000000;
-    } elsif ($machine =~ /\A(?:loong)?aarch64\z/ || $machine eq 'riscv64') {
+    } elsif ($machine =~ /\A(?:loong|a)arch64\z/ || $machine eq 'riscv64') {
         $SYS_epoll_create = 20;  # (sys_epoll_create1)
         $SYS_epoll_ctl    = 21;
         $SYS_epoll_wait   = 22;  # (sys_epoll_pwait)
@@ -210,6 +210,11 @@ if ($^O eq "linux") {
 	$SYS_fstatfs = 44;
 	$SYS_sendmsg = 211;
 	$SYS_recvmsg = 212;
+	$INOTIFY = {
+		SYS_inotify_init1 => 26,
+		SYS_inotify_add_watch => 27,
+		SYS_inotify_rm_watch => 28,
+	};
 	$FS_IOC_GETFLAGS = 0x80086601;
 	$FS_IOC_SETFLAGS = 0x40086602;
     } elsif ($machine =~ m/arm(v\d+)?.*l/) { # ARM OABI (untested on cfarm)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-27 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27 23:00 [PATCH] syscall: fix loongarch support and add inotify Eric Wong

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 read-only IMAP folder(s) and NNTP newsgroup(s).