摘要: 在结构体内定义位,节省空间 结果 由于对齐原因,这里的struct依旧使用可4字节,通过#pragma pack(n)可以定义对齐的字节数 这里可以用bit代替bool,节省空间,在网络通信里还可以以此节约流量 阅读全文
posted @ 2018-01-27 11:43 _离水的鱼 阅读(827) 评论(0) 推荐(0)
摘要: 原型: sa_flag的参数 man手册里的 SA_NOCLDSTOP If signum is SIGCHLD, do not receive notification when child processes stop (i.e., when they receive one of SIGSTO 阅读全文
posted @ 2018-01-27 09:33 _离水的鱼 阅读(4006) 评论(0) 推荐(0)