Message ID | 57337CD7.6090900@redhat.com |
---|---|
State | New |
Headers | show |
I certainly don't think we need to give exact history on the provenance of each interface. A simple statement about current standards is good. But that could give the erroneous impression that stpcpy was not available in the GNU C Library before it supported POSIX.1-2008. (In fact, AFAICT stpcpy has been in libc since before its first release.) How about this? This function is part of POSIX.1-2008 and later editions, but was available in @theglibc{} and other systems as an extension long before it was standardized. I didn't say "GNU extension" to avoid the implication that we were its inventors. Thanks, Roland
On 05/21/2016 12:13 AM, Roland McGrath wrote: > I certainly don't think we need to give exact history on the provenance of > each interface. A simple statement about current standards is good. But > that could give the erroneous impression that stpcpy was not available in > the GNU C Library before it supported POSIX.1-2008. (In fact, AFAICT > stpcpy has been in libc since before its first release.) > > How about this? > > This function is part of POSIX.1-2008 and later editions, but was > available in @theglibc{} and other systems as an extension long > before it was standardized. > > I didn't say "GNU extension" to avoid the implication that we were its > inventors. Looks good to me. Do you want me to commit it in your name, or do you want to commit this yourself? Thanks, Florian
> On 05/21/2016 12:13 AM, Roland McGrath wrote: > > I certainly don't think we need to give exact history on the provenance of > > each interface. A simple statement about current standards is good. But > > that could give the erroneous impression that stpcpy was not available in > > the GNU C Library before it supported POSIX.1-2008. (In fact, AFAICT > > stpcpy has been in libc since before its first release.) > > > > How about this? > > > > This function is part of POSIX.1-2008 and later editions, but was > > available in @theglibc{} and other systems as an extension long > > before it was standardized. > > > > I didn't say "GNU extension" to avoid the implication that we were its > > inventors. > > Looks good to me. Do you want me to commit it in your name, or do you > want to commit this yourself? Please do commit something like this.
2016-05-10 Florian Weimer <fweimer@redhat.com> [BZ #3629] * manual/string.texi (Copying Strings and Arrays): Document provenience of the stpcpy function. diff --git a/manual/string.texi b/manual/string.texi index 016fd0b..d78381e 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -612,9 +612,7 @@ and @samp{bar} to produce @samp{foobar}, which it then prints. @include stpcpy.c.texi @end smallexample -This function is not part of the ISO or POSIX standards, and is not -customary on Unix systems, but we did not invent it either. Perhaps it -comes from MS-DOG. +This function is part of POSIX.1-2008 and later editions. Its behavior is undefined if the strings overlap. The function is declared in @file{string.h}.