mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
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*.
This commit is contained in:
@ -67,13 +67,16 @@
|
|||||||
instead of wait_queue.
|
instead of wait_queue.
|
||||||
* sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
|
* sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
|
||||||
instead of vm_area_struct.
|
instead of vm_area_struct.
|
||||||
* bits/sched.h: Include <bits/types/struct_sched_param.h> and move struct
|
* bits/sched.h: Include <bits/types/struct_sched_param.h> and move
|
||||||
sched_param definition to it.
|
struct sched_param definition to it.
|
||||||
* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
|
* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
|
||||||
* bits/types/struct_sched_param.h: New file.
|
* bits/types/struct_sched_param.h: New file.
|
||||||
* sysdeps/htl/bits/types/struct___pthread_attr.h: Include
|
* sysdeps/htl/bits/types/struct___pthread_attr.h: Include
|
||||||
<bits/types/struct_sched_param.h> instead of <sched.h>.
|
<bits/types/struct_sched_param.h> instead of <sched.h>.
|
||||||
* posix/Makefile (headers): Add bits/types/struct_sched_param.h.
|
* posix/Makefile (headers): Add bits/types/struct_sched_param.h.
|
||||||
|
* 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*.
|
||||||
|
|
||||||
2018-04-18 Joseph Myers <joseph@codesourcery.com>
|
2018-04-18 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
18
sysdeps/pthread/bits/types/sigevent_t.h
Normal file
18
sysdeps/pthread/bits/types/sigevent_t.h
Normal file
@ -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
|
Reference in New Issue
Block a user