Development

des@ on my gcc4 cleanup patchset

| Development

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

| Development

So I got this in libmsun’s bsdsrc :-)

参与评论

How to represent some type inherted from other template, in a C++ template class?

| Development

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);     } };


阅读全文…( 本文约 66 字,阅读大致需要 1 分钟 )

magic to build package on different FreeBSD versions

| Development

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.

阅读全文…( 本文约 201 字,阅读大致需要 1 分钟 )

终于搞定了GAIM!!

| Development

终于搞定了gaim,这东西总算能和MSN互相传文件了!!

参与评论

bind in FreeBSD-CURRENT upgraded to 9.3.1

| Development

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):

参与评论

eAccelerator

| Development

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’'.

阅读全文…( 本文约 96 字,阅读大致需要 1 分钟 )

第一次看到这么多自己做的改进进入了FreeBSD的Release Notes,感到很有成就感

| Development

最近 Bruce A. Mah[暂时还不清楚他的中文名字] 和 佐藤 広生(Hiroki Sato) 两个人在为 FreeBSD 5.4-RELEASE 的 Release Notes 做大量的前期准备。我注意到我所做的许多改进都被作为比较重要的变化写进了 Release Notes,感觉很有成就感。

参与评论

明天准备开始给tarsier装所需要的服务了

| Development

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

| Development

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:

阅读全文…( 本文约 105 字,阅读大致需要 1 分钟 )