From owner-cvs-all Tue Sep 28 9:44:37 1999 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 4527915664; Tue, 28 Sep 1999 09:44:28 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 828B71CBF; Wed, 29 Sep 1999 00:44:27 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.0.2 2/24/98 To: Garrett Wollman Cc: Marcel Moolenaar , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/gen getcwd.c In-reply-to: Your message of "Tue, 28 Sep 1999 12:07:17 -0400." <199909281607.MAA14467@khavrinen.lcs.mit.edu> Date: Wed, 29 Sep 1999 00:44:27 +0800 From: Peter Wemm Message-Id: <19990928164427.828B71CBF@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Garrett Wollman wrote: > < 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.) I see. That make sense to me, but I don't have a posix spec. It's been a long time (1992 or so) since I regularly did this and it was enough trouble to track down places where people did sa.sa_mask = 0 and that failed if sa_mask was a struct. Fortunately this mostly got hunted down and fixed or we'd be doing it all over again. I withdraw my objections which were based on paranoia and bitter (and outdated) experience. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message