From owner-freebsd-hackers Fri Nov 2 15:58:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 1DDC137B40B; Fri, 2 Nov 2001 15:58:27 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id fA2Nw7f98974; Sat, 3 Nov 2001 02:58:07 +0300 (MSK) (envelope-from ache) Date: Sat, 3 Nov 2001 02:58:05 +0300 From: "Andrey A. Chernov" To: Thomas David Rivers Cc: nin@Jp.FreeBSD.org, current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: About stscasestr() prototyped with string.h of current lib Message-ID: <20011103025805.A98090@nagual.pp.ru> References: <20011102120117.A87038@nagual.pp.ru> <200111021050.fA2Ao7a77922@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111021050.fA2Ao7a77922@lakes.dignus.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Nov 02, 2001 at 05:50:07 -0500, Thomas David Rivers wrote: > > > > On Fri, Nov 02, 2001 at 17:36:04 +0900, NINOMIYA Hideyuki wrote: > > > > > In implementation with current, even if you implemented it for the > > > reason that Linux included, there is the problem that behavior is > > > different from Linux in about prototyping reference. > > > > 1) Our strcasestr() implementation is not related to Linux that way. > > 2) Program must not prototype by itself system-wide functions and should > > relay on system headers instead. > > 3) Programs which not follows rule #2 must be fixed by removing > > prototypes in question from their headers. > > What about the ANSI standard regarding polluting the user's > name space? Use standard way - #define _ANSI_SOURCE to switch them off, as for other FreeBSD extensions in that area (see string.h) -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message