Deutsch   English   Français   Italiano  
<9932e34fbff0d0fd76ac8813ec503aaa384c051e@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Michael Brown <brown_mi@decuserve.org>
Newsgroups: comp.os.vms
Subject: Re: C Error Number to Symbol
Date: Thu, 20 Mar 2025 09:06:04 +1100
Organization: House Harris Software
Message-ID: <9932e34fbff0d0fd76ac8813ec503aaa384c051e@i2pn2.org>
References: <f96165dde75337ce16c809cf96d03a24216699a4@i2pn2.org>
 <vrefcn$tfpi$1@dont-email.me> <vrehcj$v11r$1@dont-email.me>
 <1ea0522d871af165039ec8dfef1f85f51d88f3bd@i2pn2.org>
 <vreq6a$16r1p$1@dont-email.me> <vrf1tr$1cg4c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Mar 2025 22:06:05 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="859720"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="GwTNKfv9ol/2gq1jYpHTGGj3rZP9lYPWWhlaSWafPM8";
User-Agent: Mozilla Thunderbird
In-Reply-To: <vrf1tr$1cg4c$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Content-Language: en-US
Bytes: 2348
Lines: 31

On 20/3/25 05:20, Arne Vajhøj wrote:
> On 3/19/2025 12:08 PM, Craig A. Berry wrote:
>> On 3/19/25 9:29 AM, Michael Brown wrote:
>>> On 20/3/25 00:38, Craig A. Berry wrote:
>>>> I _think_ what he wants is some kind of translation table between errno
>>>> values and VMS condition codes.  For example, starting with errno of
>>>> ESRCH and getting to RMS$_RNF or vice versa.  I'm not aware of any such
>>>> table, and if there were, it wouldn't be a one-to-one  mapping.
>>>
>>> yes if I get a return status of 98994 I would like to be able to look 
>>> it up and get "RMS$_RNF" to output that in my error handling routine.
>>
>> No, I guessed wrong.  You are not dealing with errno at all but rather
>> VMS condition code to message lookup, which, as you've now discovered,
>> has already been fully answered.
> 
> I was starting to think that it was about translating from
> numeric value to symbolic name, which is a weird one.
> 
> $ run moremsgfun
> 98962 = RMS$_FNF
> 
> Arne
> 

This is exactly what I intended with the original post, so this pas 
source is very interesting to me.

-- 
House Harris Software.
Making the world a safer place for our products.
https://eisner.decus.org/~brown_mi