stpcpy is Posix-2008, not __USE_GNU.
Carmelo AMOROSO
carmelo.amoroso at st.com
Mon Mar 19 09:08:01 UTC 2012
On 16/03/2012 12.06, 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.
>
> Rob
Hi Rob,
indeed it should guarded by __USE_XOPEN2K8 (as glibc does).
Thanks for reporting.
Carmelo
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
>
More information about the uClibc
mailing list