🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10430

Re: setbuf(0)

#10430
From: NotFound
Date: Tue, 05 Mar 2002 00:27
23 lines
1401 bytes
> quiero conseguir poner a 0 el buffer de stdout y stdin de un proceso antes
> de ejecutar un execvp
> 
> es decir quiero hacer
> 
> setbuffer(stdout, (char *)NULL, 0);
> setbuffer(stdin, (char *)NULL, 0);
> execvp("tftp",....)
> 
> y que me funcione, porque parece que despues de hacer el execvp todo vuelve
> a su ser.

Después del exec estás en otro programa, y ese progrma tiene sus propios
stdin y stdout, que son construcciones de la biblioteca de C, no del
sistema operativo.

Salu2
Technical Details
Message-ID: <3C8410E6.32D2CB3B@hobbiton.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.ebone.net!news1.ebone.net!cesio.mundo-r.com!not-for-mail
References: <0Gah8.4581$ge7.20741@telenews.teleline.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e5f58f529f518119
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-06 10:38:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.ebone.net!news1.ebone.net!cesio.mundo-r.com!not-for-mail
From: NotFound <blassic@hobbiton.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: setbuf(0)
Date: Tue, 05 Mar 2002 01:27:18 +0100
Organization: Another Netscape Collabra Server User
Lines: 23
Message-ID: <3C8410E6.32D2CB3B@hobbiton.org>
References: <0Gah8.4581$ge7.20741@telenews.teleline.es>
NNTP-Posting-Host: cm64035.red.mundo-r.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: en