Use getmsg()/putmsg() instead of read()/write() on Solaris.