summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-12-11 00:58:05 +0000
committerbz <bz@FreeBSD.org>2008-12-11 00:58:05 +0000
commitda8c897826760d083248a5fc96e280066909c8b7 (patch)
tree2f772681f62886ca4c10ab44bc0a52330498af19
parentb23743de45e3817f1560837b416d9c697cf618f2 (diff)
downloadFreeBSD-src-da8c897826760d083248a5fc96e280066909c8b7.zip
FreeBSD-src-da8c897826760d083248a5fc96e280066909c8b7.tar.gz
Add 32-bit compat support for AIO.
jhb probably forgot to commit this file with r185878 and will want to review this. It unbreaks the build here. Obtained from: p4 //depot/user/jhb/lock/compat/freebsd32/freebsd32_signal.h#2
-rw-r--r--sys/compat/freebsd32/freebsd32_signal.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_signal.h b/sys/compat/freebsd32/freebsd32_signal.h
index dab266ee4..ba0922a 100644
--- a/sys/compat/freebsd32/freebsd32_signal.h
+++ b/sys/compat/freebsd32/freebsd32_signal.h
@@ -36,6 +36,9 @@ struct sigaltstack32 {
};
union sigval32 {
+ int sival_int;
+ u_int32_t sival_ptr;
+ /* 6.0 compatibility */
int sigval_int;
u_int32_t sigval_ptr;
};
@@ -70,6 +73,29 @@ struct siginfo32 {
} _reason;
};
+struct osigevent32 {
+ int sigev_notify; /* Notification type */
+ union {
+ int __sigev_signo; /* Signal number */
+ int __sigev_notify_kqueue;
+ } __sigev_u;
+ union sigval32 sigev_value; /* Signal value */
+};
+
+struct sigevent32 {
+ int sigev_notify; /* Notification type */
+ int sigev_signo; /* Signal number */
+ union sigval32 sigev_value; /* Signal value */
+ union {
+ __lwpid_t _threadid;
+ struct {
+ uint32_t _function;
+ uint32_t _attribute;
+ } _sigev_thread;
+ uint32_t __spare__[8];
+ } _sigev_un;
+};
+
void siginfo_to_siginfo32(siginfo_t *src, struct siginfo32 *dst);
#endif /* !_COMPAT_FREEBSD32_SIGNAL_H_ */
OpenPOWER on IntegriCloud