From -4933194963955480960
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a503f12190fad83c
X-Google-Attributes: gidf78e5,public
From: Barry Margolin <barmar@bbnplanet.com>
Subject: Re: What does the standard say about file descriptors
Date: 1999/10/15
Message-ID: <SDqN3.879$854.35678@burlma1-snr2>#1/1
X-Deja-AN: 536937214
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <qqlzoxmt4em.fsf@Ike.ERC.MsState.Edu>
X-Original-Date: Thu, 14 Oct 1999 20:00:50 GMT
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: ariel.ucs.unimelb.edu.au 939961253 28353 128.250.37.153 (15 Oct 1999 04:20:53 GMT)
Organization: GTE Internetworking, Cambridge, MA
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAOAarnuEDnX0m9pzZAQEmnwF5ASSkaPWeKkUKP16aX80rLBvpVjYiV14D YODekujSvimM5xF1zLjg3Rbbijk5zI9o =eyrf
X-Copies-To: never
NNTP-Posting-Date: 15 Oct 1999 04:20:53 GMT
Newsgroups: comp.std.c++

In article <qqlzoxmt4em.fsf@Ike.ERC.MsState.Edu>,
Edward Luke  <lush@erc.msstate.edu> wrote:
>I find that sometimes I need to interface iostream objects with low
>level POSIX file descriptors.  For example, I would like to have a
>ostream that connects to a pipe via POSIX popen().  

popen() doesn't return a file descriptor, it returns a stdio FILE*.  You
can use stdio from C++.

-- 
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



