2 * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
3 * Copyright (c) 2015-2017 The strace developers.
6 * SPDX-License-Identifier: GPL-2.0-or-later
18 struct sigaction sa = {
21 union sigval value = {
22 .sival_ptr = (void *) (unsigned long) 0xdeadbeefbadc0dedULL
26 assert(sigaction(SIGUSR1, &sa, NULL) == 0);
27 if (sigqueue(pid, SIGUSR1, value))
28 perror_msg_and_skip("sigqueue");
29 printf("rt_sigqueueinfo(%u, SIGUSR1, {si_signo=SIGUSR1, "
30 "si_code=SI_QUEUE, si_pid=%u, si_uid=%u, "
31 "si_value={int=%d, ptr=%p}}) = 0\n",
32 pid, pid, getuid(), value.sival_int, value.sival_ptr);
33 printf("+++ exited with 0 +++\n");