Sujet : Re: C Error Number to Symbol
De : brown_mi (at) *nospam* decuserve.org (Michael Brown)
Groupes : comp.os.vmsDate : 19. Mar 2025, 23:06:04
Autres entêtes
Organisation : House Harris Software
Message-ID : <9932e34fbff0d0fd76ac8813ec503aaa384c051e@i2pn2.org>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
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