summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-19 20:55:12 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-19 21:43:44 +0200
commit5cd2931ab89caeed42293b79e4c9b2023df47684 (patch)
tree062de2b2b0f2e4589ff83dd0677d9056226a96e7 /sysdeps/pthread/bits
parent9f0437e862225e036155b30e7edc4f6fe89dc0c0 (diff)
hurd: fix sigevent's sigev_notify_attributes field type
* sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the generic version but include <bits/pthreadtypes.h> to make struct sigevent's sigev_notify_attributes field a pthread_attr_t*.
Diffstat (limited to 'sysdeps/pthread/bits')
-rw-r--r--sysdeps/pthread/bits/types/sigevent_t.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/pthread/bits/types/sigevent_t.h b/sysdeps/pthread/bits/types/sigevent_t.h
new file mode 100644
index 0000000000..f242f14615
--- /dev/null
+++ b/sysdeps/pthread/bits/types/sigevent_t.h
@@ -0,0 +1,18 @@
+#ifndef __sigevent_t_defined
+#define __sigevent_t_defined 1
+
+#include <bits/types.h>
+#include <bits/types/__sigval_t.h>
+#include <bits/pthreadtypes.h>
+
+/* Structure to transport application-defined values with signals. */
+typedef struct sigevent
+ {
+ __sigval_t sigev_value;
+ int sigev_signo;
+ int sigev_notify;
+ void (*sigev_notify_function) (__sigval_t); /* Function to start. */
+ pthread_attr_t *sigev_notify_attributes; /* Really pthread_attr_t.*/
+ } sigevent_t;
+
+#endif