Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman)
Subject: Re: C and logical names via sys$trnlnm???
Date: 1999/02/10	[thread overview]
Message-ID: <79so01$uri@usenet.pa.dec.com> (raw)
In-Reply-To: 36C0FD9F.F96D4EE1@groupz.net


In article <36C0FD9F.F96D4EE1@groupz.net>, Robert Young <rcyoung@groupz.net> writes:
:Does anyone have an example with sys$trnlnm of pulling a logical name
:with C using this VMS C library routine. 

  getenv() is often the easiest way, but rather limited in capabilities.
  sys$trnlnm is another approach, works nicely too, and lib$get_logical
  is another option.

  The OpenVMS freeware CD-ROM (V3.0, in this case) has examples of
  calling sys$trnlnm including:

    DISK$FREEWAREV30:[ALTRIS.SRC.ALHEXTRIS]GETHOSTNAME.C
    DISK$FREEWAREV30:[CALLMON.SRC]CALLMON$UTIL.C
    DISK$FREEWAREV30:[EMACSV1928.SRC]VMSFNS.C
    DISK$FREEWAREV30:[FASTLOGIN]FASTLOGIN.C
    DISK$FREEWAREV30:[FINGER.IUFINGER]IUFINGER.C
    DISK$FREEWAREV30:[FINGER.IUFINGERD]FUIP.C
    DISK$FREEWAREV30:[FLIST.OLDSRC]FLIST.C
	...


:I get my code to compile, but
:it is not returning what I 'think' it should be.

  A concise standalone example of the problem program and the
  build procedures, please?  (It's hard to debug a problem when
  there's no example provided... :-)

  Remember that the logical name can be set to be case-blind
  or case-sensitive, and the logical name table argument is 
  case-sensitive.

  Also, when posting, please include versions such as that of
  OpenVMS and DEC C versions.  (They probably don't effect this 
  particular problem, but they are useful in various conexts.)

 -------------------------- pure personal opinion ---------------------------
 Hoff (Stephen) Hoffman   OpenVMS Engineering   hoffman#xdelta.zko.dec.com




      reply	other threads:[~1999-02-10  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-09  5:00 C and logical names via sys$trnlnm??? Robert Young
1999-02-10  5:00 ` Hoff Hoffman [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