| Deutsch English Français Italiano |
|
<vrehcj$v11r$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "Craig A. Berry" <craigberry@nospam.mac.com> Newsgroups: comp.os.vms Subject: Re: C Error Number to Symbol Date: Wed, 19 Mar 2025 08:38:27 -0500 Organization: A noiseless patient Spider Lines: 20 Message-ID: <vrehcj$v11r$1@dont-email.me> References: <f96165dde75337ce16c809cf96d03a24216699a4@i2pn2.org> <vrefcn$tfpi$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 19 Mar 2025 14:38:28 +0100 (CET) Injection-Info: dont-email.me; posting-host="259e26e149ff95c6c3da53b8550b761a"; logging-data="1016891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lrkqRuhE0suRJaCPgPGESQ4Nz7jBs+2c=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:OS6tSW07xU90zVBGo6wi9inUDTY= In-Reply-To: <vrefcn$tfpi$1@dont-email.me> Content-Language: en-US Bytes: 1978 On 3/19/25 8:04 AM, Simon Clubley wrote: > On 2025-03-18, Michael Brown <brown_mi@decuserve.org> wrote: >> >> This might be a very simple question but I can't find any reference to >> it on the net. >> >> Working in C, how do you get the RMS$_CODE symbol for any given error >> number as returned from any operation? I use strerror() to get an >> interpretation but it does not include said symbol. >> >> exit(rms_return_number); will print it out so I know it must be possible. >> > > Can you explain what was missing in the previous answers you received > so the authors of those answers can clarify them if needed ? 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.