ios::app and pipes
Dimitri Papadopoulos
papadopo@REMOVE.shfj.DECOY.cea.fr
Fri Nov 8 05:28:00 GMT 2002
Hi,
fstream::open() with ios::app flag has not been working with
pipes since gcc 3.0. This can be reproduced at least on:
- Solaris 8 7/01 + gcc 3.2
- IRIX 6.5.13 + gcc 3.0.2
ios:app used to work fine with pipes in gcc 2.95.3.
To reproduce:
- build the attached openapp.cc source file
- create a pipe named /tmp/pipe
- run the program, it will attempt to open the pipe with ios::app
- read the pipe from the shell to unblock - use "cat /tmp/pipe"
- fstream::open() will fail with error "Illegal seek"
Is this a known issue? Is this expected?
Regards,
Dimitri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openapp.cc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021108/962673a7/attachment.cc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021108/962673a7/attachment.ksh>
More information about the Libstdc++
mailing list