This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Committed: declare kill for CRIS
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: newlib at sourceware dot org
- Date: Thu, 3 Sep 2015 02:10:16 +0200
- Subject: Committed: declare kill for CRIS
- Authentication-results: sourceware.org; auth=none
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