Deutsch   English   Français   Italiano  
<vrftha$1uk74$1@dont-email.me>

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

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: C Error Number to Symbol
Date: Wed, 19 Mar 2025 22:11:53 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vrftha$1uk74$1@dont-email.me>
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>
 <9932e34fbff0d0fd76ac8813ec503aaa384c051e@i2pn2.org>
 <vrfhbm$1qo8e$1@dont-email.me>
 <c3b54dc6270f768ea24566f84553098f2a8f971b@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 20 Mar 2025 03:11:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0bbbb89189651aff4fe886147927a31a";
	logging-data="2052324"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19DG8LOSfsh0oSufwSyLEQDu+G8dAR9YBs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hdb7Lc1qWoLVL527hiKo0lGEc2Q=
Content-Language: en-US
In-Reply-To: <c3b54dc6270f768ea24566f84553098f2a8f971b@i2pn2.org>

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