changeset 9831:787bf3487678

Use module 'EOVERFLOW' rather than defining an EOVERFLOW replacement in the C code.
author Bruno Haible <bruno@clisp.org>
date Sun, 30 Mar 2008 15:18:13 +0200
parents 72d681c41161
children 85800f596ad2
files ChangeLog lib/fprintf.c lib/ftell.c lib/getdelim.c lib/poll.c lib/snprintf.c lib/sprintf.c lib/unistdio/u-vasprintf.h lib/unistdio/u-vsnprintf.h lib/unistdio/u-vsprintf.h lib/unistdio/ulc-fprintf.c lib/unistdio/ulc-vfprintf.c lib/vasnprintf.c lib/vasprintf.c lib/vfprintf.c lib/vsnprintf.c lib/vsprintf.c lib/xvasprintf.c m4/fprintf-posix.m4 m4/snprintf-posix.m4 m4/sprintf-posix.m4 m4/vasnprintf-posix.m4 m4/vasnprintf.m4 m4/vasprintf-posix.m4 m4/vfprintf-posix.m4 m4/vsnprintf-posix.m4 m4/vsprintf-posix.m4 modules/fprintf-posix modules/ftell modules/getdelim modules/poll modules/snprintf modules/sprintf-posix modules/unistdio/u16-u16-vasnprintf modules/unistdio/u16-u16-vasprintf modules/unistdio/u16-u16-vsnprintf modules/unistdio/u16-u16-vsprintf modules/unistdio/u16-vasnprintf modules/unistdio/u16-vasprintf modules/unistdio/u16-vsnprintf modules/unistdio/u16-vsprintf modules/unistdio/u32-u32-vasnprintf modules/unistdio/u32-u32-vasprintf modules/unistdio/u32-u32-vsnprintf modules/unistdio/u32-u32-vsprintf modules/unistdio/u32-vasnprintf modules/unistdio/u32-vasprintf modules/unistdio/u32-vsnprintf modules/unistdio/u32-vsprintf modules/unistdio/u8-u8-vasnprintf modules/unistdio/u8-u8-vasprintf modules/unistdio/u8-u8-vsnprintf modules/unistdio/u8-u8-vsprintf modules/unistdio/u8-vasnprintf modules/unistdio/u8-vasprintf modules/unistdio/u8-vsnprintf modules/unistdio/u8-vsprintf modules/unistdio/ulc-fprintf modules/unistdio/ulc-vasnprintf modules/unistdio/ulc-vasprintf modules/unistdio/ulc-vfprintf modules/unistdio/ulc-vsnprintf modules/unistdio/ulc-vsprintf modules/vasnprintf modules/vasprintf modules/vfprintf-posix modules/vsnprintf modules/vsprintf-posix modules/xvasprintf
diffstat 69 files changed, 159 insertions(+), 125 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,99 @@
 2008-03-30  Bruno Haible  <bruno@clisp.org>
 
-	* lib/c-stack.c (EOVERFLOW): Remove unused override.
+	* lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
+	* modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
+	* modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
+	* modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
+	* modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
+	* modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/xvasprintf.c (EOVERFLOW): Remove fallback.
+	* modules/xvasprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/vsprintf.c (EOVERFLOW): Remove fallback.
+	* m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
+
+	* lib/vsnprintf.c (EOVERFLOW): Remove fallback.
+	* m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/vsnprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/vfprintf.c (EOVERFLOW): Remove fallback.
+	* m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
+
+	* lib/vasprintf.c (EOVERFLOW): Remove fallback.
+	* m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/vasprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/vasnprintf.c (EOVERFLOW): Remove fallback.
+	* m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
+	* m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+	* modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+	(Depends-on): Add EOVERFLOW.
+
+	* lib/sprintf.c (EOVERFLOW): Remove fallback.
+	* m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/sprintf-posix (Depends-on): Add EOVERFLOW.
+
+	* lib/snprintf.c (EOVERFLOW): Remove fallback.
+	* m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/snprintf (Depends-on): Add EOVERFLOW.
+
+	* lib/poll.c (EOVERFLOW): Remove fallback.
+	* modules/poll (Depends-on): Add EOVERFLOW.
+
+	* lib/getdelim.c (EOVERFLOW): Remove fallback.
+	* modules/getdelim (Depends-on): Add EOVERFLOW.
+
+	* lib/ftell.c (EOVERFLOW): Remove fallback.
+	* modules/ftell (Depends-on): Add EOVERFLOW.
+
+	* lib/fprintf.c (EOVERFLOW): Remove fallback.
+	* m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
+	* modules/fprintf-posix (Depends-on): Add EOVERFLOW.
+
+	* lib/c-stack.c (EOVERFLOW): Remove unused fallback.
 
 	* modules/EOVERFLOW-tests: New file.
 	* tests/test-EOVERFLOW.c: New file.
