From owner-cvs-all Tue Sep 28 9:10: 0 1999 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 5E78B1572F; Tue, 28 Sep 1999 09:09:54 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id MAA14467; Tue, 28 Sep 1999 12:07:17 -0400 (EDT) (envelope-from wollman) Date: Tue, 28 Sep 1999 12:07:17 -0400 (EDT) From: Garrett Wollman Message-Id: <199909281607.MAA14467@khavrinen.lcs.mit.edu> To: Peter Wemm Cc: Marcel Moolenaar , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/gen getcwd.c In-Reply-To: <19990928144403.3155A1CC1@overcee.netplex.com.au> References: <199909281324.GAA08484@freefall.freebsd.org> <19990928144403.3155A1CC1@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk < said: > Hmm.. my experience on other systems suggests sigactions should be > pre-bzeroed (or memset) for portability reasons. This is required on some > OS's as there are hidden fields in there, and doesn't require modifying the > whole tree when a new field is added or changed to struct sigaction. Those other systems are broken. POSIX requires that only those fields defined by the standard need be initialized. Any other fields in struct sigaction must be ignored unless an implementation-specific flag is set by the application. (Hence, when POSIX.1b added sa_sigaction as an alternative to sa_handler, it was necessary to also add the SA_SIGINFO flag.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message