stpcpy is Posix-2008, not __USE_GNU.

Mike Frysinger vapier at gentoo.org
Sun Mar 25 05:38:45 UTC 2012


On Friday 16 March 2012 07:06:47 Rob Landley wrote:
> The standard:
> 
>   http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html
> 
> uClibc's include/string.h:
> 
> #ifdef  __USE_GNU
> ...
> /* Copy SRC to DEST, returning the address of the terminating '\0' in
> DEST.  */
> # if 0 /* uClibc: disabled */
> extern char *__stpcpy (char *__restrict __dest, __const char *__restrict
> __src)
>      __THROW __nonnull ((1, 2));
> # endif
> extern char *stpcpy (char *__restrict __dest, __const char *__restrict
> __src)
>      __THROW __nonnull ((1, 2));
> libc_hidden_proto(stpcpy)
> 
> 
> That #ifdef is a bug.

s/bug/outdated/
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120325/78877cd3/attachment.asc>


More information about the uClibc mailing list