Re: C Error Number to Symbol

Liste des GroupesRevenir à co vms 
Sujet : Re: C Error Number to Symbol
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 19. Mar 2025, 23:44:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrfhbm$1qo8e$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 3/19/2025 6:06 PM, Michael Brown wrote:
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
 This is exactly what I intended with the original post, so this pas source is very interesting to me.
It is just two lib$sys_getmsg calls with flags to get
facility and identity and then it is cross fingers and
hope the symbolic name follow convention of facility$_identity.
Arne

Date Sujet#  Auteur
19 Mar 25 * C Error Number to Symbol16Michael Brown
19 Mar 25 +* Re: C Error Number to Symbol14Simon Clubley
19 Mar 25 i+* Re: C Error Number to Symbol8Craig A. Berry
19 Mar 25 ii`* Re: C Error Number to Symbol7Michael Brown
19 Mar 25 ii `* Re: C Error Number to Symbol6Craig A. Berry
19 Mar 25 ii  `* Re: C Error Number to Symbol5Arne Vajhøj
19 Mar 25 ii   `* Re: C Error Number to Symbol4Michael Brown
19 Mar 25 ii    `* Re: C Error Number to Symbol3Arne Vajhøj
20 Mar 25 ii     `* Re: C Error Number to Symbol2Michael Brown
20 Mar 25 ii      `- Re: C Error Number to Symbol1Arne Vajhøj
19 Mar 25 i`* Re: C Error Number to Symbol5Michael Brown
19 Mar 25 i +* Re: C Error Number to Symbol2Chris Townley
19 Mar 25 i i`- Re: C Error Number to Symbol1Michael Brown
19 Mar 25 i `* Re: C Error Number to Symbol2Robert A. Brooks
20 Mar 25 i  `- Re: C Error Number to Symbol1Michael Brown
19 Mar 25 `- Re: C Error Number to Symbol1Stephen Hoffman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal