]> sourceware.org Git - glibc.git/blame - bits/waitflags.h
io: Fix destructive nature of tst-fchmod-errors
[glibc.git] / bits / waitflags.h
CommitLineData
28f540f4 1/* Definitions of flag bits for `waitpid' et al.
dff8da6b 2 Copyright (C) 1992-2024 Free Software Foundation, Inc.
54d79e99 3 This file is part of the GNU C Library.
28f540f4 4
54d79e99 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
28f540f4 9
54d79e99
UD
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
28f540f4 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
28f540f4 18
9323b58f 19#if !defined _SYS_WAIT_H && !defined _STDLIB_H
f4017d20 20# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."
5107cf1d 21#endif
28f540f4 22
28f540f4
RM
23
24/* Bits in the third argument to `waitpid'. */
25#define WNOHANG 1 /* Don't block waiting. */
26#define WUNTRACED 2 /* Report status of stopped children. */
f6abd970
ST
27
28/* Bits in the fourth argument to `waitid'. */
29#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
30# define WSTOPPED WUNTRACED /* Report stopped child. */
31# define WCONTINUED 4 /* Report continued child. */
32# define WNOWAIT 8 /* Don't reap, just poll status. */
33# define WEXITED 16 /* Report dead child. */
34#endif
This page took 0.563067 seconds and 6 git commands to generate.