🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Comprobar si un flujo de datos está cerrado

#10138
From: Ignacio Arenaza
Date: Thu, 28 Mar 2002 10:11
27 lines
2084 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "J" == J A Gutierrez <spd@daphne.cps.unizar.es> writes:

    J> 	Por otra parte, puedes obtener el numero correspondiente a un
    J> FILE* mediante fileno(3); pero no se que hara si le pasas el
    J> correspondiente a un fichero ya cerrado.

Segun la pagina del manual, debe retornar el valor -1 y poner errno a
EBADF, con lo cual se podria detectar si el puntero a stream que se le
pasa esta abierto (asociado a un fd) o no.

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at  http://www.escomposlinux.org/iarenaza/pgpkey.html
  I use free software / Yo uso software libre

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG

iD8DBQE8ouxeZXLnGT1HLgcRAmrmAJ91xplkLMoEWpkgFtZ5vf5b0KCmOwCfVYwo
lctK38/68QV8elFLZzFKve4=
=tC08
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87r8m5m274.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mail
References: <slrna9v1eq.f4d.jpozdom@sol.linux.bogus> <a7pk00$ib2$1@news.unizar.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e3c48eb0627ce8a9
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-28 04:15:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mail
From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Comprobar si un flujo de datos está cerrado
Date: 28 Mar 2002 11:11:43 +0100
Organization: Servidor NNTP de eb2ebu.ampr.org
Lines: 27
Sender: linuxero@62-36-160-58.dialup.uni2.es
Message-ID: <87r8m5m274.fsf@eb2ebu.ampr.org>
References: <slrna9v1eq.f4d.jpozdom@sol.linux.bogus> <a7pk00$ib2$1@news.unizar.es>
NNTP-Posting-Host: 213-98-107-123.uc.nombres.ttd.es (213.98.107.123)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1017317708 25634364 213.98.107.123 (16 [64988])
X-Orig-Path: antonio.escomposlinux.org!marmolejo.escomposlinux.org!eriador.escomposlinux.org!eb2ebu.ampr.org!not-for-mail
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7