]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Merge from gnulib.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Aug 2004 07:16:54 +0000 (07:16 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Aug 2004 07:16:54 +0000 (07:16 +0000)
lib/ChangeLog
lib/canonicalize.h
lib/cycle-check.h
lib/stat-macros.h
lib/strdup.h
lib/strftime.h
lib/xnanosleep.c
m4/ChangeLog
m4/canonicalize.m4
m4/getcwd-path-max.m4
m4/strdup.m4

index 5cddfbdb61a5d312ac5cb82e61c7e4b534a22084..17c7b547a5f756440aad0aa14d9bf16356a93623 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * canonicalize.h, cycle-check.h, stat-macros.h, strdup.h,
+       strftime.h, xnanosleep.c: Merge from gnulib.
+
 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        Merge with gnulib and deal with some minor cleanups resulting.
index 3cc083ae85bf8cff7b86136933fdc319a8a20815..2f73de0eac6115de1af9c3fab3c1aa4157348bbe 100644 (file)
@@ -1,3 +1,21 @@
+/* Return the canonical absolute name of a given file.
+   Copyright (C) 1996-2004 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; see the file COPYING.
+   If not, write to the Free Software Foundation,
+   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
 #ifndef CANONICALIZE_H_
 # define CANONICALIZE_H_
 
index 8c50c30eae6b967af09cf41696ac41b449773cbb..7b7f54d145c04208be71c006c47f2f3c92f3a12c 100644 (file)
@@ -1,3 +1,24 @@
+/* help detect directory cycles efficiently
+
+   Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; see the file COPYING.
+   If not, write to the Free Software Foundation,
+   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+/* Written by Jim Meyering */
+
 #ifndef CYCLE_CHECK_H
 # define CYCLE_CHECK_H 1
 
index 3d32a4d01407563fb7ace8aca6fa9f504a05679b..facbabbc3c87bcc50e91553118a54399a96ed154 100644 (file)
@@ -1,6 +1,6 @@
 /* stat-related macros
 
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 2001, 2002, 2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
index 4dc6a391c8aeb80f9d4b6c464e519336cf6b5e00..d58bd13e260874fb8b1d864e94740278b1fd524d 100644 (file)
@@ -21,7 +21,7 @@
 /* Get strdup declaration, if available.  */
 #include <string.h>
 
-#if !HAVE_DECL_STRDUP && !defined strdup
+#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
 /* Duplicate S, returning an identical malloc'd string.  */
 extern char *strdup (const char *s);
 #endif
index dc9613a8a1cd68cec1984fa6c1555ccbacd5a618..3ff7ceab28a0ece5b8c4b9323317307cbea7190d 100644 (file)
@@ -1,6 +1,6 @@
 /* declarations for strftime.c
 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -16,4 +16,6 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+#include <time.h>
+
 size_t nstrftime (char *, size_t, char const *, struct tm const *, int, int);
index 4bb217a3d04f115c29f6ac65d7e8c63b9486f3aa..6ca43e5603835290d4a0ccb0237d352b0ce1fca9 100644 (file)
@@ -22,6 +22,8 @@
 # include <config.h>
 #endif
 
+#include "xnanosleep.h"
+
 #include <limits.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -44,7 +46,6 @@
 
 #include "timespec.h"
 #include "xalloc.h"
-#include "xnanosleep.h"
 
 /* Subtract the `struct timespec' values X and Y by computing X - Y.
    If the difference is negative or zero, return false.
index 47ba2e09ce71ba23affd69da76149bc9c12ebdda..3c14252625bce036b5452719038aa724a26453fb 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * canonicalize.m4, getcwd-path-max.m4, strdup.m4: Merge from gnulib.
+
 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        Merge from gnulib.
index 58453896bcfd3e8673373658974ad1fc1cbe5d88..0731f4dc579caf702998ddbfa7ca3802dee89bd9 100644 (file)
@@ -1,4 +1,23 @@
-#serial 2
+#serial 3
+
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# Written by Jim Meyering.
+
 AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME],
   [
     AC_REQUIRE([AC_HEADER_STDC])
index 6c04939700fd4e6e58728eea3acbae3900fba207..a1e123976b02a057803f61b41a2fe2458e31151c 100644 (file)
@@ -7,6 +7,22 @@
 # I've heard that this is due to a Linux kernel bug, and that it has
 # been fixed between 2.4.21-pre3 and 2.4.21-pre4.  */
 
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
 # From Jim Meyering
 
 AC_DEFUN([GL_FUNC_GETCWD_PATH_MAX],
index 6e64bc80fc3d1d6c7045b44c3f0ee2a454408e13..9964d15b1078dd061c09437d98daf5aa2156cf04 100644 (file)
@@ -1,4 +1,4 @@
-# strdup.m4 serial 3
+# strdup.m4 serial 4
 dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
@@ -9,12 +9,9 @@ dnl the same distribution terms as the rest of that program.
 AC_DEFUN([gl_FUNC_STRDUP],
 [
   AC_REPLACE_FUNCS(strdup)
-  if test $ac_cv_func_strdup = no; then
-    gl_PREREQ_STRDUP
-  fi
+  AC_CHECK_DECLS_ONCE(strdup)
+  gl_PREREQ_STRDUP
 ])
 
-# Prerequisites of lib/strdup.h and lib/strdup.c.
-AC_DEFUN([gl_PREREQ_STRDUP], [
-  AC_CHECK_DECLS(strdup)
-])
+# Prerequisites of lib/strdup.c.
+AC_DEFUN([gl_PREREQ_STRDUP], [:])