diff options
author | root <root@(null).(none)> | 2009-05-03 17:20:00 +0200 |
---|---|---|
committer | root <root@(null).(none)> | 2009-05-03 17:20:00 +0200 |
commit | e0faf22f31c48fb27b43c1825897d26e58feafc4 (patch) | |
tree | 65a09372b31e08a3a865bd0a88cd2718bafcd643 /pfinet.old/linux-src/include/linux/wait.h |
This is my initial working version.
There is a bug in boot in this version: subhurd sometimes cannot boot.
Diffstat (limited to 'pfinet.old/linux-src/include/linux/wait.h')
-rw-r--r-- | pfinet.old/linux-src/include/linux/wait.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pfinet.old/linux-src/include/linux/wait.h b/pfinet.old/linux-src/include/linux/wait.h new file mode 100644 index 00000000..6514693c --- /dev/null +++ b/pfinet.old/linux-src/include/linux/wait.h @@ -0,0 +1,33 @@ +#ifndef _LINUX_WAIT_H +#define _LINUX_WAIT_H + +#define WNOHANG 0x00000001 +#define WUNTRACED 0x00000002 + +#define __WCLONE 0x80000000 + +#ifdef __KERNEL__ + +#include <asm/page.h> + +struct wait_queue { + struct task_struct * task; + struct wait_queue * next; +}; + +#define WAIT_QUEUE_HEAD(x) ((struct wait_queue *)((x)-1)) + +static inline void init_waitqueue(struct wait_queue **q) +{ + *q = WAIT_QUEUE_HEAD(q); +} + +static inline int waitqueue_active(struct wait_queue **q) +{ + struct wait_queue *head = *q; + return head && head != WAIT_QUEUE_HEAD(q); +} + +#endif /* __KERNEL__ */ + +#endif |