[Info-vax] SCP2 and large files
John Reagan
xyzzy1959 at gmail.com
Wed Aug 12 08:48:40 EDT 2020
On Wednesday, August 12, 2020 at 2:47:52 AM UTC-4, Jeremy Begg wrote:
>
> a. Can the CRTL stat() routine be told to guess the file size from the
> RMS file header (ALQ perhaps)? I thought there might be a DECC$ feature
> logical to do this, but I can't find it.
>
You mean "st_size" in the stat buffer, yes? We do use RMS (if the file is on network device, we'll fall back to a $QIOW/IO$_ACCESS and dig through the FAT but I doubt you are doing that path)
1 51613 if (fhc->xab$l_ebk != 0) /* Calculate file size in bytes */
1 51614 stat_buf->st_size = (off64_t)(fhc->xab$l_ebk - 1) * RMS_BLOCKSIZE + fhc->xab$w_ffb;
1 51615 else
1 51616 stat_buf->st_size = (off64_t)fhc->xab$l_hbk * RMS_BLOCKSIZE + fhc->xab$w_ffb;
More information about the Info-vax
mailing list