waiting_get_state — get waiting state
extern int waiting_get_state(waiting* , int* );
extern int waiting_get_state
get waiting state