From 99a9e88e55c4cb46ce645aedac3e5d1a906dfd69 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 7 Aug 1995 18:24:47 +0000 Subject: Mon Aug 7 14:04:36 1995 Roland McGrath * 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. --- sysdeps/generic/sysd-stdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/generic/sysd-stdio.c') 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) -- cgit 1.4.1