summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-10-11 14:40:42 +0000
committerschwarze <schwarze@openbsd.org>2014-10-11 14:40:42 +0000
commitcf828729056f1b6b7ae2c3c18003fefe5bbf93ac (patch)
tree339badb1dd47c42049531b2f80f538ab237810db /lib/libc/string
parentAdd a new "default" command to display the default flags and whether a (diff)
downloadwireguard-openbsd-cf828729056f1b6b7ae2c3c18003fefe5bbf93ac.tar.xz
wireguard-openbsd-cf828729056f1b6b7ae2c3c18003fefe5bbf93ac.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 'lib/libc/string')
-rw-r--r--lib/libc/string/strdup.315
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3
index 2d7fa0bb963..42324e1fd97 100644
--- a/lib/libc/string/strdup.3
+++ b/lib/libc/string/strdup.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strdup.3,v 1.20 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: strdup.3,v 1.21 2014/10/11 14:40:42 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: October 11 2014 $
.Dt STRDUP 3
.Os
.Sh NAME
@@ -100,9 +100,16 @@ and
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
-The
+A
.Fn strdup
-function first appeared in
+macro was first used in the
+.Bx 4.1c
+debugger,
+.Sy dbx .
+It was rewritten as a C function for the
+.Bx 4.3
+.Xr inetd 8
+and first appeared in the C library of
.Bx 4.3 Reno .
The
.Fn strndup