Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.enet.dec.nospam (Stephen Hoff Hoffman)
Subject: Re: QUESTION: Porting Unix Code To GNU C On VAX/VMS...
Date: 1997/05/23	[thread overview]
Message-ID: <5m4uv6$4d2@usenet.pa.dec.com> (raw)
In-Reply-To: 1997May21.171439@news.all-net.net



In article <1997May21.171439@news.all-net.net>, byer@mail.all-net.net (Robert Byer) writes:

:But, I don't have the "unlink" function which is kinda vital for this
:application.

   Under recent versions of DEC C under recent versions of OpenVMS, one
   has access to a wide variety of UNIX C library calls.  unlink() is
   not one, however.  unlink() is available via the POSIX API, though.
   Also available in both the C library and the POSIX API is delete().

:My question is, what is the equiv of the Unix "unlink" in GNU C v2.7.1
:for VMS or for that matter VAXC.

   unlink() can be used to remove links (aliases) to a file, and --
   when no more links are present -- to delete the file.

   OpenVMS has a "hard link" construct (SET FILE/ENTER, callable
   via the XQP IO$_ACPCONTROL interface), but the typical approach
   to "soft links" is the use of logical names -- a different, and
   arguably more powerful, approach.

   Whether you need to use a hard link, a soft link, or a simple
   delete, depends highly on the particular application...

   And if you have a current "C" license, I would strongly recommend
   installing DEC C.  DEC C can coexist with VAX C on V5.5-2 and
   later.

   As for GNU questions, donno. 

:I don't know all that much acout Unix programming or VAX programming so
:I would appreciate any and all help on this.

   Sounds like fun.  :-)

  -------------------------- pure personal opinion ---------------------------
   Hoff (Stephen) Hoffman   OpenVMS Engineering   h*ffman@xdelta.enet.dec.c*m
     headers and addresses munged to avoid automated spammers: junk-e-mail




  parent reply	other threads:[~1997-05-23  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-21  4:00 QUESTION: Porting Unix Code To GNU C On VAX/VMS Robert Byer
1997-05-21  4:00 ` Pat Rankin
1997-05-23  4:00 ` Patrick MOREAU, CENA Athis, Tel: 01.69.57.64.40
1997-05-23  4:00 ` Stephen Hoff Hoffman [this message]
1997-05-29  4:00 ` Arne Vajhoej
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