]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
stpcpy.3: Note some history of stpcpy()
authorIngo Schwarze <schwarze@usta.de>
Fri, 2 May 2014 13:46:19 +0000 (15:46 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 8 May 2014 09:26:55 +0000 (11:26 +0200)
Quoting Ingo:
I just noticed that the stpcpy(3) manual contains a speculation
that appears to be untrue on closer investigation:  That function
did not originate in MS DOS, but in Lattice C on AmigaDOS.

Here is a patch against the git master HEAD to fix that, and add
some more historical information.  To provide some background and
allow you to more easily verify the correctness of the patch, i'm
appending my mail to <misc@openbsd.org>, where i'm giving some
more details about the history and pointing to some primary
sources.  That mail also contains the (similar, but shorter)
patch i just committed to the OpenBSD manual page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/stpcpy.3

index 4718a967183bbcf5e31d2d291abd6f38e3917f3d..1bb0563f97f79cf3078908a4a07f19f2e0bc790d 100644 (file)
@@ -76,9 +76,11 @@ function is thread-safe.
 .SH CONFORMING TO
 This function was added to POSIX.1-2008.
 Before that, it was not part of
-the C or POSIX.1 standards, nor customary on UNIX systems, but was not a
-GNU invention either.
-Perhaps it came from MS-DOS.
+the C or POSIX.1 standards, nor customary on UNIX systems.
+It first appeared at least as early as 1986,
+in the Lattice C AmigaDOS compiler,
+then in the GNU fileutils and GNU textutils in 1989,
+and in the GNU C library until 1992.
 It is also present on the BSDs.
 .SH BUGS
 This function may overrun the buffer