/*
 * share/wait.h
 */


#ifndef share_wait_h
#define share_wait_h


#ifndef ASM_FILE


enum{
	/* Symbolic constants for use with waitpid() */
	WNOHANG=1<<0,		/* Do not hang if no status is available; return immediately. */
	WUNTRACED=1<<1,		/* Report status of stopped child process. */

	/*
	 * wait状態値の評価マクロ用のビットシフト値。
	 * 　　　　　1 | 1 1 1 1 1 1 1 1 | 1 | 1 1 1 1 1 1 1 1 | 1 | 1 1 1 1 1 1 1 1 | 1 1 1 1 1
	 * ビット値　0   1                 9   10                18  19
	 */
	WIFEXITED_SHIFT=0,
	WEXITSTATUS_SHIFT=1,
	WIFSIGNALED_SHIFT=9,
	WTERMSIG_SHIFT=10,
	WIFSTOPPED_SHIFT=18,
	WSTOPSI_SHIFT=19,
};


#endif


#endif
