12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #include <signal.h>
- #include <unistd.h>
- #ifndef IS_IN_rtld
- # include <bits/libc-lock.h>
- # ifndef SHARED
- weak_extern (__pthread_raise)
- # endif
- #endif
- int
- raise (sig)
- int sig;
- {
- #ifdef IS_IN_rtld
- return __kill (__getpid (), sig);
- #else
- return __libc_maybe_call2 (pthread_raise, (sig),
- __kill (__getpid (), sig));
- #endif
- }
- libc_hidden_def (raise)
- weak_alias (raise, gsignal)
|