HP3000-L Archives

April 1998, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Mon, 13 Apr 1998 08:57:52 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Keven Miller writes:

>Jeff mentions:
>>True. AIFSYSWIDEGET supports a list of items and it is easy to add
>more.
>>Is there demand for a non-PM version of this AIF for directory
>>traversing?
>>
>>Jeff Vance, CSY
>
>A Non-PM approach would be nice.

HPFOPEN can open directories:

   int dirReadAccess = 9;
   int oldDomain = 1;
   int newDomain = 0;
   int createDomain = 4;
   int directoryType = 9;
   int directoryFormat = 10;
   char posixDirName[256];

   char   osFileName[256];
   int    fileNumber;
   int    errorNumber;

   ...

   HPFOPEN(&fileNumber, &errorNumber, 2, osFileName, 3, (char *)
&createDomain,
                      6, (char *) &directoryFormat, 10, (char *)
&directoryType,

                      11, (char *) &dirReadAccess);

This code is used to create a new POSIX directory, but can also be used
to open one for read access. When read, a directory produces one filename
per FREAD.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
btoback AT optc.com                |     -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.

ATOM RSS1 RSS2