bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assume errno


From: Eric Blake
Subject: assume errno
Date: Sat, 17 Jun 2006 01:56:51 +0000

OK to apply?  These are the last five references within gnulib where
we did not assume the existance of errno.

lib/ChangeLog:
2006-06-16  Eric Blake  <address@hidden>

        * unsetenv.c [!defined errno]: Assume errno.h declares errno.
        * unicodeio.c [!defined errno]: Likewise.
        * strtod.c [!defined errno]: Likewise.
        * strtol.c [!defined errno]: Likewise.

m4/ChangeLog:
2006-06-16  Eric Blake  <address@hidden>

        * rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
        errno.

Index: lib/strtod.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/strtod.c,v
retrieving revision 1.18
diff -u -p -r1.18 strtod.c
--- lib/strtod.c        19 Sep 2005 17:28:15 -0000      1.18
+++ lib/strtod.c        17 Jun 2006 01:49:34 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997, 1999, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1997, 1999, 2003, 2006 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
@@ -19,9 +19,6 @@
 #endif
 
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 #include <ctype.h>
 
Index: lib/strtol.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/strtol.c,v
retrieving revision 1.24
diff -u -p -r1.24 strtol.c
--- lib/strtol.c        19 Sep 2005 17:28:15 -0000      1.24
+++ lib/strtol.c        17 Jun 2006 01:49:34 -0000
@@ -30,9 +30,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 #ifndef __set_errno
 # define __set_errno(Val) errno = (Val)
 #endif
Index: lib/unicodeio.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/unicodeio.c,v
retrieving revision 1.25
diff -u -p -r1.25 unicodeio.c
--- lib/unicodeio.c     14 May 2005 06:03:58 -0000      1.25
+++ lib/unicodeio.c     17 Jun 2006 01:49:34 -0000
@@ -1,6 +1,6 @@
 /* Unicode character output to streams with locale dependent encoding.
 
-   Copyright (C) 2000-2003 Free Software Foundation, Inc.
+   Copyright (C) 2000-2003, 2006 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
@@ -32,9 +32,6 @@
 #include <string.h>
 
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 #if HAVE_ICONV
 # include <iconv.h>
Index: lib/unsetenv.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/unsetenv.c,v
retrieving revision 1.8
diff -u -p -r1.8 unsetenv.c
--- lib/unsetenv.c      22 Mar 2006 22:08:04 -0000      1.8
+++ lib/unsetenv.c      17 Jun 2006 01:49:34 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,1995-1999,2000-2002,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1992,1995-1999,2000-2002,2005, 2006 Free Software Foundation, 
Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
@@ -21,9 +21,6 @@
 
 #include <errno.h>
 #if !_LIBC
-# if !defined errno && !defined HAVE_ERRNO_DECL
-extern int errno;
-# endif
 # define __set_errno(ev) ((errno) = (ev))
 #endif
 
Index: m4/rmdir-errno.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/rmdir-errno.m4,v
retrieving revision 1.6
diff -u -p -r1.6 rmdir-errno.m4
--- m4/rmdir-errno.m4   24 Apr 2006 07:35:24 -0000      1.6
+++ m4/rmdir-errno.m4   17 Jun 2006 01:49:36 -0000
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
 
 # Copyright (C) 2000, 2001, 2005, 2006 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -21,9 +21,6 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY],
       AC_TRY_RUN([
 #include <stdio.h>
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
        int main ()
        {
          FILE *s;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]