Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/15/85; site plus5.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!plus5!hokey From: hokey@plus5.UUCP (Hokey) Newsgroups: net.unix-wizards Subject: r/w access to fd from creat() Message-ID: <738@plus5.UUCP> Date: Sat, 11-May-85 14:02:22 EDT Article-I.D.: plus5.738 Posted: Sat May 11 14:02:22 1985 Date-Received: Sun, 12-May-85 05:47:43 EDT Organization: Plus Five Computer Services, St. Louis Lines: 16 It has been my experience that the file descriptor returned from a successful invocation of creat() is writaable but not readable, regardless of the mode specified to creat(). Does anybody know of a way to change this (kernel mods are unacceptable)? One problem is that I occasionally need r/w access to a creat()ed fd which must have a mode of 0444 for exclusive lock purposes. I need this functionality for Unix implementations which do not have the 3 argument form of open(). Is the only solution to use temporary files, link()s, and chmod()s? -- Hokey ..ihnp4!plus5!hokey 314-725-9492