Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!ames!ucbcad!ucbvax!LBL-CSA2.ARPA!adelman From: adelman@LBL-CSA2.ARPA (Kenneth Adelman) Newsgroups: comp.os.vms Subject: Re: Creating files from C Message-ID: <870810062107.02a@Lbl-Csa2.Arpa> Date: Mon, 10-Aug-87 09:21:07 EDT Article-I.D.: Lbl-Csa2.870810062107.02a Posted: Mon Aug 10 09:21:07 1987 Date-Received: Wed, 12-Aug-87 00:36:22 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Adelman@Lbl-Csa2.Arpa (Kenneth Adelman) Distribution: world Organization: The ARPA Internet Lines: 14 The problem with umask() was well put by Jerry. I ran into this a few weeks ago and discovered an interesting workaround -- (void) umask(-1); This tells the Unix emulator to deney all files access bits, causing it to set the XAB$W_PROT field to zero. However, setting XAB$W_PRO to zero doesn't have the affect of creating a file with all access denied, but rather creating a file with the VMS semantics for default protection. Kenneth Adelman LBL