Dmitry V. Levin
b93d52fe3d
strace is now provided under the terms of the GNU Lesser General Public License version 2.1 or later, see COPYING for more details. strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
34 lines
661 B
C
34 lines
661 B
C
/*
|
|
* Copyright (c) 2018 The strace developers.
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#include "defs.h"
|
|
|
|
#include DEF_MPERS_TYPE(strace_aio_sigset)
|
|
|
|
typedef struct {
|
|
sigset_t *sigmask;
|
|
size_t sigsetsize;
|
|
} strace_aio_sigset;
|
|
|
|
#include MPERS_DEFS
|
|
|
|
#include "print_fields.h"
|
|
|
|
MPERS_PRINTER_DECL(void, print_aio_sigset, struct tcb *tcp,
|
|
const kernel_ulong_t addr)
|
|
{
|
|
strace_aio_sigset sigset;
|
|
|
|
if (!umove_or_printaddr(tcp, addr, &sigset)) {
|
|
tprints("{sigmask=");
|
|
print_sigset_addr_len(tcp, (uintptr_t) sigset.sigmask,
|
|
sigset.sigsetsize);
|
|
PRINT_FIELD_U(", ", sigset, sigsetsize);
|
|
tprints("}");
|
|
}
|
|
}
|