Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Rather than printing the definition of struct s...



details:   https://anonhg.NetBSD.org/src/rev/32fd7b6c65d0
branches:  trunk
changeset: 547040:32fd7b6c65d0
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sun May 11 19:22:18 2003 +0000

description:
Rather than printing the definition of struct sigaction literally,
change the description to name its members.  This has the effect
of discouraging (non-portable) structure assignments of struct
sigaction, as well as making life easier when sa_sigaction is added.

diffstat:

 lib/libc/sys/sigaction.2 |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r d7a8d6ab9ae3 -r 32fd7b6c65d0 lib/libc/sys/sigaction.2
--- a/lib/libc/sys/sigaction.2  Sun May 11 19:19:07 2003 +0000
+++ b/lib/libc/sys/sigaction.2  Sun May 11 19:22:18 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sigaction.2,v 1.33 2003/05/11 18:04:42 kleink Exp $
+.\"    $NetBSD: sigaction.2,v 1.34 2003/05/11 19:22:18 kleink Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -43,13 +43,6 @@
 .Lb libc
 .Sh SYNOPSIS
 .In signal.h
-.Bd -literal
-struct sigaction {
-       void     (*sa_handler)(int);
-       sigset_t sa_mask;
-       int      sa_flags;
-};
-.Ed
 .Ft int
 .Fn sigaction "int sig" "const struct sigaction *act" "struct sigaction *oact"
 .Sh DESCRIPTION
@@ -118,6 +111,14 @@
 If the process wishes to resume in a different context, then it
 must arrange to restore the previous context itself.
 .Pp
+.Em "struct sigaction"
+includes the following members:
+.Bd -literal -offset indent
+void      (*sa_handler)(int)
+sigset_t  sa_mask
+int       sa_flags
+.Ed
+.Pp
 When a signal is delivered to a process a new signal mask is
 installed for the duration of the process' signal handler
 (or until a



Home | Main Index | Thread Index | Old Index