[Info-vax] Announcing Ghostscript v9.05 for VMS
hb
end.of at inter.net
Wed Aug 8 11:11:39 EDT 2012
On 08/08/12 04:05, John E. Malmberg wrote:
> Some DECC features must be set before decc$crtl_init() is called.
which is called from DECC$MAIN and that is visible in your main object,
decc$crtl_init (aka vaxc$crtl_init) is not.
> You have to be careful in the LIB$INITIALIZE section to not call a C
> library routine that will need to call decc$crtl_init before calling the
> routines that set the decc features.
It is a general rule NOT to call out from image initialization code.
Here, it is impossible, because decc$feature_set_value is in the CRTL.
Obviously it doesn't (need to) call decc$crtl_init.
> And on the Perl project, I discovered that decc$disable_posix_root
> setting is not honored in a LIB$INITIALIZE section for programs that use
> Posix threads.
If an image is linked against PTHREAD$RTL.EXE, the image activator
always calls its PTHREAD_MAIN: after calling sys$imgsta and before
calling lib$initialize.
More information about the Info-vax
mailing list