projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use restrict everywhere it's required by c99 and/or posix 2008
[musl]
/
src
/
signal
/
sigaction.c
diff --git
a/src/signal/sigaction.c
b/src/signal/sigaction.c
index
e0c58b7
..
2331dc9
100644
(file)
--- a/
src/signal/sigaction.c
+++ b/
src/signal/sigaction.c
@@
-11,7
+11,7
@@
void __restore(), __restore_rt();
static pthread_t dummy(void) { return 0; }
weak_alias(dummy, __pthread_self_def);
static pthread_t dummy(void) { return 0; }
weak_alias(dummy, __pthread_self_def);
-int __libc_sigaction(int sig, const struct sigaction *
sa, struct sigaction *
old)
+int __libc_sigaction(int sig, const struct sigaction *
restrict sa, struct sigaction *restrict
old)
{
struct k_sigaction ksa;
if (sa) {
{
struct k_sigaction ksa;
if (sa) {
@@
-31,7
+31,7
@@
int __libc_sigaction(int sig, const struct sigaction *sa, struct sigaction *old)
return 0;
}
return 0;
}
-int __sigaction(int sig, const struct sigaction *
sa, struct sigaction *
old)
+int __sigaction(int sig, const struct sigaction *
restrict sa, struct sigaction *restrict
old)
{
if (sig-32U < 3) {
errno = EINVAL;
{
if (sig-32U < 3) {
errno = EINVAL;