Can't you just read from /proc/pid/fd/0 ?
This was my first thought as well. I assume somehow I'm the dummy that doesn't understand the question.
OpenBSD does not have a /proc file system.
This was my first thought as well. I assume somehow I'm the dummy that doesn't understand the question.