public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Accessing file descriptors in fstream (g++ 3.0.1)
@ 2002-04-05 17:03 Raja Gopal
  0 siblings, 0 replies; 2+ messages in thread
From: Raja Gopal @ 2002-04-05 17:03 UTC (permalink / raw)
  To: gcc-help

Hi gcc-gurus,
gcc-3.0 doesn't allow you to get file descriptors if you use ofstream. Is 
there any work around to get file descriptors?
I have seen this message posted by several people, but there is no answer so 
far.

Did any one get a way out of it?

please respond....

Thanks

raja




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Accessing file descriptors in fstream (g++ 3.0.1)
@ 2001-09-10 15:00 Rankin, Chris
  0 siblings, 0 replies; 2+ messages in thread
From: Rankin, Chris @ 2001-09-10 15:00 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'; +Cc: 'rankincj@yahoo.com'

Hi,
I am trying to port some (essential!) code from g++-2.95.3 to g++-3.0.1 but
am having difficulty with the fstreams classes. It looks as if all the
interfaces that would have allowed me to access the underlying file
descriptor have been removed, and nothing has been added to take their
place.

I imagine that this has been done in the name of being "standards
compliant". Gee, thanks. Is there a workaround, a patch available, or will I
just have to ditch g++-3.0.1 and stick with 2.95.3?

FWIW, I *cannot* allow these streams' file descriptors to be inherited by
any child processes, and I don't *care* if I have to write non-compliant
code to do it. My primary concern is for the code to *work* - without that,
all "compliance" issues are irrelevant.

I would appreciate any assistance with this, please.

Cheers,
Chris

P.S. I see that the "permissions" argument has also been removed from the
ofstream constructor. However, I could live with that - IF I also had access
to the file descriptor.


This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-06  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 17:03 Accessing file descriptors in fstream (g++ 3.0.1) Raja Gopal
  -- strict thread matches above, loose matches on Subject: below --
2001-09-10 15:00 Rankin, Chris

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).