--- a/lib/fprintf.c
+++ b/lib/fprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to a stream.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 #include "fseterr.h"
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to the stream FP.
    Return string length of formatted string.  On error, return a negative
    value.  */
--- a/lib/ftell.c
+++ b/lib/ftell.c
@@ -23,11 +23,6 @@
 /* Get off_t.  */
 #include <unistd.h>
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 long
 ftell (FILE *fp)
 {
--- a/lib/getdelim.c
+++ b/lib/getdelim.c
@@ -1,5 +1,5 @@
 /* getdelim.c --- Implementation of replacement getdelim function.
-   Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007 Free
+   Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007, 2008 Free
    Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or
@@ -42,11 +42,6 @@
 # define funlockfile(x) ((void) 0)
 #endif
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Read up to (and including) a DELIMITER from FP into *LINEPTR (and
    NUL-terminate it).  *LINEPTR is a pointer returned from malloc (or
    NULL), pointing to *N characters of space.  It is realloc'ed as
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -43,10 +43,6 @@
 #define INFTIM (-1)
 #endif
 
-#ifndef EOVERFLOW
-#define EOVERFLOW EINVAL
-#endif
-
 /* BeOS does not have MSG_PEEK.  */
 #ifndef MSG_PEEK
 #define MSG_PEEK 0
--- a/lib/snprintf.c
+++ b/lib/snprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
    Written by Simon Josefsson and Paul Eggert.
 
    This program is free software; you can redistribute it and/or modify
@@ -29,11 +29,6 @@
 
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to string STR.  Similar to sprintf, but
    additional length SIZE limit how much is written into STR.  Returns
    string length of formatted string (which may be larger than SIZE).
--- a/lib/sprintf.c
+++ b/lib/sprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 #ifndef SIZE_MAX
 # define SIZE_MAX ((size_t) -1)
 #endif
--- a/lib/unistdio/u-vasprintf.h
+++ b/lib/unistdio/u-vasprintf.h
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002, 2006-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published
@@ -14,11 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 int
 VASPRINTF (DCHAR_T **resultp, const FCHAR_T *format, va_list args)
 {
--- a/lib/unistdio/u-vsnprintf.h
+++ b/lib/unistdio/u-vsnprintf.h
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002, 2006-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published
@@ -14,11 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 int
 VSNPRINTF (DCHAR_T *buf, size_t size, const FCHAR_T *format, va_list args)
 {
--- a/lib/unistdio/u-vsprintf.h
+++ b/lib/unistdio/u-vsprintf.h
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002, 2006-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published
@@ -14,11 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 #ifndef SIZE_MAX
 # define SIZE_MAX ((size_t) -1)
 #endif
--- a/lib/unistdio/ulc-fprintf.c
+++ b/lib/unistdio/ulc-fprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to a stream.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 
 #include "fseterr.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to the stream FP.
    Return string length of formatted string.  On error, return a negative
    value.  */
--- a/lib/unistdio/ulc-vfprintf.c
+++ b/lib/unistdio/ulc-vfprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to a stream.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 
 #include "fseterr.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to the stream FP.
    Return string length of formatted string.  On error, return a negative
    value.  */
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -117,11 +117,6 @@
 # include "fpucw.h"
 #endif
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 #if HAVE_WCHAR_T
 # if HAVE_WCSLEN
 #  define local_wcslen wcslen
--- a/lib/vasprintf.c
+++ b/lib/vasprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002, 2006-2008 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
@@ -30,11 +30,6 @@
 
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 int
 vasprintf (char **resultp, const char *format, va_list args)
 {
--- a/lib/vfprintf.c
+++ b/lib/vfprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to a stream.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 #include "fseterr.h"
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to the stream FP.
    Return string length of formatted string.  On error, return a negative
    value.  */
--- a/lib/vsnprintf.c
+++ b/lib/vsnprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
    Written by Simon Josefsson and Yoann Vandoorselaere <yoann@prelude-ids.org>.
 
    This program is free software; you can redistribute it and/or modify
@@ -31,11 +31,6 @@
 
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 /* Print formatted output to string STR.  Similar to vsprintf, but
    additional length SIZE limit how much is written into STR.  Returns
    string length of formatted string (which may be larger than SIZE).
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006-2008 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
@@ -29,11 +29,6 @@
 
 #include "vasnprintf.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 #ifndef SIZE_MAX
 # define SIZE_MAX ((size_t) -1)
 #endif
--- a/lib/xvasprintf.c
+++ b/lib/xvasprintf.c
@@ -1,5 +1,5 @@
 /* vasprintf and asprintf with out-of-memory checking.
-   Copyright (C) 1999, 2002-2004, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002-2004, 2006-2008 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
@@ -29,11 +29,6 @@
 /* Checked size_t computations.  */
 #include "xsize.h"
 
-/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
-#ifndef EOVERFLOW
-# define EOVERFLOW E2BIG
-#endif
-
 static inline char *
 xstrcat (size_t argcount, va_list args)
 {
--- a/m4/fprintf-posix.m4
+++ b/m4/fprintf-posix.m4
@@ -1,4 +1,4 @@
-# fprintf-posix.m4 serial 10
+# fprintf-posix.m4 serial 11
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_FPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/snprintf-posix.m4
+++ b/m4/snprintf-posix.m4
@@ -1,4 +1,4 @@
-# snprintf-posix.m4 serial 11
+# snprintf-posix.m4 serial 12
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_SNPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/sprintf-posix.m4
+++ b/m4/sprintf-posix.m4
@@ -1,4 +1,4 @@
-# sprintf-posix.m4 serial 10
+# sprintf-posix.m4 serial 11
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_SPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/vasnprintf-posix.m4
+++ b/m4/vasnprintf-posix.m4
@@ -1,4 +1,4 @@
-# vasnprintf-posix.m4 serial 11
+# vasnprintf-posix.m4 serial 12
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/vasnprintf.m4
+++ b/m4/vasnprintf.m4
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 24
+# vasnprintf.m4 serial 25
 dnl Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VASNPRINTF],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_CHECK_FUNCS_ONCE([vasnprintf])
   if test $ac_cv_func_vasnprintf = no; then
     gl_REPLACE_VASNPRINTF
--- a/m4/vasprintf-posix.m4
+++ b/m4/vasprintf-posix.m4
@@ -1,4 +1,4 @@
-# vasprintf-posix.m4 serial 11
+# vasprintf-posix.m4 serial 12
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VASPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/vfprintf-posix.m4
+++ b/m4/vfprintf-posix.m4
@@ -1,4 +1,4 @@
-# vfprintf-posix.m4 serial 10
+# vfprintf-posix.m4 serial 11
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VFPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/vsnprintf-posix.m4
+++ b/m4/vsnprintf-posix.m4
@@ -1,4 +1,4 @@
-# vsnprintf-posix.m4 serial 11
+# vsnprintf-posix.m4 serial 12
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VSNPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/m4/vsprintf-posix.m4
+++ b/m4/vsprintf-posix.m4
@@ -1,4 +1,4 @@
-# vsprintf-posix.m4 serial 10
+# vsprintf-posix.m4 serial 11
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@
 
 AC_DEFUN([gl_FUNC_VSPRINTF_POSIX],
 [
-  AC_REQUIRE([gl_EOVERFLOW])
   AC_REQUIRE([gl_PRINTF_SIZES_C99])
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([gl_PRINTF_INFINITE])
--- a/modules/fprintf-posix
+++ b/modules/fprintf-posix
@@ -20,6 +20,7 @@
 fpucw
 nocrash
 printf-safe
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_FPRINTF_POSIX
--- a/modules/ftell
+++ b/modules/ftell
@@ -8,6 +8,7 @@
 Depends-on:
 ftello
 stdio
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_FTELL
--- a/modules/getdelim
+++ b/modules/getdelim
@@ -9,6 +9,7 @@
 extensions
 stdio
 realloc-posix
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_GETDELIM
--- a/modules/poll
+++ b/modules/poll
@@ -9,6 +9,7 @@
 Depends-on:
 sys_select
 sys_time
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_POLL
--- a/modules/snprintf
+++ b/modules/snprintf
@@ -8,6 +8,7 @@
 Depends-on:
 stdio
 vasnprintf
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_SNPRINTF
--- a/modules/sprintf-posix
+++ b/modules/sprintf-posix
@@ -20,6 +20,7 @@
 nocrash
 printf-safe
 stdint
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_SPRINTF_POSIX
--- a/modules/unistdio/u16-u16-vasnprintf
+++ b/modules/unistdio/u16-u16-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u16-u16-vasprintf
+++ b/modules/unistdio/u16-u16-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u16-u16-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u16-u16-vsnprintf
+++ b/modules/unistdio/u16-u16-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u16-u16-vasnprintf
 unistr/u16-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u16-u16-vsprintf
+++ b/modules/unistdio/u16-u16-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u16-u16-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u16-vasnprintf
+++ b/modules/unistdio/u16-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u16-vasprintf
+++ b/modules/unistdio/u16-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u16-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u16-vsnprintf
+++ b/modules/unistdio/u16-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u16-vasnprintf
 unistr/u16-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u16-vsprintf
+++ b/modules/unistdio/u16-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u16-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-u32-vasnprintf
+++ b/modules/unistdio/u32-u32-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u32-u32-vasprintf
+++ b/modules/unistdio/u32-u32-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u32-u32-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-u32-vsnprintf
+++ b/modules/unistdio/u32-u32-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u32-u32-vasnprintf
 unistr/u32-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-u32-vsprintf
+++ b/modules/unistdio/u32-u32-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u32-u32-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-vasnprintf
+++ b/modules/unistdio/u32-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u32-vasprintf
+++ b/modules/unistdio/u32-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u32-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-vsnprintf
+++ b/modules/unistdio/u32-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u32-vasnprintf
 unistr/u32-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u32-vsprintf
+++ b/modules/unistdio/u32-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u32-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-u8-vasnprintf
+++ b/modules/unistdio/u8-u8-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u8-u8-vasprintf
+++ b/modules/unistdio/u8-u8-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u8-u8-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-u8-vsnprintf
+++ b/modules/unistdio/u8-u8-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u8-u8-vasnprintf
 unistr/u8-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-u8-vsprintf
+++ b/modules/unistdio/u8-u8-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u8-u8-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-vasnprintf
+++ b/modules/unistdio/u8-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -42,6 +41,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/u8-vasprintf
+++ b/modules/unistdio/u8-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/u8-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-vsnprintf
+++ b/modules/unistdio/u8-vsnprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u8-vasnprintf
 unistr/u8-cpy
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/u8-vsprintf
+++ b/modules/unistdio/u8-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/u8-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/ulc-fprintf
+++ b/modules/unistdio/ulc-fprintf
@@ -8,6 +8,7 @@
 unistdio/base
 unistdio/ulc-vasnprintf
 fseterr
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/ulc-vasnprintf
+++ b/modules/unistdio/ulc-vasnprintf
@@ -12,7 +12,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 
 Depends-on:
 unistdio/base
@@ -40,6 +39,7 @@
 alloca-opt
 localcharset
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_PREREQ_VASNPRINTF_WITH_EXTRAS
--- a/modules/unistdio/ulc-vasprintf
+++ b/modules/unistdio/ulc-vasprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/ulc-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/ulc-vfprintf
+++ b/modules/unistdio/ulc-vfprintf
@@ -8,6 +8,7 @@
 unistdio/base
 unistdio/ulc-vasnprintf
 fseterr
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/ulc-vsnprintf
+++ b/modules/unistdio/ulc-vsnprintf
@@ -8,6 +8,7 @@
 Depends-on:
 unistdio/base
 unistdio/ulc-vasnprintf
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/unistdio/ulc-vsprintf
+++ b/modules/unistdio/ulc-vsprintf
@@ -9,6 +9,7 @@
 unistdio/base
 unistdio/ulc-vasnprintf
 stdint
+EOVERFLOW
 
 configure.ac:
 
--- a/modules/vasnprintf
+++ b/modules/vasnprintf
@@ -16,7 +16,6 @@
 m4/intmax_t.m4
 m4/stdint_h.m4
 m4/inttypes_h.m4
-m4/eoverflow.m4
 m4/vasnprintf.m4
 
 Depends-on:
@@ -24,6 +23,7 @@
 float
 stdint
 xsize
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_VASNPRINTF
--- a/modules/vasprintf
+++ b/modules/vasprintf
@@ -15,6 +15,7 @@
 extensions
 vasnprintf
 stdio
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_VASPRINTF
--- a/modules/vfprintf-posix
+++ b/modules/vfprintf-posix
@@ -20,6 +20,7 @@
 fpucw
 nocrash
 printf-safe
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_VFPRINTF_POSIX
--- a/modules/vsnprintf
+++ b/modules/vsnprintf
@@ -9,6 +9,7 @@
 Depends-on:
 stdio
 vasnprintf
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_VSNPRINTF
--- a/modules/vsprintf-posix
+++ b/modules/vsprintf-posix
@@ -20,6 +20,7 @@
 nocrash
 printf-safe
 stdint
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_VSPRINTF_POSIX
--- a/modules/xvasprintf
+++ b/modules/xvasprintf
@@ -17,6 +17,7 @@
 xalloc-die
 xsize
 stdarg
+EOVERFLOW
 
 configure.ac:
 gl_XVASPRINTF