about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-29 10:05:57 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-29 10:05:57 -0400
commit70c31c7bd779400d2eb56dcb4075bb37227081db (patch)
treea996de241fb11dfd48094285b090e88f84eb2782
parent8250742b90b8b54e642fa9201bf0cf8b7c27bbb8 (diff)
downloadmusl-70c31c7bd779400d2eb56dcb4075bb37227081db.tar.gz
musl-70c31c7bd779400d2eb56dcb4075bb37227081db.tar.xz
musl-70c31c7bd779400d2eb56dcb4075bb37227081db.zip
some preliminaries for adding POSIX timers
-rwxr-xr-xarch/i386/bits/alltypes.h.sh2
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh2
-rw-r--r--src/internal/pthread_impl.h4
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]