some preliminaries for adding POSIX timers

This commit is contained in:
Rich Felker 2011-03-29 10:05:57 -04:00
parent 8250742b90
commit 70c31c7bd7
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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]