Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Oct 2004 14:32:02 -0400
From:      David Schultz <das@FreeBSD.ORG>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        freebsd-arch@FreeBSD.ORG
Subject:   Re: Proposal to restore traditional BSD behavior in <strings.h>.
Message-ID:  <20041016183202.GA76917@VARK.MIT.EDU>
In-Reply-To: <20041016174419.GA96297@dragon.nuxi.com>
References:  <20041016174419.GA96297@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 16, 2004, David O'Brien wrote:
> I'd like to restore the traditional BSD behavior that <strings.h>
> includes the content of <string.h> in addition to the BSD bcmp, et. al.
> We changed our <strings.h> between 4.x and 5.x and now that we're at
> 5-STABLE I'm finding software that built fine on 4.x has an issue on 5.x.

It has been this way for 2.5 years, and nobody has complained
until now AFAIK.  Therefore, it seems unlikely that there's enough
affected unportable software out there to justify undoing the
efforts at reducing namespace pollution now.

Moreover, there's a *lot* of pollution in string.h, where as
strings.h has very little.  Polluting strings.h again increases
the chances that portable applications that use strings.h will
break due to naming conflicts.

> Index: strings.h
> ===================================================================
> RCS file: /home/ncvs/src/include/strings.h,v
> retrieving revision 1.6
> diff -u -r1.6 strings.h
> --- strings.h	23 Jul 2004 07:13:35 -0000	1.6
> +++ strings.h	16 Oct 2004 17:09:40 -0000
> @@ -31,6 +31,7 @@
>  
>  #include <sys/cdefs.h>
>  #include <sys/_types.h>
> +#include <string.h>

You'd want to wrap this in #if __BSD_VISIBLE as well...



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