From: s_johnson@csc32.enet.dec.com (My name is...)
Subject: Re: Desperately seeking help with VAXCRTL fopen
Date: 1 May 90 14:01:05 GMT [thread overview]
Message-ID: <1010@shodha.dec.com> (raw)
In article <2816@teda.UUCP>, bob@teda.UUCP (Bob Armstrong) writes...
> The
>question is, how do I find the FAB that fopen is using so that I can determine
>the cause of the error ? Is there another way to find the STV field from
>the last fopen ?
>
#include stdio
#include rab;
#include fab;
#include nam;
#define fcb_l_rab 0x0f4; /* This offset might change depending on vms
version. It works for 5.4. */
struct FAB *fabptr;
struct RAB *rabptr;
struct NAM *namptr;
FILE fp;
int *mp;
main()
{
int fn = 0;
fp = fopen("stuff.dat","w");
mp = fp;
rabptr = *mp + fcb_l_rab;
printf("RAB.BID = %x.RAB.BLN = %x. RAB.FAB = %x. \n",
rabptr->rab$b_bid,rabptr->rab$b_bln,rabptr->rab$l_fab);
fabptr = rabptr->rab$l_fab;
printf("FAB.BID = %x.FAB.BLN = %x. FAB.NAM = %x. \n",
fabptr->fab$b_bid,fabptr->fab$b_bln,fabptr->fab$l_nam);
namptr = fabptr->fab$l_nam;
printf("Per NAM block, file name string is %.*s. \n",
namptr->nam$b_rsl,namptr->nam$l_rsa);
}
next reply other threads:[~1990-05-01 14:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-05-01 14:01 My name is... [this message]
-- strict thread matches above, loose matches on Subject: below --
1990-05-02 14:48 Desperately seeking help with VAXCRTL fopen My name is...
1990-04-28 0:25 Bob Armstrong
1990-04-30 23:35 ` Bob Armstrong
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