Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 May 2003 09:35:13 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        hch@infradead.org
Cc:        freebsd-arch@freebsd.org
Subject:   Re: `Hiding' libc symbols
Message-ID:  <20030508.093513.17267435.imp@bsdimp.com>
In-Reply-To: <20030507143611.A23293@infradead.org>
References:  <20030506162352.GC78486@madman.celabo.org> <20030507093240.GA15754@HAL9000.homeunix.com> <20030507143611.A23293@infradead.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20030507143611.A23293@infradead.org>
            Christoph Hellwig <hch@infradead.org> writes:
: On Wed, May 07, 2003 at 02:32:40AM -0700, David Schultz wrote:
: > >   strlcpy(struct string *a, struct string *b)
: > >   {
: > > 	  if (a->size == 0) {
: > > 		  b->size = 0;
: > > 		  return;
: > > 	  }
: > > 	  /* really copy the string */
: > >   }
: > 
: > Hmm...but that program is broken.  If someone overrides a symbol
: > reserved by the C standard, he deserves whatever he gets.  It is
: > not unreasonable to expect applications to avoid using reserved
: > symbols for thier own purposes.
: 
: strlcpy is not in any standard..

str* symbols are reserved to the implementation symbols.  Any program
that defines them is non-conforming to the standard.

Geeze people, can't you read the whole thread before posting the same
old crap?

Warner



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