Committed: declare kill for CRIS
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Fri Sep 4 10:03:00 GMT 2015
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
More information about the Newlib
mailing list