1 #ifndef _LINUX_WAIT_H 2 #define _LINUX_WAIT_H 3 4 #define WNOHANG 1 5 #define WUNTRACED 2 6 7 struct wait_queue { 8 struct task_struct * task; 9 struct wait_queue * next; 10 }; 11 12 typedef struct select_table_struct { 13 int nr; 14 struct select_table_entry { 15 struct wait_queue wait; 16 struct wait_queue ** wait_address; 17 } * entry; 18 } select_table; 19 20 #define __MAX_SELECT_TABLE_ENTRIES (4096 / sizeof (struct select_table_entry)) 21 22 #endif