public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: hjl@lucon.org (H.J. Lu)
To: egcs@cygnus.com
Cc: drepper@gnu.ai.mit.edu (Ulrich Drepper)
Subject: An egcs patch for libio
Date: Wed, 03 Dec 1997 12:54:00 -0000	[thread overview]
Message-ID: <m0xdJwR-0004ecC@ocean.lucon.org> (raw)

This patch is needed for glibc 2. BTW, libio in egcs is not compatible
with libio in glibc 2.1. I have patches for both glibc 2.1 and egcs.
But they have to go tegether.

FYI, the _lock field in _IO_stdin/_IO_stdout/_IO_stderr is not
newed. It is a static variable.

-- 
H.J. Lu (hjl@gnu.org)
----  
Wed Dec  3 10:49:39 1997  H.J. Lu  (hjl@gnu.org)

	* streambuf.cc (streambuf::~streambuf): Don't delete _lock
	for _IO_stdin/_IO_stdout/_IO_stderr.

Index: streambuf.cc
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libio/streambuf.cc,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 streambuf.cc
--- streambuf.cc	1997/09/17 20:12:35	1.1.1.3
+++ streambuf.cc	1997/12/03 18:46:48
@@ -220,7 +220,8 @@
 {
   _IO_default_finish(this,0);
 #ifdef _IO_MTSAFE_IO
-  delete _lock;
+  if (this != _IO_stdin && this != _IO_stdout && this != _IO_stderr)
+    delete _lock;
 #endif
 }
 

             reply	other threads:[~1997-12-03 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-03 12:54 H.J. Lu [this message]
1997-12-05 23:33 ` Jeffrey A Law
     [not found] <87vhx5aigr.fsf@mharnois.workgroup.net>
1997-12-04 13:27 ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0xdJwR-0004ecC@ocean.lucon.org \
    --to=hjl@lucon.org \
    --cc=drepper@gnu.ai.mit.edu \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).