about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-08-07 18:24:47 +0000
committerRoland McGrath <roland@gnu.org>1995-08-07 18:24:47 +0000
commit99a9e88e55c4cb46ce645aedac3e5d1a906dfd69 (patch)
tree41578c33d0c64ba2a51cf3f5df1109b782226f6d /sysdeps/generic
parent5e98d83c10427044f41fa3a48d49bbdd0e176b41 (diff)
downloadglibc-99a9e88e55c4cb46ce645aedac3e5d1a906dfd69.tar.gz
glibc-99a9e88e55c4cb46ce645aedac3e5d1a906dfd69.tar.xz
glibc-99a9e88e55c4cb46ce645aedac3e5d1a906dfd69.zip
Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
 	when __stdio_open fails with a code other than ENFILE or EMFILE.

	* csu/initfini.c (SECTION): New macro, different definitions for
 	#ifdef HAVE_ELF and not.
	(_init, _fini): Use that macro.
	* config.make.in (have-initfini): New variable, set by configure.
	* conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/sysd-stdio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/generic/sysd-stdio.c b/sysdeps/generic/sysd-stdio.c
index fef0ed4d9a..7a3f7fc918 100644
--- a/sysdeps/generic/sysd-stdio.c
+++ b/sysdeps/generic/sysd-stdio.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -174,6 +174,8 @@ DEFUN(__stdio_reopen, (filename, m, cookieptr),
 	  if (__stdio_open (filename, m, &newcookie))
 	    return -1;
 	}
+      else
+	return -1;
     }
 
   if (newcookie != *cookieptr)