函数指针
今天在改rtld-elf的时候发现,它定义了一个函数指针数组,其内容是参数不定的,于是定义为:
typedef void (*func_ptr)();
然而,在较高的警告级别下,这一写法会被gcc认为不是prototype。
共691篇文章。
今天在改rtld-elf的时候发现,它定义了一个函数指针数组,其内容是参数不定的,于是定义为:
typedef void (*func_ptr)();
然而,在较高的警告级别下,这一写法会被gcc认为不是prototype。
总有一天把它重写了……想知道为什么:
cd /usr/src/usr.sbin/pkg_install && make WARNS=6
新影联网站 (http://www.beijingfilm.net/index.php) 几乎所有的页面都会弹出:「建议您使用微软的IE 6.0浏览器,以便您可以更好地使用本站的强大功能!」的alert,而原因则是我使用的浏览器是Firefox,而操作系统则是FreeBSD。
经过近4年的努力,目前 FreeBSD 中文计划已经完成了《FreeBSD使用手册》、《FreeBSD Porter手册》的翻译,并在持续不断地加以完善并更新其内容。为了进一步改善其翻译质量,我个人一直希望将这本手册打印出来做一次比较全面的校对。
By Poul-Henning Kamp Message ID: 74895.1150621318@critter.freebsd.dk on freebsd-current@freebsd.org
By applying an ill-advised methodology developed by inferior minds in the 1980ies to deal with incompatible operating systems from narrowminded vendors, AutoCrap[tm] is guaranteed to turn even the most portable source code into a unportable mess.
AutoCrap[tm] employs a plethora of checks for features no longer in existence on any running operating system, even if your software package does not actually come close to using that feature.
Ruslan Ermilov, a very active FreeBSD committer has recently told us that his wife is in very bad ill and that would cost a lot of money. He would like to get some financial help.
Please consider to donate. Needless to say how he is important for the FreeBSD project, From Peter Wemm (the CVS repository meister)’s statistics, he got the #2 rank of the number of commits in the src/ tree (without the kernel). He is also very active in the networking related stuff of the kernel.
今天 David Xu commit了他的新调度器(SCHED_CORE),这个调度器基于ULE调度器,但改变了一系列算法。打算抽时间好好看一看代码。
OpenBSD实现了与FreeBSD不同的timeout功能。今天hack CARP的时候用到了,留个记号。
我并不反对使用微软的产品,但是总不能写两行字,不带排版也要拿Word发吧,我觉得没有什么比在FreeBSD下收到一封包含doc文档更为讨厌的事情了,保存成rtf或者pdf不会死人,简单的东西保存成TXT不就行了?
无语。谁能帮忙联系一下有关部门?