Generic putpmsg.c.