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 : 20. Mar 2025, 03:11:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrftha$1uk74$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 3/19/2025 9:54 PM, Michael Brown wrote:
On 20/3/25 09:44, Arne Vajhøj wrote:
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.
 Yes I see, I would have never known about the effect of the flag field and would have plowed ahead and broken down the default message with strtok to get what I wanted. This is far more efficient. It will certainly work for all the RMS return codes so that's mainly what I need.
Note that all this is to get the name as a string at runtime
to get the name at development time one can just do:
$ libr/text/extr=rmsdef/out=rmsdef.h sys$library:sys$starlet_c
$ sear rmsdef.h 98962
#define RMS$_FNF 98962
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