[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCHv2 1/9] getcwd: tweak comments
From: |
Eric Blake |
Subject: |
[PATCHv2 1/9] getcwd: tweak comments |
Date: |
Tue, 26 Apr 2011 17:35:23 -0600 |
* m4/getcwd-abort-bug.m4: Fix comments.
* m4/getcwd-path-max.m4: Likewise.
* m4/getcwd.m4: Likewise.
Signed-off-by: Eric Blake <address@hidden>
---
ChangeLog | 7 +++++++
m4/getcwd-abort-bug.m4 | 4 ++--
m4/getcwd-path-max.m4 | 4 ++--
m4/getcwd.m4 | 4 +++-
4 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 248d0f3..4c4b944 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-04-26 Eric Blake <address@hidden>
+
+ getcwd: tweak comments
+ * m4/getcwd-abort-bug.m4: Fix comments.
+ * m4/getcwd-path-max.m4: Likewise.
+ * m4/getcwd.m4: Likewise.
+
2011-04-26 Paul Eggert <address@hidden>
inttypes: also provide default values for 32-bit tests
diff --git a/m4/getcwd-abort-bug.m4 b/m4/getcwd-abort-bug.m4
index 21be828..f15181f 100644
--- a/m4/getcwd-abort-bug.m4
+++ b/m4/getcwd-abort-bug.m4
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
# Determine whether getcwd aborts when the length of the working directory
# name is unusually large. Any length between 4k and 16k trigger the bug
# when using glibc-2.4.90-9 or older.
@@ -58,7 +58,7 @@ main ()
size_t d;
/* The bug is triggered when PATH_MAX < getpagesize (), so skip
- this relative expensive and invasive test if that's not true. */
+ this relatively expensive and invasive test if that's not true. */
if (getpagesize () <= PATH_MAX)
return 0;
diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4
index 2ab2645..feb0d4d 100644
--- a/m4/getcwd-path-max.m4
+++ b/m4/getcwd-path-max.m4
@@ -1,10 +1,10 @@
-# serial 15
+# serial 16
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
# This is necessary for at least GNU libc on linux-2.4.19 and 2.4.20.
# 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. */
+# been fixed between 2.4.21-pre3 and 2.4.21-pre4.
# Copyright (C) 2003-2007, 2009-2011 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
diff --git a/m4/getcwd.m4 b/m4/getcwd.m4
index 7098056..0c7e20c 100644
--- a/m4/getcwd.m4
+++ b/m4/getcwd.m4
@@ -6,7 +6,7 @@
# with or without modifications, as long as this notice is preserved.
# Written by Paul Eggert.
-# serial 3
+# serial 4
AC_DEFUN([gl_FUNC_GETCWD_NULL],
[
@@ -52,6 +52,8 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
]])])
])
+dnl Check for all known getcwd bugs; useful for a program likely to be
+dnl executed from an arbitrary location.
AC_DEFUN([gl_FUNC_GETCWD],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
--
1.7.4.4
[PATCHv2 2/9] getcwd-lgpl: new module, Eric Blake, 2011/04/26