Module Name: src
Committed By: drochner
Date: Wed Dec 9 20:26:12 UTC 2009
Modified Files:
src/sys/sys: signal.h
Log Message:
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)
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/sys/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/signal.h
diff -u src/sys/sys/signal.h:1.64 src/sys/sys/signal.h:1.65
--- src/sys/sys/signal.h:1.64 Wed Feb 27 22:18:41 2008
+++ src/sys/sys/signal.h Wed Dec 9 20:26:12 2009
@@ -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 */