2013-09-26 17:14:40 +02:00

52 lines
1.5 KiB
Plaintext

$NetBSD: patch-am,v 1.1.1.1 2011/07/27 10:23:49 cherry Exp $
--- src/netbsd/signal-netbsd.h.orig 2009-12-16 12:47:32.000000000 +0000
+++ src/netbsd/signal-netbsd.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 1995-2007, Hewlett-Packard Development Company, L.P.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+#ifndef _SKI_SIGNAL_H
+#define _SKI_SIGNAL_H
+
+#define SIGRTMAX 63
+#define _SIG_WORDS 4
+
+typedef long long ptr64 __attribute__((aligned(8)));
+
+struct sigaction64 {
+ union {
+ ptr64 _sa_handler;
+ ptr64 _sa_sigaction;
+ } _sa_u;
+ sigset_t sa_mask;
+ int sa_flags;
+};
+
+struct siginfo64 {
+ union {
+ char si_pad[128];
+ struct _ksiginfo _info; /* XXX: open this out. pointers need to become (ptr64) */
+ };
+};
+
+int signal_get_handler(int, struct sigaction64 *);
+int signal_set_handler(int, struct sigaction64 *);
+
+#endif /* _SKI_SIGNAL_H */