Leaving this here as comments on that blog seem broken. TL;DR: access(2) is a bit more lightweight than write(2) for this purpose. Consider the following (from memory, untested): word_t peek(word_t addr, int success) {…
Leaving this here as comments on that blog seem broken. TL;DR: access(2) is a bit more lightweight than write(2) for this purpose. Consider the following (from memory, untested): word_t peek(word_t addr, int success) {…