PATCH: for Serious v3 shared library bug
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Thu Jan 4 14:22:00 GMT 2001
In article < 20010103124909.A4504@disaster.jaj.com >,
Phil Edwards <pedwards@disaster.jaj.com> writes:
> This may be a case where I'm being dense; the semantics of explicit dtor
> calls aren't something I'm an expert on. And I don't yet have a working
> PDF reader to consult the standard.
Off hand, I don't think so, but that answer is based on source tracing
and single stepping only.
> And I'm not certain at all about what's supposed to be the state of the
> world after
> sync_with_stdio(false);
> sync_with_stdio(true);
> Re-synching is just going to be a barrel of fun.
I am not a language lawyer (I base all I know about this area on p651
of TC++PL-SE), but it appears that a standard C++ program is suppose
to do one of the following before any IO:
(1) Make no special calls. Program gets sync'd or unsync'd IO
depending upon implementor preference.
(2) Call sync_with_stdio(false);
(3) Call sync_with_stdio(true);
It is unclear that calling sync_with_stdio() a second time with
different arguments will undo any first call. It is unclear that
re-synching after IO operations have begun would ever be required.
Loren
More information about the Libstdc++
mailing list