[hacknews] openable

david@utzoo.UUCP (David Trueman) (03/31/84)

Openable is used to test whether a file can be opened for reading, writing
or both.  Its behaviour is that of the V7 test(1) using the "-r" or "-w"
options (except that test(1) did not provide for opening for read and write).
The System 5 builtin "test", however, uses access(2) rather than open(2),
so the behaviour is different for directories or devices.
-- 
				David Trueman @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!david