ctplib/posixq.c used in ctp_proxy/main_ctp.c