summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2014-10-11 14:40:42 +0000
committerschwarze <>2014-10-11 14:40:42 +0000
commita525d58bbbff71b93f3e37d4528289d7ebf986f8 (patch)
tree96a3df2d8d6beb2b9eae6459d5203aca99cfe6d4 /src/lib
parent1856c6ee81193568a82764f32d3723fe08ac8f39 (diff)
downloadopenbsd-a525d58bbbff71b93f3e37d4528289d7ebf986f8.tar.gz
openbsd-a525d58bbbff71b93f3e37d4528289d7ebf986f8.tar.bz2
openbsd-a525d58bbbff71b93f3e37d4528289d7ebf986f8.zip
Since deraadt@ remembers seeing strdup() on one particular 4.2BSD machine,
i looked a bit closer and found instances before Reno, so correct HISTORY. References: http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.1cBSD/usr/src/ucb/dbx/defs.h http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/etc/inetd.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/lib/libc/string/strdup.c ok deraadt@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/string/strdup.315
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3
index 2d7fa0bb96..42324e1fd9 100644
--- a/src/lib/libc/string/strdup.3
+++ b/src/lib/libc/string/strdup.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strdup.3,v 1.20 2013/06/05 03:39:23 tedu Exp $ 1.\" $OpenBSD: strdup.3,v 1.21 2014/10/11 14:40:42 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
29.\" 29.\"
30.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93 30.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93
31.\" 31.\"
32.Dd $Mdocdate: June 5 2013 $ 32.Dd $Mdocdate: October 11 2014 $
33.Dt STRDUP 3 33.Dt STRDUP 3
34.Os 34.Os
35.Sh NAME 35.Sh NAME
@@ -100,9 +100,16 @@ and
100functions conform to 100functions conform to
101.St -p1003.1-2008 . 101.St -p1003.1-2008 .
102.Sh HISTORY 102.Sh HISTORY
103The 103A
104.Fn strdup 104.Fn strdup
105function first appeared in 105macro was first used in the
106.Bx 4.1c
107debugger,
108.Sy dbx .
109It was rewritten as a C function for the
110.Bx 4.3
111.Xr inetd 8
112and first appeared in the C library of
106.Bx 4.3 Reno . 113.Bx 4.3 Reno .
107The 114The
108.Fn strndup 115.Fn strndup