Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!ukc!pyrltd!root44!gwc From: gwc@root.co.uk (Geoff Clare) Newsgroups: comp.unix.internals Subject: Re: Regular pipe vs. Named Pipe Message-ID: <2748@root44.co.uk> Date: 21 Jun 91 12:14:25 GMT References: <2736@root44.co.uk> <25101:Jun1217:29:0291@kramden.acf.nyu.edu> <1991Jun13.143802.3600@chinet.chi.il.us> <2107.Jun1421.52.0991@kramden.acf.nyu.edu> Organization: UniSoft Ltd., London, England Lines: 18 brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >Now >that several vendors offer System V-based POSIX systems, you can't even >write named pipe code that works on all System V machines. Yes you can. It's possible to write named pipe code that works on all systems that have named pipes. You just have to be careful to restrict yourself to areas of common behaviour, or allow for the differences in behaviour. For example, the sequence of system calls executed by the following shell command will work on all systems which support named pipes: echo foo > FIFO & echo bar > FIFO & cat FIFO -- Geoff Clare (Dumb American mailers: ...!uunet!root.co.uk!gwc) UniSoft Limited, London, England. Tel: +44 71 729 3773 Fax: +44 71 729 3273