From owner-freebsd-questions Thu Mar 30 14:33:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id DA94D37B732 for ; Thu, 30 Mar 2000 14:33:34 -0800 (PST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id AAA22536 for freebsd-questions@freebsd.org; Fri, 31 Mar 2000 00:33:33 +0200 (CEST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id XAA08906 for freebsd-questions@freebsd.org; Thu, 30 Mar 2000 23:52:30 +0200 (CEST) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: select(2) FD* macros Date: 30 Mar 2000 23:52:30 +0200 Message-ID: <8c0iau$8lv$1@bigeye.rhein-neckar.de> References: <14562.48959.924396.432891@anarcat.dyndns.org> To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Spidey wrote: > #define FD_ZERO(p) bzero(p, sizeof(*(p))) > > So it uses bzero, a function from . It's kinda problematic > since the select(2) manpage does not advise to include > neither than the types.h manpage include strings.h. And what's worse, > the bzero and bcopy() (used by FD_COPY) are non-standard functions.. bcmp(), bcopy(), and bzero() are perfectly BSD standard. ;-) > My program compiles and runs correctly, but I would like to see this > warning go away... :) > What should be changed? Is this 'fixed' in 4.0? No, I accidentally ran into it today on 5.0-CURRENT. > Should I make a send-pr? Well, if you reeeally care. Include the patch. I guess it could be added to the SYNOPSIS section of the select.2 man page. -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message