]> Sergey Matveev's repositories - public-inbox.git/commit
syscall: support sparc64 (and maybe other big-endian systems)
authorEric Wong <e@yhbt.net>
Fri, 7 Aug 2020 10:15:04 +0000 (10:15 +0000)
committerEric Wong <e@yhbt.net>
Fri, 7 Aug 2020 23:44:55 +0000 (23:44 +0000)
commit62068fafcb40c2f91d31cf3fa5e775ecc52a6ba8
tree64416de947b897e8ce15c4c91423bb8639e21669
parent9968a955fd7881155bd4938116b98d2ffba192e6
syscall: support sparc64 (and maybe other big-endian systems)

Thanks to the GCC compile farm project, we can wire up syscalls
for sparc64 and set system-specific SFD_* constants properly.

I've FINALLY figured out how to use POSIX::SigSet to generate
a usable buffer for the syscall perlfunc.  This is required
for endian-neutral behavior and relevant to sparc64, at least.

There's no need for signalfd-related stuff to be constants,
either.  signalfd initialization is never a hot path and a stub
subroutine for constants uses several KB of memory in the
interpreter.

We'll drop the needless SEEK_CUR import while we're importing
O_NONBLOCK, too.
lib/PublicInbox/DSKQXS.pm
lib/PublicInbox/Daemon.pm
lib/PublicInbox/Sigfd.pm
lib/PublicInbox/Syscall.pm
script/public-inbox-watch
t/sigfd.t