From 5cd2931ab89caeed42293b79e4c9b2023df47684 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 19 Apr 2018 20:55:12 +0200 Subject: 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 to make struct sigevent's sigev_notify_attributes field a pthread_attr_t*. --- sysdeps/pthread/bits/types/sigevent_t.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sysdeps/pthread/bits/types/sigevent_t.h (limited to 'sysdeps/pthread') 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 +#include +#include + +/* 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 -- cgit v1.2.3