Browse Source

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@
OPENBSD_5_7
schwarze 10 years ago
parent
commit
32cc975e61
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      src/lib/libc/string/strdup.3

+ 11
- 4
src/lib/libc/string/strdup.3 View File

@ -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 .\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\" .\"
.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93 .\" @(#)strdup.3 8.1 (Berkeley) 6/9/93
.\" .\"
.Dd $Mdocdate: June 5 2013 $
.Dd $Mdocdate: October 11 2014 $
.Dt STRDUP 3 .Dt STRDUP 3
.Os .Os
.Sh NAME .Sh NAME
@ -100,9 +100,16 @@ and
functions conform to functions conform to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY .Sh HISTORY
The
A
.Fn strdup .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 . .Bx 4.3 Reno .
The The
.Fn strndup .Fn strndup


Loading…
Cancel
Save