C news fast stdio fails regression test on 386/ix.

Jack F. Vogel jackv at turnkey.tcc.com
Mon Aug 13 07:17:27 AEST 1990


In article <1990Aug10.221410.8502 at jdyx.UUCP> tpf at jdyx.UUCP (Tom Friedel) writes:
>I have run C-news with the fast stdio library since C-News first came
>out, ignoring the error in the stdio library tests.  No problems that I
>am aware of.  This is on Interactive 2.0.2.
 
Interesting, I had been paranoid since it failed that one test, I don't
suppose you have any idea on how much performance is gained, Cnews even
with the stock stdio is peppy enough that I don't know if its really worth
the bother.

>What doesn't work for me is the setuid( geteiud()) and the spacefor
>file, which I succesfully replaced with  'echo 10000'
 
Right setuid(geteuid()) just plain will not work, it doesn't work on AIX
either, in fact I suspect the majority of systems will not. However, there
is no reason not to use spacefor, it really is a nice feature. It is just
that it is the most system-dependent aspect to the whole Cnews package.
It is quite simple to get it to work with ISC. Change line 54 of the script
to look as follows:

	df $arg | sed "s/.*://" | awk "BEGIN { nf = 1 ; nr = 1 }

Also, this should be based on the spacefor.sysv prototype. Having this script
really work can keep you from overflowing filesystems, so its really not
desireable to shortcircuit it.

Disclaimer: ME, speak for Locus?? Surely you jest :-}!

-- 
Jack F. Vogel			jackv at locus.com
AIX370 Technical Support	       - or -
Locus Computing Corp.		jackv at turnkey.TCC.COM



More information about the Comp.unix.i386 mailing list