Re: normal users calling setpriority(2)

2008-04-08 Thread LI Xin
Aryeh M. Friedman wrote: Is it possible via sysctl or some other method to allow non-superusers to set any priority they want. The specific question is I often want to set idprio 31 on stuff but don't want to switch to root to do it (I am the only user on the machine). No if nobody implemen

Re: PERFORCE change 126033 for review

2007-09-04 Thread LI Xin
Hi, Hans, Hans Petter Selasky wrote: > Hi, > > In my opinion you should keep braces around single line if's . > > if (xxx) { >yyy; > } > > This will reduce the chance of error next time you add a statement to an if. I think I have some different understanding. My opinion is that with exce

Re: core dump hangs

2007-08-01 Thread LI Xin
Yong Rao wrote: > We use 4BSD (options SCHED_4BSD). Could you please try if setting debug.minidump=0 would help the situation? Cheers, -- Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/ FreeBSD - The Power to Serve! signature.asc Description: OpenPGP digital signature

Re: Is it possible to use IPv4 and IPv6 in a same jail?

2007-07-31 Thread LI Xin
Simon 'corecode' Schubert wrote: > Bjoern A. Zeeb wrote: >>> Is it possible to use IPv4 and IPv6 in a same jail? Or do I have to >>> write a listening daemon that acts as a "proxy" that runs in the host? >> >> jails do not (yet) support IPv6. I hope to be working on that again by >> the end of the

Is it possible to use IPv4 and IPv6 in a same jail?

2007-07-31 Thread LI Xin
Hi, Is it possible to use IPv4 and IPv6 in a same jail? Or do I have to write a listening daemon that acts as a "proxy" that runs in the host? Cheers, -- Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/ FreeBSD - The Power to Serve! signature.asc Description: OpenPGP digital signature

Re: add closefrom() call

2007-07-09 Thread LI Xin
Robert Watson wrote: > The Solaris implementation appears to implement two strategies: > > (1) If procfs is mounted, list the fd directory to get a list of open fds, > then close those by number. > > (2) If procfs is not mounted, query the number of open fds using the > resource > limit i

Re: add closefrom() call

2007-07-06 Thread LI Xin
Hi, Joerg Sonnenberger wrote: > On Wed, Jul 04, 2007 at 08:27:49PM -0400, Ighighi Ighighi wrote: >> The closefrom() call, available in Solaris, is present in NetBSD since >> version 3.0. >> It is implemented with the F_CLOSEM fcntl() available since version 2.0. > > You could also add a system ca

Re: add closefrom() call

2007-07-05 Thread LI Xin
Ighighi Ighighi wrote: > The closefrom() call, available in Solaris, is present in NetBSD since > version 3.0. > It is implemented with the F_CLOSEM fcntl() available since version 2.0. I think it might worth an effort (sendmail and perhaps some part of JDK uses it IIRC), but I do not want to rush

Re: Building 5.x binaries on 6.2-RELEASE

2007-05-14 Thread LI Xin
Brian Hourigan wrote: > I'm involved in some software development and we need to provide > precompiled binaries for FreeBSD 5.x from a 6.2-RELEASE system > > I checked through the documentation on the pointyhat package building > cluster, it mentions the machines run 7.0-CURRENT and produces binar

Re: Zombie Jails - why don't they disappear?

2007-02-21 Thread LI Xin
Josef Karthauser wrote: > I've got zombie jails on a freebsd 6.x box (currently 6.2). > There are no processes running under any of them, but they still appear > on the jail list: > > server# jls >JID IP Address Hostname Path > 2 xxx.xxx.1.234host1.domain

Re: sil3124 sata raid ...

2007-02-14 Thread LI Xin
Danny Braniss wrote: > Hi, > Just wondering if there is any planned support for this card (or similar) I've added sos@ to Cc list, who may have interest to this as well. Note that developing drivers requires that the developer has his hands on actual hardware and hardware specifications. Cheers,

Reading SPD information?

2007-01-29 Thread LI Xin
Hi, Just curious: is there any way to read RAM's SPD information on a running system? Cheers, -- Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/ FreeBSD - The Power to Serve! signature.asc Description: OpenPGP digital signature

Re: Where to start?

2007-01-20 Thread LI Xin
Eric Anderson wrote: > On 01/20/07 02:48, Mike Silbersack wrote: >> On Fri, 19 Jan 2007, Soeren Straarup wrote: >> >>> Hi >>> >>> I'm looking for a project. >>> Something that would actually be used. >>> >>> Preferely something with kernel and geom. >>> >>> I have looked over the project page, but

Re: Source code for user utilities

