Development
des@ on my gcc4 cleanup patchset
Apparantly des@ has pointed out a serious problem with my patchset, say, the inconsistency of underlying API is the root of evil(tm), and should be corrected.
Let’s go go go!
参与评论#define TRUNC(x) *(((int *) &x) + endian) &= 0xf8000000
So I got this in libmsun’s bsdsrc :-)
参与评论How to represent some type inherted from other template, in a C++ template class?
It’s not quite easy to represent a type that is found in base “template class”. Consider the following code:
template <class Key,class T> class CMyClass: public map<Key,T> { public: void lookup(Key x) { map<Key,T>::iterator iter; iter = find(x); } };
阅读全文…
magic to build package on different FreeBSD versions
Sometimes you may need to build some packages for older/newer versions of FreeBSD. That is simple if you use jail and other mechanisms.
In order to be successful, you need a “Full jail” say ordinary jail, installed with binary that is built from the target version of FreeBSD. For instance, build a 6.0 userland by sync’ing code to -HEAD.
Secondly, you need to replace two files in the jail: uname(1) and sysctl(1). What you have to do is to use sed to replace both FreeBSD version and __FreeBSDVersion (say, kern.osreldate), according to porters’ handbook.
阅读全文…终于搞定了GAIM!!
终于搞定了gaim,这东西总算能和MSN互相传文件了!!
参与评论bind in FreeBSD-CURRENT upgraded to 9.3.1
As title. We *need* to struggle to make the upcoming 6.0-RELEASE a good release . I hope we can show the great improvements taken place in 6-CURRENT and hopefully we can cut 6-STABLE this June.
Highlights on recent 6-CURRENT that was not merged (and may never be merged):
- MPSAFE VFS
 - Integrated VFS hashing (generallized, traditionally it’s different on ufs, msdosfs, etc)
 - 64bit-ize of several utilities, to ensure better usage of large storage.
 
eAccelerator
A GPL’ed (say, it’s not OpenSource, but the source code is available publicly) PHP accelerator has been evaluated at lab, which is called eAccelerator. I should adjust my claim that this sort of application is not useful.
During my test, the accelerator has improved the TPS by about 50%, and is quite impressive.
In order to install this on FreeBSd, you should have installed PHP from ports, and go to www/eaccelerator and ``make install’'.
阅读全文…第一次看到这么多自己做的改进进入了FreeBSD的Release Notes,感到很有成就感
最近 Bruce A. Mah[暂时还不清楚他的中文名字] 和 佐藤 広生(Hiroki Sato) 两个人在为 FreeBSD 5.4-RELEASE 的 Release Notes 做大量的前期准备。我注意到我所做的许多改进都被作为比较重要的变化写进了 Release Notes,感觉很有成就感。
参与评论明天准备开始给tarsier装所需要的服务了
tarsier的配置如下:
Pentium 4 3.0E
1G RAM
250G ATA * 2
tarsier将是我的第一个非职务管理的、同时又使用了jail service的FreeBSD服务器。tarsier上将采用我所提出的fast jail技术。
参与评论About integrating my WARNS=6 cleanups to FreeBSD tree
I started the work almost four months ago, but I have lost all my work last month. Therefore, I’m trying to integrate as much as possible whenever possible. The current workflow is:
- Bump WARNS
 - Fix errors
 - Testdrive on almost all T1 platform I can touch
 - Commit