Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: Create an istream from an fd? Date: Sun, 28 Aug 2011 10:52:54 +1200 Lines: 25 Message-ID: <9btaq6FopsU5@mid.individual.net> References: <27743f07-a009-4f80-aa2f-5ab9dd9fdd9a@19g2000vbv.googlegroups.com> <9bqok6FeijU2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net LOJ+dySTFNTDBKBbwp1SJAKnHpwgSEE46jt1Ka8i0G1XcHqbl2 Cancel-Lock: sha1:0W/gch30z+s5NmQmLZgV/NohgRY= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9379 On 08/27/11 12:46 PM, Alf P. Steinbach wrote: > On 27.08.2011 01:30, Ian Collins wrote: >> On 08/27/11 11:26 AM, Alf P. Steinbach wrote: >>> On 26.08.2011 17:54, Noah Roberts wrote: >>>> Is there a straight forward of creating an istream out of a file >>>> descriptor? If there is I'd like to use it before going off and >>>> making such a thing. >>> >>> Compiler-specific. >> >> Compiler, or platform? > > Well, to be precise, it's specific to the standard library > implementation. But usually one does not replace the one bundled with > the compiler. So then it's compiler-specific. How so? There aren't any istream constructors or other members that work with file descriptors. I guess there could be library extensions, but they are part of the "standard" library, are they? My point was the notion of a "file descriptor" is platform specific, so any streambuf derivative that uses one would also be platform specific. -- Ian Collins