From: jimp@cognos.uucp (Jim Patterson)
Subject: Re: 2 questions: VAX-C RTL calls and VMS .DIR file entries
Date: Fri, 26-Jun-87 10:05:22 EDT [thread overview]
Message-ID: <1000@aldebaran.UUCP> (raw)
In-Reply-To: 2405@usceast.UUCP
In article <2405@usceast.UUCP> still@usceast.UUCP (Bert Still) writes:
>
>Hi There,
> The second question concerns VMS directories. I have perused the
>"orange manuals" for the last two weeks looking for something that describes
>the VMS directory files' organization.
>(For the curious, I am trying to convert some systems programs that I have
>from BSD UNIX to run under VMS, and I need the OPENDIR, READDIR, CLOSEDIR, and
>IOCTL functions)
Rather than trying to decode the VMS directory structures, you might
be better off to use the RMS directory search primatives. You could
set up the following equivalences:
OPENDIR - establishes the directory name, and sets up SYS$SEARCH using
the given directory name and a filename of *.*;* . (You may need to
call SYS$PARSE at this point).
READDIR - calls SYS$SEARCH to retrieve the next filename and store
information about it into the FAB (File Access Block) and NAMe
structures (plus any XABs you may need). You can then move whatever
information is appropriate into the directory structure your program
expects.
CLOSEDIR - can just free up the various control structures.
I don't know where IOCTL fits in.
There are RTL routines that are similar (LIB$FIND_FILE, etc.).
If all you need are names of files, these may be sufficient.
--
Jim Patterson decvax!utzoo!dciem!nrcaer!cognos!jimp
Cognos Incorporated
prev parent reply other threads:[~1987-06-26 14:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1987-06-10 19:00 2 questions: VAX-C RTL calls and VMS .DIR file entries Bert Still
1987-06-12 20:45 ` .. " Robert J. Drabek
1987-06-15 15:56 ` rcb
1987-06-26 14:05 ` Jim Patterson [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