madvise()
The madvise() system call allows applications to tell the kernel how it expects to use some mappe...
The madvise() system call allows applications to tell the kernel how it expects to use some mappe...
上周完成了澳洲5日游某七天酒店,睡一觉去机场香港机场,没有一个简体字,很不友好飞了15个小时,来不及休息,立即赶到会议地点。 第一次作为主持人,竟然不紧张开完会赶紧找酒店休息,已经连续1天多没睡...
装饰者模式可以动态地将责任附加到对象上,若上扩展功能,装饰者提供了比继承更有弹性的替代方案。装饰者模式的重要核心部件Component(抽象构件)具体构件和抽象装饰类的共同父类,声明了在具体构件...
线性哈希是一种动态扩展哈希表的方法,其“线性”的名字源于这种方法每次只扩展一个Bucket的容量。这种方法需要两个哈希函数。At any given point of time, this me...
In the man page of malloc, there(NOTES section) is a paragraph as follows:Normally, malloc() allo...
This article explains when we should use the qualifier explicit and when we shouldn't.Avoids unde...
While reading Advanced Programming in the UNIX Environment, I noticed this:#include FILE* fmemop...
这篇文章主要总结 Linux/C 下常用的捕捉错误信息的函数用法和一些注意事项,包括strerror()、perror()、ferror()0x01 strerror:返回错误原因的描述字符串#...
do{}while(0)有时可以方便地解决一些问题辅助定义复杂宏,避免引用时出错看下面这个宏:#define DO_SOME_WORK() \ func1(); \ func2(...