Browse Source

some preliminaries for adding POSIX timers

Rich Felker 14 years ago
parent
commit
70c31c7bd7
3 changed files with 6 additions and 2 deletions
  1. 1 1
      arch/i386/bits/alltypes.h.sh
  2. 1 1
      arch/x86_64/bits/alltypes.h.sh
  3. 4 0
      src/internal/pthread_impl.h

+ 1 - 1
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;
 

+ 1 - 1
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;
 

+ 4 - 0
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]