[Info-vax] decc$stat() variants on VMS.
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Wed Jun 29 09:49:47 EDT 2016
In article <nl0i81$qov$1 at dont-email.me>, "John E. Malmberg" <wb8tyw at qsl.net_work> writes:
>Since this is discussed on other threads.
>
> From looking at stat.h, it looks like there are at least 7 different
>variants of stat() as of VMS 8.4 as Compile time options.
>
>The standard stat() call is probably closest to Unix. The main thing
>about the others is that the dev_t returns a pointer to the VMS device
>name for the file.
>
>The standard stat returns a unique dev_t number for the device.
>Unfortunately VMS does not provide the routines to parse the dev_t
>number or translate it to an actual disk device.
>
>Interestingly the non-standard stats() are the easiest way for a C
>program to get the device name and fid of a file in order to use the
>FID_TO_NAME service to simulate realpath().
>
>The stat() call only returns the correct byte count for stream files.
The DA asks, "Which stream format?"
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list