copy strdup.c from libc again.
authorKarl Berry <karl@freefriends.org>
Tue, 26 Nov 2002 22:58:57 +0000 (22:58 +0000)
committerKarl Berry <karl@freefriends.org>
Tue, 26 Nov 2002 22:58:57 +0000 (22:58 +0000)
config/srclist-update
config/srclist.txt
lib/.cppi-disable
lib/ChangeLog
lib/strdup.c

index ef1bc2999281a878fbe3c55720fcd9b03ff478b6..74438f9dcc836292ef668749d5f50f4024ab41cb 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: srclist-update,v 1.4 2002-11-25 13:17:17 meyering Exp $
+# $Id: srclist-update,v 1.5 2002-11-26 22:58:57 karl Exp $
 #
 # Check for files in directory $1 being up to date, according to the
 # list on stdin.  Don't actually make any changes, just show the diffs.
@@ -13,8 +13,9 @@ fi
 verbose=false
 #chicken="echo (would)"
 
-srctmp=${TMPDIR-/tmp}/srclist.src
-dsttmp=${TMPDIR-/tmp}/srclist.dst
+: ${TMPDIR=/tmp}
+srctmp=$TMPDIR/srclist.src
+dsttmp=$TMPDIR/srclist.dst
 
 mydir=`dirname $0`
 test -r $mydir/srclistvars.sh && . $mydir/srclistvars.sh
index c0efcfab60bd41b125dc79f1da8c63da9bc93513..a5eef51f2413c46f834547af9150242cca6029f7 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.10 2002-11-25 22:24:53 karl Exp $
+# $Id: srclist.txt,v 1.11 2002-11-26 22:58:57 karl Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -26,7 +26,7 @@ $LIBCSRC/sysdeps/generic/strtoll.c    lib gpl
 $LIBCSRC/posix/getopt.h                        lib gpl
 $LIBCSRC/posix/getopt1.c               lib gpl
 $LIBCSRC/posix/regex.h                 lib gpl
-#$LIBCSRC/string/strdup.c              lib gpl
+$LIBCSRC/string/strdup.c               lib gpl
 $LIBCSRC/time/mktime.c                 lib gpl
 #
 # - libc/sysdeps/generic has memcpy.c, memmove.c, strcasecmp.c, but they
index 7bd80c2699ef42c14ae7ed696a953be790ea2b68..81537e743ea6806cfaaf600a9666c1392367750b 100644 (file)
@@ -9,3 +9,4 @@ md5.h
 obstack.h
 regex.c
 regex.h
+strdup.c
index 38b6653a7ed6f0c2b6194b6db2020435b295b68f..3c12748ab007b472fe467da7af658c84a1933e62 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26    <karl@gnu.org>
+
+       * strdup.c: copy from libc again, with jim's ok.
+       * .cppi-disable: re-add strdup.c
+
 2002-11-25    <karl@gnu.org>
 
        * strtoll.c: copy from libc, meaning we now #include <strtol.c>
index 06260fa033e70038e789688d7e0873929921053d..5aa09a652c3f2ab46218afb8b5a0708ad40f9fdd 100644 (file)
@@ -15,8 +15,8 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#if HAVE_CONFIG_H
-# include <config.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
 #endif
 
 #if defined _LIBC || defined  STDC_HEADERS
@@ -34,9 +34,7 @@ char *memcpy ();
 # define __strdup strdup
 #endif
 
-/* Duplicate S, returning an identical malloc'd string.
-   Return NULL if out of memory. */
-
+/* Duplicate S, returning an identical malloc'd string.  */
 char *
 __strdup (const char *s)
 {