asw@rlvd.UUCP (Antony Williams) (06/26/85)
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@uk.ac.rl.vd UK Usenet: {... | mcvax}!ukc!rlvd!asw ARPAnet: asw%rlvd@ucl-cs.arpa