summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-07-11 00:29:31 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-07-11 00:29:31 +0000
commite48bfe270172d470435890320762023d2eae6f24 (patch)
treea359fb16fcb563929e850068a06530701971f86c
parent3543f90f96b96bcd7fbfc9b0e18e5473ca9c8c06 (diff)
move struct hpux_sigaltstack out into .h file as i just figured out it is needed elsewhere too
-rw-r--r--sys/compat/hpux/hppa/hpux_sig.c9
-rw-r--r--sys/compat/hpux/hpux_sig.h12
2 files changed, 12 insertions, 9 deletions
diff --git a/sys/compat/hpux/hppa/hpux_sig.c b/sys/compat/hpux/hppa/hpux_sig.c
index 06462c709c0..ed7cea2ec8c 100644
--- a/sys/compat/hpux/hppa/hpux_sig.c
+++ b/sys/compat/hpux/hppa/hpux_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_sig.c,v 1.2 2004/07/11 00:20:46 mickey Exp $ */
+/* $OpenBSD: hpux_sig.c,v 1.3 2004/07/11 00:29:30 mickey Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff. All rights reserved.
@@ -421,13 +421,8 @@ hpux_sys_sigaltstack(struct proc *p, void *v, register_t *retval)
syscallarg(struct hpux_sigaltstack *) nss;
syscallarg(struct hpux_sigaltstack *) oss;
} */ *uap = v;
- struct hpux_sigaltstack {
- void *ss_sp;
- int ss_flags;
-#define HPUX_SS_DISABLE 0x0002
- size_t ss_size;
- } hsa;
struct sys_sigaltstack_args saa;
+ struct hpux_sigaltstack hsa;
struct sigaltstack *psa, sa;
caddr_t sg;
int error;
diff --git a/sys/compat/hpux/hpux_sig.h b/sys/compat/hpux/hpux_sig.h
index b83cbd66a3e..f1c0ba71719 100644
--- a/sys/compat/hpux/hpux_sig.h
+++ b/sys/compat/hpux/hpux_sig.h
@@ -1,7 +1,8 @@
-/* $OpenBSD: hpux_sig.h,v 1.3 2003/06/02 23:28:00 millert Exp $ */
+/* $OpenBSD: hpux_sig.h,v 1.4 2004/07/11 00:29:30 mickey Exp $ */
/* $NetBSD: hpux_sig.h,v 1.1 1997/04/01 19:59:03 scottr Exp $ */
/*
+ * Copyright (c) 2004 Michael Shalayeff. All rights reserved.
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -40,9 +41,16 @@
*/
/*
- * Signal-related HPUX compatibility routines
+ * Signal-related HPUX compatibility routines and data types
*/
+struct hpux_sigaltstack {
+ void *ss_sp;
+ int ss_flags;
+ size_t ss_size;
+};
+#define HPUX_SS_DISABLE 0x0002
+
#ifdef _KERNEL
int hpuxtobsdsig(int);
int bsdtohpuxsig(int);