Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Chuck McCrobie (** MAD VAX **)" <mccrobie@usdesign.com>
Subject: Re: Question for Vax experts
Date: 1997/12/02	[thread overview]
Message-ID: <3483E214.5C7DAF3A@usdesign.com> (raw)
In-Reply-To: 65vi27$4mb@nr1.calgary.istar.net


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.



      parent reply	other threads:[~1997-12-02  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <65vi27$4mb@nr1.calgary.istar.net>
1997-12-02  5:00 ` Question for Vax experts Joshua Cope
1997-12-02  5:00 ` Chuck McCrobie (** MAD VAX **) [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox