shmemget(2) would be a more-or-less direct replacement.

really converting it would require using the thread library and send and recv
or another mechanism.  using a shared memory segment for the console state
doesn't feel right to me.

- erik

Reply via email to