diff options
Diffstat (limited to 'sysdeps/pthread/bits')
-rw-r--r-- | sysdeps/pthread/bits/sigthread.h | 5 | ||||
-rw-r--r-- | sysdeps/pthread/bits/types/sigevent_t.h | 18 |
2 files changed, 21 insertions, 2 deletions
diff --git a/sysdeps/pthread/bits/sigthread.h b/sysdeps/pthread/bits/sigthread.h index 32ef1a974a..b1fb6150e4 100644 --- a/sysdeps/pthread/bits/sigthread.h +++ b/sysdeps/pthread/bits/sigthread.h @@ -1,5 +1,5 @@ /* Signal handling function for threaded programs. - Copyright (C) 1998-2016 Free Software Foundation, Inc. + Copyright (C) 1998-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,10 +20,11 @@ #define _BITS_SIGTHREAD_H 1 #if !defined _SIGNAL_H && !defined _PTHREAD_H -# error "Never include this file directly. Use <pthread.h> instead" +# error "Never include this file directly. Use <signal.h> instead" #endif /* Functions for handling signals. */ +#include <bits/types/__sigset_t.h> /* Modify the signal mask for the calling thread. The arguments have the same meaning as for sigprocmask(2). */ 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 |