Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys fix the signature of struct sigevent:sigev_notify_fu...
details: https://anonhg.NetBSD.org/src/rev/1593412fc6c0
branches: trunk
changeset: 749813:1593412fc6c0
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Dec 09 20:26:12 2009 +0000
description:
fix the signature of struct sigevent:sigev_notify_function, noticed by
BaiYang per PR lib/42434
the sad truth is that this doesn't help much because SIGEV_THREAD just
doesn't work (at least on -current, likely on -5, perhaps it worked
woth scheduler activations)
diffstat:
sys/sys/signal.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r de48bd4698ad -r 1593412fc6c0 sys/sys/signal.h
--- a/sys/sys/signal.h Wed Dec 09 18:06:08 2009 +0000
+++ b/sys/sys/signal.h Wed Dec 09 20:26:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.64 2008/02/27 22:18:41 hubertf Exp $ */
+/* $NetBSD: signal.h,v 1.65 2009/12/09 20:26:12 drochner Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -215,14 +215,16 @@
int sigev_notify;
int sigev_signo;
union sigval sigev_value;
- void (*sigev_notify_function)(union sigval *);
+ void (*sigev_notify_function)(union sigval);
void /* pthread_attr_t */ *sigev_notify_attributes;
};
#define SIGEV_NONE 0
#define SIGEV_SIGNAL 1
#define SIGEV_THREAD 2
+#if defined(_NETBSD_SOURCE)
#define SIGEV_SA 3
+#endif
#endif /* (_POSIX_C_SOURCE - 0) >= 199309L || ... */
#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */
Home |
Main Index |
Thread Index |
Old Index