Maybe there should be a new flag to open(2)

Guy Harris guy at sun.uucp
Thu Oct 17 20:33:30 AEST 1985


> Programs could easily be upgraded to insist on
> files when they want files, opendir(3) could
> insist that what it is opening is a directory, etc.

Easily?  Do tell.  There are tons of programs out there that use "open".
Care to go change them all?

They could just as easily be changed to do an "fstat" and check the file
type.  Alternatively, you could add a library routine to do the checking.
There is certainly no need to add more features to the raw system call.

	Guy Harris



More information about the Comp.unix.wizards mailing list