From 70c31c7bd779400d2eb56dcb4075bb37227081db Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 29 Mar 2011 10:05:57 -0400 Subject: [PATCH] some preliminaries for adding POSIX timers --- arch/i386/bits/alltypes.h.sh | 2 +- arch/x86_64/bits/alltypes.h.sh | 2 +- src/internal/pthread_impl.h | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh index c6201b9d..13658cc2 100755 --- a/arch/i386/bits/alltypes.h.sh +++ b/arch/i386/bits/alltypes.h.sh @@ -107,7 +107,7 @@ TYPEDEF long long blkcnt_t; TYPEDEF unsigned long long fsblkcnt_t; TYPEDEF unsigned long long fsfilcnt_t; -TYPEDEF void * timer_t; +TYPEDEF struct __timer * timer_t; TYPEDEF int clockid_t; TYPEDEF unsigned long clock_t; diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh index b0aecd9c..cd84a2da 100755 --- a/arch/x86_64/bits/alltypes.h.sh +++ b/arch/x86_64/bits/alltypes.h.sh @@ -107,7 +107,7 @@ TYPEDEF long long blkcnt_t; TYPEDEF unsigned long long fsblkcnt_t; TYPEDEF unsigned long long fsfilcnt_t; -TYPEDEF void * timer_t; +TYPEDEF struct __timer * timer_t; TYPEDEF int clockid_t; TYPEDEF long clock_t; diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index c8fa4b11..615b963a 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -43,6 +43,10 @@ struct pthread { } robust_list; }; +struct __timer { + struct sigevent sev; +}; + #define __SU (sizeof(size_t)/sizeof(int)) #define _a_stacksize __u.__s[0] -- 2.25.1