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.

mpers_type.h 860B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
  3. * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
  4. * Copyright (c) 2015-2018 The strace developers.
  5. * All rights reserved.
  6. *
  7. * SPDX-License-Identifier: LGPL-2.1-or-later
  8. */
  9. #ifndef STRACE_MPERS_TYPE_H
  10. # define STRACE_MPERS_TYPE_H
  11. # include "macros.h"
  12. # ifdef IN_MPERS
  13. # define DEF_MPERS_TYPE(args) STRINGIFY(args.h)
  14. # ifdef MPERS_IS_m32
  15. # define MPERS_PREFIX m32_
  16. # define MPERS_DEFS "m32_type_defs.h"
  17. # elif defined MPERS_IS_mx32
  18. # define MPERS_PREFIX mx32_
  19. # define MPERS_DEFS "mx32_type_defs.h"
  20. # endif
  21. # else
  22. # define MPERS_PREFIX
  23. # define DEF_MPERS_TYPE(args) "empty.h"
  24. # if IN_MPERS_BOOTSTRAP
  25. # define MPERS_DEFS "empty.h"
  26. # else
  27. # define MPERS_DEFS "native_defs.h"
  28. # endif
  29. typedef unsigned long mpers_ptr_t;
  30. # endif
  31. #endif /* !STRACE_MPERS_TYPE_H */