This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Legalize access to file descriptors now! (So sue me.)
- From: "Richard B. Kreckel" <kreckel at ginac dot de>
- To: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 17 Feb 2005 23:07:57 +0100 (CET)
- Subject: Re: Legalize access to file descriptors now! (So sue me.)
- Reply-to: <Richard dot Kreckel at ginac dot de>
On Thu, 17 Feb 2005, Jonathan Wakely wrote:
> Am I missing it, or is there no link to download the code? I seem to
> have to copy'n'paste from the webpage.
I'll change this, some time.
[...]
> fileno(3) is a macro on BSD - so declaring a template function overload
> fails, as does referring to it as ::fileno().
Oops, I wasn't aware of fileno(3) being a macro on some platforms.
> You also need to wrap the instantiation of the wide-stream
> specialisation in a check for _GLIBCXX_USE_WCHAR_T or
> _GLIBCPP_USE_WCHAR_T for platforms that don't support wchar_t I/O.
Okay, I'll fix it. Only the second instantiation would need to be wrapped
in #ifdefs. Thanks for pointing it out.
-richy.
--
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>