Add prototypes for msg_open(), msg_close()