Sujet : Re: C Error Number to Symbol
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 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