Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: Maybe there should be a new flag to open(2) Message-ID: <2905@sun.uucp> Date: Thu, 17-Oct-85 06:33:30 EDT Article-I.D.: sun.2905 Posted: Thu Oct 17 06:33:30 1985 Date-Received: Sat, 19-Oct-85 05:44:06 EDT References: <265@kovacs.UUCP> Organization: Sun Microsystems, Inc. Lines: 12 > 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