summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al')
-rwxr-xr-xMaster/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al17
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al b/Master/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al
new file mode 100755
index 00000000000..1cdbfaaf197
--- /dev/null
+++ b/Master/tlpkg/tlperl0/lib/auto/POSIX/SigRt/_getsig.al
@@ -0,0 +1,17 @@
+# NOTE: Derived from ..\..\lib\POSIX.pm.
+# Changes made here will be lost when autosplit is run again.
+# See AutoSplit.pm.
+package POSIX::SigRt;
+
+#line 1003 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\SigRt\_getsig.al)"
+sub _getsig {
+ &_croak;
+ my $rtsig = $_[0];
+ # Allow (SIGRT)?MIN( + n)?, a common idiom when doing these things in C.
+ $rtsig = $_SIGRTMIN + ($1 || 0)
+ if $rtsig =~ /^(?:(?:SIG)?RT)?MIN(\s*\+\s*(\d+))?$/;
+ return $rtsig;
+}
+
+# end of POSIX::SigRt::_getsig
+1;