2 * Copyright (c) 2003 Roland McGrath <roland@redhat.com>
3 * Copyright (c) 2003-2018 The strace developers.
6 * SPDX-License-Identifier: LGPL-2.1-or-later
9 #ifndef STRACE_IPC_DEFS_H
10 # define STRACE_IPC_DEFS_H
12 # ifdef HAVE_SYS_IPC_H
14 # elif defined HAVE_LINUX_IPC_H
15 # include <linux/ipc.h>
16 /* While glibc uses __key, the kernel uses key. */
24 # define PRINTCTL(flagset, arg, dflt) \
26 if ((arg) & IPC_64) { \
30 printxval((flagset), (arg) & ~IPC_64, dflt); \
33 #endif /* !STRACE_IPC_DEFS_H */