Says it's not implemented in VMS, but you might try calling syscall() with no args just to see what happens. Other than that, I think you'd need to use XS.
I will not try to write XS code under VMS, my knowledge of the VMS internals is much too poor. I guess I'll have to live with the work around described earlier.