OpenGrok
Cross Reference: strdup.c
xref
: /
src
/
lib
/
libc
/
string
/
strdup.c
Home
|
History
|
Annotate
|
Download
|
only in
string
History log of
/src/lib/libc/string/strdup.c
Revision
Date
Author
Comments
1.14
25-Jun-2012
abs
Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
1.13
07-Aug-2003
agc
branches: 1.13.56;
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
1.12
22-Jan-2000
mycroft
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
1.11
20-Sep-1999
lukem
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1.10
16-Sep-1999
lukem
* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1.9
13-Oct-1998
kleink
Need an internal name for strdup().
1.8
30-Jan-1998
perry
update to lite-2
1.7
13-Jul-1997
christos
Fix RCSID's
Use "extern.h" where appropriate.
1.6
15-Jun-1995
jtc
branches: 1.6.4;
don't include <sys/cdefs.h>, it's a 'private' header
1.5
14-Apr-1995
jtc
bcopy -> memcpy
1.4
11-Jun-1994
jtc
Remove unneeded #include <stddef.h> because <string.h> #defines NULL too.
1.3
26-Aug-1993
jtc
Declare rcsid strings so they are stored in text segment.
1.2
01-Aug-1993
mycroft
Add RCS identifiers.
1.1
21-Mar-1993
cgd
branches: 1.1.1;
Initial revision
1.1.1.2
30-Jan-1998
perry
import lite-2
1.1.1.1
21-Mar-1993
cgd
initial import of 386bsd-0.1 sources
1.6.4.1
20-Sep-1996
jtc
snapshot namespace cleanup: net, etc.
1.13.56.1
30-Oct-2012
yamt
sync with head
Indexes created Sun Sep 21 14:09:52 GMT 2025