[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / include / llvm-libc-macros / linux / sys-wait-macros.h
blobad66d050334f1f8fdefc9d7f1f4532e7e24fa499
1 //===-- Definition of macros from sys/wait.h ------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
10 #define __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
12 // Wait flags
13 #define WNOHANG 1 // Do not block
14 #define WUNTRACED 2 // Report is a child has stopped even if untraced
15 #define WCONTINUED 8 // Report if a stopped child has been resumed by SIGCONT
17 // Wait status info macros
18 #define WTERMSIG(status) (((status)&0x7F))
19 #define WIFEXITED(status) (WTERMSIG(status) == 0)
20 #define WEXITSTATUS(status) (((status)&0xFF00) >> 8)
21 #define WIFSIGNALED(status) \
22 ((WTERMSIG(status) < 0x7F) && (WTERMSIG(status) > 0))
24 #endif // __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H