Date: Tue, 28 Sep 1999 09:24:46 -0700 (PDT) From: Matthew Dillon <dillon@apollo.backplane.com> To: Peter Wemm <peter@netplex.com.au> Cc: Marcel Moolenaar <marcel@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libtermcap termcap.c Message-ID: <199909281624.JAA90525@apollo.backplane.com> References: <19990928145514.05BF31CBF@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
: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 <dillon@backplane.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909281624.JAA90525>