<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 19, 2019, at 2:04 PM, Jeremy Shoemaker <<a href="mailto:jeremy@codingkoi.com">jeremy@codingkoi.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div dir="ltr">> One suggestion: use %get-signed-long to read out a few bytes of memory
at the location reported by (external "getpid”) and then write a little C
program that does the same thing and see if you get the same result.</div><div dir="ltr"><br></div><div>I'm not sure I entirely follow, at least the C program part. Are you suggesting peeking at the memory pointed to by the `getpid` function in C?</div></div></blockquote><div><br></div><div>Yes. Exactly.</div><br><blockquote type="cite"><div dir="ltr"><div> I'm not quite sure how to do that, but my C is pretty rusty.<br></div></div></blockquote><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">#include <unistd.h></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">#include <stdio.h></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; min-height: 14px;"><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">int main() {</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> unsigned int *p = (unsigned int *)getpid;</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> for (int i=0; i<16; i++) printf("%x ", *(p+i));</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">}</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><br></div></div></div></body></html>