2007-01-15 Thread LI Xin
Pranav Sawargaonkar wrote: > Hi > Can any one tell me from where i can get source code of user level > utilities > (eg. ls, top etc.) Use 'which foo' to get the directory. Typically you can rely on the following map: /bin -> /usr/src/bin /sbin -> /usr/src/sbin /usr/bin -> /usr/src/usr.bin /usr/s

Re: [PATCH] make_libdeps.sh in -CURRENT

2006-11-24 Thread LI Xin
Michael Bushkov wrote: > Hello, > As far as I understand the src/tools/make_libdeps.sh logic, its current > version handles any library that uses bsd.own.mk header incorrectly, because > the "make -V LDADD" command always fails with "undefined MK_XXX variable". > > Small patch, that is attached

Re: [patch] rm can have undesired side-effects

2006-10-30 Thread LI Xin
Peter Jeremy wrote: > On Mon, 2006-Oct-30 19:38:49 +1100, Peter Jeremy wrote: >> the user is unaware that there are multiple links. I don't think >> that just unlinking the file and issuing a warning is a good solution >> because it's then virtually impossible to locate the other copy(s) >> of the

Re: [patch] rm can have undesired side-effects

2006-10-30 Thread LI Xin
Joerg Pernfuss wrote: > On Mon, 30 Oct 2006 19:38:49 +1100 > Peter Jeremy <[EMAIL PROTECTED]> wrote: > >> I agree. Doing "rm -P" on a file with multiple links suggests that >> the user is unaware that there are multiple links. I don't think >> that just unlinking the file and issuing a warning i

Re: [patch] rm can have undesired side-effects

2006-10-30 Thread LI Xin
Peter Jeremy wrote: > On Mon, 2006-Oct-30 03:32:09 +, Xin LI wrote: >> Be more reasonable when overwrite mode is specified while there >> is hard links. Overwritting when links > 1 would cause data >> loss, which is usually undesired. > > Another way of looking at it is that not overwritin

Re: [patch] rm can have undesired side-effects

2006-10-29 Thread LI Xin
Joerg Pernfuss wrote: > On Mon, 30 Oct 2006 02:43:58 +0100 > Joerg Pernfuss <[EMAIL PROTECTED]> wrote: > >> That would mean that `rm -P ' with having a link count of >> at least 2, would behave like `rm ' (and like Romain suggested). > > > Correction after some `read the frakkin code': > > if

Best practice for displaying license?

2006-10-25 Thread LI Xin
Hi, folks, I am thinking about whether we can use a better way to display license for a BSD licensed software. Currently I have copy and pasted the copyright as a static string constant, but that means that we have to duplicate the text, like this: static const char license[] = " * Copyright (c)

Call for testers: Replace GNU gzip with NetBSD's gzip implementation

2006-10-08 Thread LI Xin
Hi, Here is a patchset that replaces the GNU gzip with NetBSD's gzip implementation, which uses zlib to do actual compress/decompress operation: Go to your src/usr.bin and execute the following shar archive: http://people.freebsd.org/~delphij/for_review/bsd_gzip/shar-bsd-gzip-20061009 Then, go

Re: installkernel target.

2006-10-04 Thread LI Xin
Nikolay Pavlov wrote: > Hi, folks. > Is there any supported way to make installkernel directly to some > directory. I want to build two kernels (like /boot/kernel.SMP/ and > /boot/kernel.UP/) in my installation script and DESTDIR is quite useless > is this case. KODIR, see UPDATING. Cheers, --

Re: how to 'install' kernel.debug

2006-09-12 Thread LI Xin
Danny Braniss wrote: > Hi, > how can I convice make installkernel to also install > kernel.debug? > > thanks, > danny I think you will have kernel.symbols instead, if you run -CURRENT? Cheers, -- Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/ FreeBSD - The Pow

Re: integer divide fault while in kernel mode

2006-09-08 Thread LI Xin
chen wrote: > Hello all > i meet this > > -- > Fatal trap 18: integer divide fault while in kernel mode > instruction pointer = 0x20:0xc08100c3 > stact pointer = 0x28:0xc1020b30 > frame pointer = 0x28:0xc1020bb8 > code segment= base 0x0,

Re: The optimization of malloc(3): FreeBSD vs GNU libc

2006-08-14 Thread (LI Xin)
在 2006-08-15二的 02:38 +0300,Vladimir Kushnir写道: > On -CURENT amd64 (Athlon64 3000+, 512k L2 cache): > > With jemalloc (without MY_MALLOS): > ~/fdtd> /usr/bin/time ./fdtd.FreeBSD 500 500 1000 > ... > 116.34 real 113.69 user 0.00 sys > > With MY_MALLOC: > ~/fdtd> /usr/bin/time ./fd