Blame SOURCES/glibc-rh1505492-prototypes-sigvec.patch

147e83
Change function declarations and definitions related to sigvec.
147e83
Addressed upstream with the removal of sigvec in this commit:
147e83
147e83
commit 0781a7772ae1385fe8d7a734fdb35df81b1e6590
147e83
Author: Roland McGrath <roland@hack.frob.com>
147e83
Date:   Fri Nov 14 10:52:16 2014 -0800
147e83
147e83
    Remove sigvec.
147e83
147e83
diff --git a/include/signal.h b/include/signal.h
147e83
index a019395882176073..d9f279c9bf0aca3d 100644
147e83
--- a/include/signal.h
147e83
+++ b/include/signal.h
147e83
@@ -40,6 +40,7 @@ extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info,
147e83
 libc_hidden_proto (__sigtimedwait)
147e83
 extern int __sigqueue (__pid_t __pid, int __sig,
147e83
 		       const union sigval __val);
147e83
+struct sigvec;
147e83
 extern int __sigvec (int __sig, const struct sigvec *__vec,
147e83
 		     struct sigvec *__ovec);
147e83
 extern int __sigreturn (struct sigcontext *__scp);
147e83
diff --git a/signal/sigvec.c b/signal/sigvec.c
147e83
index e44daf1ab6fd2f39..21e304d944e46c18 100644
147e83
--- a/signal/sigvec.c
147e83
+++ b/signal/sigvec.c
147e83
@@ -24,10 +24,7 @@
147e83
    reset to SIG_DFL before `sv_handler' is entered.  If OVEC is non-NULL,
147e83
    it is filled in with the old information for SIG.  */
147e83
 int
147e83
-__sigvec (sig, vec, ovec)
147e83
-     int sig;
147e83
-     const struct sigvec *vec;
147e83
-     struct sigvec *ovec;
147e83
+__sigvec (int sig, const struct sigvec *vec, struct sigvec *ovec)
147e83
 {
147e83
   __set_errno (ENOSYS);
147e83
   return -1;
147e83
diff --git a/sysdeps/posix/sigvec.c b/sysdeps/posix/sigvec.c
147e83
index 89e3d44d88ce3ee5..6a3ccc8eaf8ae0a5 100644
147e83
--- a/sysdeps/posix/sigvec.c
147e83
+++ b/sysdeps/posix/sigvec.c
147e83
@@ -43,10 +43,7 @@ static struct sigvec_wrapper_data sigvec_wrapper_data[NSIG];
147e83
    reset to SIG_DFL before `sv_handler' is entered.  If OVEC is non-NULL,
147e83
    it is filled in with the old information for SIG.  */
147e83
 int
147e83
-__sigvec (sig, vec, ovec)
147e83
-     int sig;
147e83
-     const struct sigvec *vec;
147e83
-     struct sigvec *ovec;
147e83
+__sigvec (int sig, const struct sigvec *vec, struct sigvec *ovec)
147e83
 {
147e83
   struct sigaction old;
147e83
 
147e83
@@ -159,8 +156,7 @@ weak_alias (__sigvec, sigvec)
147e83
 
147e83
 #ifndef SA_RESETHAND
147e83
 static void
147e83
-sigvec_wrapper_handler (sig)
147e83
-     int sig;
147e83
+sigvec_wrapper_handler (int sig)
147e83
 {
147e83
   struct sigvec_wrapper_data *data;
147e83
   struct sigaction act;