2 * Copyright (c) 2004-2018 The strace developers.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
13 # include <sys/wait.h>
15 # include "static_assert.h"
18 * On Linux, the "core dumped" flag is hard-coded to 0x80:
19 * fs/coredump.c:coredump_finish() after v3.10-rc1~143^2~41,
20 * fs/coredump.c:do_coredump() between v3.7-rc1~134^2~4 and v3.10-rc1~143^2~41,
21 * or fs/exec.c:do_coredump() before v3.7-rc1~134^2~4
24 # define WCOREFLAG 0x80
26 static_assert((WCOREFLAG) == 0x80, "WCOREFLAG != 0x80");
29 # define WCOREDUMP(status) ((status) & (WCOREFLAG))
33 # define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
36 # define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
39 # define W_CONTINUED 0xffff
42 #endif /* STRACE_WAIT_H */