Files
glibc/sysdeps/unix/sysv/linux/bits/waitflags.h
T

39 lines
1.7 KiB
C
Raw Normal View History

1996-09-07 04:10:57 +00:00
/* Definitions of flag bits for `waitpid' et al.
2005-01-05 19:11:59 +00:00
Copyright (C) 1992,1996,1997,2000,2004,2005 Free Software Foundation, Inc.
1996-11-15 04:08:00 +00:00
This file is part of the GNU C Library.
1996-09-07 04:10:57 +00:00
1996-11-15 04:08:00 +00:00
The GNU C Library is free software; you can redistribute it and/or
2001-07-06 04:58:11 +00:00
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
1996-09-07 04:10:57 +00:00
1996-11-15 04:08:00 +00:00
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2001-07-06 04:58:11 +00:00
Lesser General Public License for more details.
1996-09-07 04:10:57 +00:00
2001-07-06 04:58:11 +00:00
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
1996-09-07 04:10:57 +00:00
2000-02-24 08:04:43 +00:00
#if !defined _SYS_WAIT_H && !defined _STDLIB_H
1997-11-26 04:23:08 +00:00
# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."
1997-06-21 02:59:26 +00:00
#endif
1996-09-07 04:10:57 +00:00
/* Bits in the third argument to `waitpid'. */
#define WNOHANG 1 /* Don't block waiting. */
#define WUNTRACED 2 /* Report status of stopped children. */
2004-09-01 19:39:17 +00:00
/* Bits in the fourth argument to `waitid'. */
#define WSTOPPED 2 /* Report stopped child (same as WUNTRACED). */
#define WEXITED 4 /* Report dead child. */
#define WCONTINUED 8 /* Report continued child. */
#define WNOWAIT 0x01000000 /* Don't reap, just poll status. */
2005-01-05 19:11:59 +00:00
#define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads
in this group */
2000-02-24 06:01:05 +00:00
#define __WALL 0x40000000 /* Wait for any child. */
1996-09-07 04:10:57 +00:00
#define __WCLONE 0x80000000 /* Wait for cloned process. */