From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,731b5089758f2cd X-Google-Attributes: gid1164f8,public From: "Chuck McCrobie (** MAD VAX **)" Subject: Re: Question for Vax experts Date: 1997/12/02 Message-ID: <3483E214.5C7DAF3A@usdesign.com>#1/1 X-Deja-AN: 294540406 References: <65vi27$4mb@nr1.calgary.istar.net> Organization: U.S. Design Newsgroups: comp.sys.dec Brad Hawken wrote: > > I've written some applications in C on Unix and now I have to port them to > the Vax (which I know nothing about I'm afraid). > > Mostly I'm done however I have run into the problem on the vax where once a > file has been opened using the system routines open or creat I cannot access > these files with with other calls to open from within the same process or > even read the files externally (i.e. with TYPE). This is required since > this application is a logging API that will append, recreate, write, etc to > a file from within any other application. > > My question is, what "keywords = what values" should be used in order to > make the newly created file sharable (I think that is the vax lingo). > Essentially creat(e) the file so that once a file is created calling open() > again to retrieve a new file descriptor doesn't give the error > "65535 file currently locked by another user" > > Thanks in advance for any help on this. If you have access to the DEC C Run-time Manual, the "keyword=value" information is listed in the "creat" call. You may want to try the following keyword(s): "shr=put" - allows users to write "shr=upd" - allows users to update "shr=get" - allows users to read "shr=upi" - allows one or more writers I have not used the last option, but it sounds reasonable. There may be other relevant options... You will want to get the DEC C Runtime Manual and possibly the VMS System Services Manual and perhaps the RMS Manual. Chuck McCrobie -- ALL OPINIONS DO NOT NECESSARILY REFLECT THOSE OF MY EMPLOYER.