From cfad02947d33ed17a1857ab1b33c7fd44cad8dc9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 19 Oct 2026 15:51:56 +0900 Subject: ext: add additional constants This removes the syscall cutoff thresholds, instead declaring all syscall number constants in package ext. This also removes two constants from package container which were inadvertently exported for 386 and amd64. Signed-off-by: Ophestra --- ext/mksysnum_linux.pl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'ext/mksysnum_linux.pl') diff --git a/ext/mksysnum_linux.pl b/ext/mksysnum_linux.pl index 22ec3fcf..1b381b28 100755 --- a/ext/mksysnum_linux.pl +++ b/ext/mksysnum_linux.pl @@ -7,13 +7,6 @@ use strict; use POSIX (); my $command = "mksysnum_linux.pl ". join(' ', @ARGV); -my $uname_arch = (POSIX::uname)[4]; -my %syscall_cutoff_arch = ( - "x86" => 340, - "x86_64" => 302, - "aarch64" => 281, - "riscv64" => 281, -); print < $syscall_cutoff_arch{$uname_arch} && $state == 0){ # not wired in Go standard library + if($state == 0){ # not wired in Go standard library print " SYS_$name_upper = $num\n"; } elsif($state == -1){ -- cgit v1.3.1