[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vms argv[0] and exit status fixes.

From: John E. Malmberg
Subject: vms argv[0] and exit status fixes.
Date: Wed, 05 Mar 2014 00:17:36 -0600
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

* main.c, vms_main_wrapper.c (main): This fixes the VMS arvg[0] to be the normalized program name expected by users and test scripts. This handles the three possible syntax's that the argv[0] can be set to from DCL, and handled removing a facility prefix.

When make is exec() from a C program, the argv[0] set by the exec() is also preserved as expected.

The older VMS specific code that did not handle all these cases has been removed.

Unneeded VMS specific code for tempfile processing removed. The VMS CRTL maps /tmp to SYS$SCRATCH: if TMP: does not exist.

* makeint.h: Properly encode the Unix status as a VMS status code while setting the VMS severity and message inhibit bits. This allows programs written in C to see the documented and expected exit code, and sets the severity level for native VMS programs to use.

This fix also inhibits the incorrect display of additional error messages after the program has exited.


Attachment: 0001-VMS-argv-0-and-exit-status-fix.patch.gz
Description: application/gzip

reply via email to

[Prev in Thread] Current Thread [Next in Thread]