From: Rich Felker Date: Tue, 29 Mar 2011 14:05:57 +0000 (-0400) Subject: some preliminaries for adding POSIX timers X-Git-Tag: v0.7.5~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70c31c7bd779400d2eb56dcb4075bb37227081db;p=oweals%2Fmusl.git some preliminaries for adding POSIX timers --- 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]