Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 263,341 of 264,096    |
|    Craig A. Berry to All    |
|    Re: cma$tis_errno_get_addr    |
|    15 Sep 25 21:39:28    |
      From: craigberry@nospam.mac.com              On 9/15/25 9:16 PM, Arne Vajhøj wrote:       > On 9/15/2025 10:15 PM, Arne Vajhøj wrote:       >> On 9/15/2025 9:49 PM, John Reagan wrote:       >>> On 9/15/2025 9:20 PM, Arne Vajhøj wrote:       >>>> Anybody got a description of cma$tis_errno_get_addr?       >>       >>> Returns the address of the thread's errno       >>       >> That was what I expected.       >>       >> But I am having problems.       >>       >> It actually works in C.       >>       >> But when I call it in Pascal, then I get the correct       >> address but the value at the address is not correct.       >       > Calling decc$crtl_init does not solve the problem.       >       Never tried it from Pascal. Since errno is a CRTL thing, it's not clear       to me that it makes any sense to do so, but if you're trying to debug a       library called from the Pascal code, maybe. In any case the following       are the notes I made for myself a long time ago:              Get errno from VMS debugger:              set image CMA$TIS_SHR       set radix hexadecimal       call CMA$TIS_ERRNO_GET_ADDR       !       ! The above returns an address       !       examine/long/decimal |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca