Re: siginfo_t.si_addr should be void*

2016-04-27 Thread i80and
On 2016-04-27 18:20, Joerg Sonnenberger wrote: This [...snip...] and this disagree? I... am so sorry. You're right of course; I don't know how that patch happened. Correct patch: diff --git a/src/sys/sys/siginfo.h b/src/sys/sys/siginfo.h index 814e8f2..1e8365f 100644 --- a/src/sys/sys/sigin

siginfo_t.si_addr should be void*

2016-04-27 Thread i80and
POSIX specifies that siginfo_t.si_addr must be void*. OpenBSD currently defines it as caddr_t. This breaks some userspace programs, such as the following minimal case: #include #include void handler(int, siginfo_t *info, void*) { std::cout << "Foo" << info->si_addr << "bar\n"; }