Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2001 02:58:05 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Thomas David Rivers <rivers@dignus.com>
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>
In-Reply-To: <200111021050.fA2Ao7a77922@lakes.dignus.com>
References:  <20011102120117.A87038@nagual.pp.ru> <200111021050.fA2Ao7a77922@lakes.dignus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011103025805.A98090>