摘要: 管道和FIFO是字节流,没有消息边界。1. Posix 消息队列/* mq_open - open a message queue */#include /* For O_* constants */#include /* For mode constants ... 阅读全文
posted @ 2015-07-01 15:28 xiaokuang 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 1. /* round up for aligment */#define round_up(x, aligment) ((((x) + ((aligment) - 1)) / (aligment) ) * (aligment))round_up(7, 5) = 102. 取负数,再进行模运算 (... 阅读全文
posted @ 2015-07-01 10:52 xiaokuang 阅读(234) 评论(0) 推荐(0) 编辑