[Info-vax] decc$stat() variants on VMS.
Michael Moroney
moroney at world.std.spaamtrap.com
Wed Jun 29 13:06:29 EDT 2016
On 06/29/2016 03:25 PM, John E. Malmberg wrote:
> The stat() call only returns the correct byte count for stream files.
> For fixed block size files, like .EXE files, which are 512 byte files,
> they use the number of blocks to calculate the byte count.
>
> Unfortunately that is the wrong number because .EXE files can have
> partial blocks in them.
I thought all VMS executable files, VAX, Alpha and Itanic, were fixed length
512 byte records, meaning all executables were always an exact multiple of
a disk block in size.
(doesn't mean all 512 bytes have to be used each time. I suspect any
HELLO_WORLD.EXE likely has a text psect where only a few bytes are used
but consumes 512 bytes [times page_size?] in the .exe)
More information about the Info-vax
mailing list