Sujet : Re: C Error Number to Symbol
De : craigberry (at) *nospam* nospam.mac.com (Craig A. Berry)
Groupes : comp.os.vmsDate : 19. Mar 2025, 14:38:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrehcj$v11r$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
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.