summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-22 00:39:03 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-22 00:39:03 -0400
commit6ce1fade494c98414523568989fc7adea87f3402 (patch)
treeb228ddf31cce238447f8191b01527062356c5868 /src
parent1fd0f6e31f157cc9be115c29f0c537d8a225cc86 (diff)
downloadmusl-6ce1fade494c98414523568989fc7adea87f3402.tar.gz
add __sysv_signal abi-compat alias for the signal function
it should be noted that the "real" __sysv_signal, which we do not implement, is semantically different from signal. references to __sysv_signal arise in code built against glibc under certain combinations of feature test macros, and are almost surely unintentional since the legacy sysv signal behavior has fundamental race conditions that cannot be worked around and which make it impossible to use safely.
Diffstat (limited to 'src')
-rw-r--r--src/signal/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signal/signal.c b/src/signal/signal.c
index c0f063ed..29e03c88 100644
--- a/src/signal/signal.c
+++ b/src/signal/signal.c
@@ -13,3 +13,4 @@ void (*signal(int sig, void (*func)(int)))(int)
}
weak_alias(signal, bsd_signal);
+weak_alias(signal, __sysv_signal);