摘要:
管道和FIFO是字节流,没有消息边界。1. Posix 消息队列/* mq_open - open a message queue */#include /* For O_* constants */#include /* For mode constants ... 阅读全文
摘要:
1. /* round up for aligment */#define round_up(x, aligment) ((((x) + ((aligment) - 1)) / (aligment) ) * (aligment))round_up(7, 5) = 102. 取负数,再进行模运算 (... 阅读全文