[hacknews] efopen

henry@utzoo.UUCP (Henry Spencer) (04/25/84)

Two new utility routines, efopen(3) and error(3), have been installed
in the C library.  They are based on the ones in Kernighan&Pike, with
some minor flourishes (notably, efopen() calls error()).  I hope this
won't break *too* many programs which have their own error() routine.

Also, I have taken the long-overdue step of ranlib'ing the C library.
This should speed up the load step of cc.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry

henry@utzoo.UUCP (Henry Spencer) (05/07/84)

Minor bug fix to efopen(3):  errno is now zeroed before the fopen call.
This way, if fopen fails on some stdio-internal condition before doing
the actual system call(s), error() doesn't produce an incorrect message
based on a historical artifact in errno.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry