🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cerrar un pipe mientras está ejecutándose

#1964
From: Abelazo
Date: Tue, 17 May 2005 20:50
40 lines
2320 bytes
Servicios POSIX para tuber�as (entre otros):

Crear una tuber�a sin nombre:
	int pipe(int fildes[2]);

Crear una tuber�a con nombre:
	int mkfifo(char *fifo, mode_t mode);

Abrir una tuber�a con nombre:
	int open(char *fifo, int flag);

Cerrar una tuber�a:
	int close(int fd);

Borrar una tuber�a con nombre:
	int unlink(char *fifo);

Leer de una tuber�a:
	int read(int fd, char *buffer, int n);

Escribir en una tuber�a:
	int write(int fd, char *buffer, int n);

Sacado de "SISTEMAS OPERATIVOS, UNA VISI�N APLICADA" Jesus CARRETERO y 
C�a. Ed. Mc Graw Hill.

Si alguien pilota mucho de esto y ve que me he equivocado, que me lo 
diga pronto que tengo ex�men a final de mes ;)

ABEL

David Lago wrote:
> Gracias Pascal,
> 
> No ten�a ni idea de que se pod�an hacer pipes de otra forma que no fuese
> con popen. Buscar� por ah� m�s informaci�n sobre c�mo hacerlo con
> pipe+fork+ecex.
> 
> Saludos,
> David.
Technical Details
Message-ID: <3Wsie.299955$r4.19622718@news-reader.eresmas.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!teleglobe.net!62.81.31.29.MISMATCH!cyclone.auna.com!news-feeder.eresmas.com!news-reader.eresmas.com!not-for-mail
References: <d6atn0$pda19@cesio.mundo-r.com> <87sm0mzwx4.fsf@thalassa.informatimago.com> <d6b3nk$pcv26@cesio.mundo-r.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,7f474458e893d6bc
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!teleglobe.net!62.81.31.29.MISMATCH!cyclone.auna.com!news-feeder.eresmas.com!news-reader.eresmas.com!not-for-mail
From: Abelazo <abelQUTAMOSzo@TODASgmailLAS.MAYUSCULAScom>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Cerrar un pipe mientras está ejecutándose
References: <d6atn0$pda19@cesio.mundo-r.com> <87sm0mzwx4.fsf@thalassa.informatimago.com> <d6b3nk$pcv26@cesio.mundo-r.com>
In-Reply-To: <d6b3nk$pcv26@cesio.mundo-r.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 40
Message-ID: <3Wsie.299955$r4.19622718@news-reader.eresmas.com>
Date: Tue, 17 May 2005 22:50:01 +0200
NNTP-Posting-Host: 80.37.25.74
X-Complaints-To: abuse@eresmas.com
X-Trace: news-reader.eresmas.com 1116363519 80.37.25.74 (Tue, 17 May 2005 22:58:39 MET DST)
NNTP-Posting-Date: Tue, 17 May 2005 22:58:39 MET DST
Organization: eresMas