This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: declare kill for CRIS


I just committed this, needed for a recent gcc trunk change, for
the cris-elf port to build at all.  See earlier post and
committed patch for the general sys/signal.h.  It causes no
regressions compared to results before that change.  The CRIS
port overrides sys/signal.h and needs to be manually kept in
sync with visible functionality changes like declarations, see
top comment.

	* libc/machine/cris/sys/signal.h (kill): Declare.

diff --git a/newlib/libc/machine/cris/sys/signal.h b/newlib/libc/machine/cris/sys/signal.h
index 081a75f..9cb7ba5 100644
--- a/newlib/libc/machine/cris/sys/signal.h
+++ b/newlib/libc/machine/cris/sys/signal.h
@@ -44,6 +44,10 @@ struct sigaction {
 
 int sigprocmask (int __how, const sigset_t *__a, sigset_t *__b);
 
+/* The first argument is really a pid_t, but that's just a typedef'd
+   int, so let's avoid requiring sys/types only for this declaration.  */
+int kill (int, int);
+
 #define SIGHUP		 1
 #define SIGINT		 2
 #define SIGQUIT		 3

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]