summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/sigframe.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-10-03 12:55:58 +0000
committermarcel <marcel@FreeBSD.org>1999-10-03 12:55:58 +0000
commitba5e4c816c969c1a63a59bbe053b6ca9233f2263 (patch)
tree775767d51adb17eed5c98182bf0f2498920eea61 /sys/amd64/include/sigframe.h
parent322edeeaa9db24f692a897cb4796b2fb096d1a2c (diff)
downloadFreeBSD-src-ba5e4c816c969c1a63a59bbe053b6ca9233f2263.zip
FreeBSD-src-ba5e4c816c969c1a63a59bbe053b6ca9233f2263.tar.gz
Fix style bugs caused by using the wrong file to copy from. That one
gets fixed later on. Reinstate the mysterious 4th argument to signal handlers and add some comments on that.
Diffstat (limited to 'sys/amd64/include/sigframe.h')
-rw-r--r--sys/amd64/include/sigframe.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/amd64/include/sigframe.h b/sys/amd64/include/sigframe.h
index 9c47915..ac64ddb 100644
--- a/sys/amd64/include/sigframe.h
+++ b/sys/amd64/include/sigframe.h
@@ -29,7 +29,11 @@
*/
#ifndef _MACHINE_SIGFRAME_H_
-#define _MACHINE_SIGFRAME_H_ 1
+#define _MACHINE_SIGFRAME_H_
+
+/*
+ * Signal frames, arguments passed to application signal handlers.
+ */
struct osigframe {
/*
@@ -68,12 +72,16 @@ struct osigframe {
struct sigframe {
/*
- * The first three members may be used by applications.
+ * The first four members may be used by applications.
+ * NOTE: The 4th argument is undocumented, ill commented
+ * on and seems to be somewhat BSD "standard".
+ * Handlers installed with sigvec may be using it.
*/
register_t sf_signum;
register_t sf_siginfo; /* code or pointer to sf_si */
register_t sf_ucontext; /* points to sf_uc */
- register_t __spare__; /* Align sf_ahu */
+ char *sf_addr; /* undocumented 4th arg */
+
union {
__siginfohandler_t *sf_action;
__sighandler_t *sf_handler;
@@ -83,4 +91,4 @@ struct sigframe {
ucontext_t sf_uc; /* = *sf_ucontext */
};
-#endif /* _MACHINE_SIGFRAME_H_ */
+#endif /* !_MACHINE_SIGFRAME_H_ */
OpenPOWER on IntegriCloud