/dev/stdin: credit where credit may be due?
Antony Williams
asw at rlvd.UUCP
Wed Jun 26 10:05:48 AEST 1985
Apologies to readers who feel that messages such as this should be
kept out of net.sources - flames to /dev/null please.
Several implementations of /dev/stdin, /dev/fdXX etc have recently
appeared. It is worth pointing out that Jeff Smith (warwick)
described exactly such a driver about two years ago at the inaugural
meeting of the UKUUG, held at Westfield College in London.
Jeff noted two main points in retrospect:
freopen will close the file first, so that
freopen(argv[1],"r", stdin) where argv[1]=="/dev/stdin"
will not work as expected!
opening a /dev/fdXX file with a different access type
from that previously used may not have the desired effect.
Apologies to Rob Pike if he did get there first!
--------------------------------------------------
UK JANET: asw at uk.ac.rl.vd
UK Usenet: {... | mcvax}!ukc!rlvd!asw
ARPAnet: asw%rlvd at ucl-cs.arpa
More information about the Comp.sources.unix
mailing list