Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ipc_defs.h 719B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2003 Roland McGrath <roland@redhat.com>
  3. * Copyright (c) 2003-2018 The strace developers.
  4. * All rights reserved.
  5. *
  6. * SPDX-License-Identifier: LGPL-2.1-or-later
  7. */
  8. #ifndef STRACE_IPC_DEFS_H
  9. # define STRACE_IPC_DEFS_H
  10. # ifdef HAVE_SYS_IPC_H
  11. # include <sys/ipc.h>
  12. # elif defined HAVE_LINUX_IPC_H
  13. # include <linux/ipc.h>
  14. /* While glibc uses __key, the kernel uses key. */
  15. # define __key key
  16. # endif
  17. # if !defined IPC_64
  18. # define IPC_64 0x100
  19. # endif
  20. # define PRINTCTL(flagset, arg, dflt) \
  21. do { \
  22. if ((arg) & IPC_64) { \
  23. print_xlat(IPC_64); \
  24. tprints("|"); \
  25. } \
  26. printxval((flagset), (arg) & ~IPC_64, dflt); \
  27. } while (0)
  28. #endif /* !STRACE_IPC_DEFS_H */