🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Thomas Koenig Wed, 23 Dec 1992 21:30
Is fopen("fifo","a") legal?
#857
Author: Thomas Koenig
Date: Wed, 23 Dec 1992 21:30
14 lines
907 bytes
Submitted-by: ig25@fg20.rz.uni-karlsruhe.de (Thomas Koenig)

Is it legal in a POSIX - conforming system to open a fifo for append? 

In other words, would I have to stat() every file I wish to append to
and see wether it is a fifo or not?

-- 
Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
The joy of engineering is to find a straight line on a double logarithmic
diagram.


Volume-Number: Volume 29, Number 84
Re: Is fopen("fifo","a") legal?
#862
Author: Chuck Karish
Date: Thu, 24 Dec 1992 02:19
16 lines
935 bytes
Submitted-by: karish@pangea.Stanford.EDU (Chuck Karish)

In article <1halpvINN9fe@ftp.UU.NET> ig25@rz.uni-karlsruhe.de
(Thomas Koenig) writes:

>Is it legal in a POSIX - conforming system to open a fifo for append? 

I don't see why not.  Writes to a FIFO are always at
end-of-file, whether it's opened for "write" or for 
"append".

--
Chuck Karish          karish@mindcraft.com
(415) 323-9000 x117   karish@pangea.stanford.edu

Volume-Number: Volume 29, Number 89
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads