From owner-cvs-all Tue Sep 28 9:27:18 1999 Delivered-To: cvs-all@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 2C6FE15559; Tue, 28 Sep 1999 09:27:16 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id JAA90525; Tue, 28 Sep 1999 09:24:46 -0700 (PDT) (envelope-from dillon) Date: Tue, 28 Sep 1999 09:24:46 -0700 (PDT) From: Matthew Dillon Message-Id: <199909281624.JAA90525@apollo.backplane.com> To: Peter Wemm Cc: Marcel Moolenaar , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libtermcap termcap.c References: <19990928145514.05BF31CBF@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk :Marcel Moolenaar wrote: :> Modified files: :> lib/libtermcap termcap.c :> Log: :> Explicitly use sigemptyset to clear a sigset_t. Explicit :> initialization of sa_flags added so that we can lose the bzero. : :Do NOT "loose" the bzero! : :Cheers, :-Peter What peter is saying is that the bzero is necessary because the structure may change in the future, perhaps adding a new field that termcap does not know about. Also, other operating systems may implement additional fields that termcap doesn't know about. This is why you generally bzero a structure before initializing it, even if you 'know' you are initializing all the fields. It makes for better portability and compatibility. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message