diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-24 02:55:31 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-26 20:23:24 +0200 |
commit | 29ff9055c80efe77a7130767a9fcb3ab8c67e8ce (patch) | |
tree | b061656c1336d7d73ed5eef59352e3d50d8147a7 /libpthread/nptl/sysdeps/pthread/pt-sigaction.c | |
parent | b06f85d62c41a4ed108628b1c564203f36c0ab4e (diff) |
use a single libc and deduplicate threading code
Similar to musl libc a single libc has many benefits and solves
some open issues with uClibc-ng.
- no pthread_mutex_* weak symbols exported anymore
- applications no longer failing to link when either
-lrt or -lpthread are missing for dynamic and static linking mode
- smaller C library
- slightly better runtime performance
Diffstat (limited to 'libpthread/nptl/sysdeps/pthread/pt-sigaction.c')
-rw-r--r-- | libpthread/nptl/sysdeps/pthread/pt-sigaction.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/pt-sigaction.c b/libpthread/nptl/sysdeps/pthread/pt-sigaction.c index 43a2da213..d8fa4c94f 100644 --- a/libpthread/nptl/sysdeps/pthread/pt-sigaction.c +++ b/libpthread/nptl/sysdeps/pthread/pt-sigaction.c @@ -22,9 +22,10 @@ /* We use the libc implementation but we tell it to not allow SIGCANCEL or SIGTIMER to be handled. */ +libc_hidden_proto(sigaction) extern __typeof(sigaction) __libc_sigaction; int -__sigaction (int sig, const struct sigaction *act, struct sigaction *oact) +sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { if (unlikely (sig == SIGCANCEL || sig == SIGSETXID)) { @@ -34,6 +35,4 @@ __sigaction (int sig, const struct sigaction *act, struct sigaction *oact) return __libc_sigaction (sig, act, oact); } -libc_hidden_proto(sigaction) -weak_alias (__sigaction, sigaction) -libc_hidden_weak(sigaction) +libc_hidden_def(sigaction) |