Rumor about AT&T Validation

Stewart Levin stew at hanauma.UUCP
Sun Aug 10 13:42:07 AEST 1986


 ................................................................

 I missed the beginning of this discussion, but for BSD Unix I never
 found any 100% sure-fire way of using fstat(2) to detect a pipe.
 The best I ever did was about 95% accuracy.  To get 100% accuracy
 under 4.1BSD I cribbed a trick from tee(1) of lseek'ing on the
 file descriptor and checking for an ESPIPE error.  4.2 broke this
 by returning EINVAL but this is fixed in 4.3, I'm told, and also
 in one of my 4.2 Bug Reports distributed on the 84.2 Usenix tape.
 Now I'm just waiting for Convex's next system release....

 			... decvax!hanauma!stew



More information about the Comp.unix.wizards mailing list