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.

print_aio_sigset.c 661B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2018 The strace developers.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #include "defs.h"
  8. #include DEF_MPERS_TYPE(strace_aio_sigset)
  9. typedef struct {
  10. sigset_t *sigmask;
  11. size_t sigsetsize;
  12. } strace_aio_sigset;
  13. #include MPERS_DEFS
  14. #include "print_fields.h"
  15. MPERS_PRINTER_DECL(void, print_aio_sigset, struct tcb *tcp,
  16. const kernel_ulong_t addr)
  17. {
  18. strace_aio_sigset sigset;
  19. if (!umove_or_printaddr(tcp, addr, &sigset)) {
  20. tprints("{sigmask=");
  21. print_sigset_addr_len(tcp, (uintptr_t) sigset.sigmask,
  22. sigset.sigsetsize);
  23. PRINT_FIELD_U(", ", sigset, sigsetsize);
  24. tprints("}");
  25. }
  26. }