From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,3c4ff193a1aba51d X-Google-Attributes: gidf7344,public X-Google-Thread: f86d6,3c4ff193a1aba51d X-Google-Attributes: gidf86d6,public X-Google-Thread: 1164f8,3c4ff193a1aba51d X-Google-Attributes: gid1164f8,public X-Google-Thread: 11062c,3c4ff193a1aba51d X-Google-Attributes: gid11062c,public 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 Message-ID: <5m4uv6$4d2@usenet.pa.dec.com>#1/1 X-Deja-AN: 243420730 Distribution: world References: <1997May21.171439@news.all-net.net> Organization: Digital Equipment Corp Reply-To: hoffman@xdelta.zko.dec.nospam Newsgroups: comp.os.vms,comp.sys.dec,vmsnet.sysmgt,vmsnet.tcp 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