From fdfa00ba835ea7dd8128a8ae0ea4f191197a7d06 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 15 Apr 2010 08:32:50 +0000 Subject: [PATCH] Still reference struct __sigaction with clarification when this form of argument declaration is needed. Discussed with: bde MFC after: 3 days --- lib/libc/sys/sigaction.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 9bd4c9e4f365..51b6c47c78fc 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -496,6 +496,16 @@ or .Dv SIG_IGN this way. .Pp +If preprocessing symbol +.Va _POSIX_C_SOURCE +with the value >= 199309 is not defined, the following declaration for +the handler shall be used: +.Bl -tag -offset indent -width short +.It Tn POSIX Dv SA_SIGINFO : +.Ft void +.Fn handler int "struct __sigaction *" "void *" ; +.El +.Pp If the .Dv SA_SIGINFO flag is not set, the handler function should match