[Info-vax] Announcing Ghostscript v9.05 for VMS

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Wed Aug 8 11:22:09 EDT 2012


On 2012-08-08 15:11:39 +0000, hb said:

> 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.


The chances of getting a CRTL extension within the image headers and 
supporting code in the image activator (and linker options and 
command-line tools to configure and manage this header) and the 
necessary code to retrieve the header settings in the CRTL to fix this 
DEC C features hackery?  Zero.


-- 
Pure Personal Opinion | HoffmanLabs LLC




More information about the Info-vax mailing list