Re: -lthr vs. -pthread

2004-06-19 Thread David Xu
libpthread default is M:N threading model, kernel thread entity is allocated on demand, things like sleep() only block thread in userland, no kernel thread will be allocated, so in your example, you won't see 5 kernel threads, only two threads are showed here, the extra thread is a signal thread,

Re: /bin/ls sorting bug?

2004-06-19 Thread Geert Hendrickx
> Don't you remember the initial UNIX concept to make miracles by small > things fired together? :) That's a very nice quote! Gonna answer that the next time someone asks me what UNIX is. :-) GH ___ [EMAIL PROTECTED] mailing list http://lists.freebs

-lthr vs. -pthread

2004-06-19 Thread Cyrille Lefevre
Hi, I'm currently working on enhancements to ps w/ "Garance A Drosehn". I've just added some thread related stuffs and to see them, I'm using the following program : #define _REENTRANT #include #define NUM_THREADS 5 #define SLEEP_TIME 10 void *sleeping(void *); pthread_t tid[NUM_THREADS]; int

Re: lkm i/o port allocation problems

2004-06-19 Thread M. Warner Losh
: /*I am trying to figure out how to port over an infrared reciever driver : from linux to freebsd. i have been reading the developers book, as well as the : source for sio/ep and several other char drivers that use i/o ports. i can't : seem to get my i/o port allocation to work. whenever i reque

Re: /bin/ls sorting bug?

2004-06-19 Thread Scott Mitchell
On Sat, Jun 19, 2004 at 10:06:01PM +0200, Dimitry Andric wrote: > > Looking through ls source shows that the sorting is done by passing a > comparison function to fts_open(3). In the case of sorting by > modification time, the *only* comparison made is of the mtime fields: You did see the patch

Re: /bin/ls sorting bug? - change it.

2004-06-19 Thread Garance A Drosihn
At 6:50 PM +0100 6/19/04, Scott Mitchell wrote: Is this intended behaviour? If so, the documentation is wrong. Otherwise, the attached patch produces the expected output. I can commit it if there are no objections. Your patch looks like a reasonable change to me. By definition, there can be no o

Re: /bin/ls sorting bug?

2004-06-19 Thread David Schultz
On Sat, Jun 19, 2004, Dimitry Andric wrote: > So, if these fields for two different files are exactly the same, the > resulting sorted list will have an undefined order for all other > fields. And AFAICS, there's no way to tell ls: "first sort on time, > then on filename, then on size", etc. This

Re: /bin/ls sorting bug?

2004-06-19 Thread Andriy Tkachuk
> And AFAICS, there's no way to tell ls: "first sort on time, > then on filename, then on size", etc. This would make a nice addition > though. :) But there is nice sort command and power of unix. Don't you remember the initial UNIX concept to make miracles by small things fired together? :) __

Re: quiet ATX mid-Towers

2004-06-19 Thread Liam J. Foy
On Sat, 19 Jun 2004 22:08:32 +0200 Jeremie Le Hen <[EMAIL PROTECTED]> wrote: > > Under a kind suggestion, I am re-submitting this > > e-mail with a different subject. The old message was: > > > > Hello, I am looking for a very quiet ATX mid-tower and > > I was wondering if anybody has a suggesti

Re: quiet ATX mid-Towers

2004-06-19 Thread Jeremie Le Hen
> Under a kind suggestion, I am re-submitting this > e-mail with a different subject. The old message was: > > Hello, I am looking for a very quiet ATX mid-tower and > I was wondering if anybody has a suggestion or > recommendation. My hard disks produce the most > decibels at the most annoying

Re: /bin/ls sorting bug?

2004-06-19 Thread Dimitry Andric
On 2004-06-19 at 21:35:45 Scott Mitchell wrote: > Sure (added -i to make it easier to see what's going on here): > (505) tuatara:/tmp/foo $ ls -iltT > total 0 > 35 -rw-rw-r-- 1 scott wheel 0 19 Jun 17:48:40 2004 c > 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 b > 11 -rw-rw-r-- 7 sco

Re: /bin/ls sorting bug?

2004-06-19 Thread Scott Mitchell
On Sat, Jun 19, 2004 at 11:47:21AM -0700, Tim Kientzle wrote: > Scott Mitchell wrote: > > > >ls(1) says that the -t option will: > > > > Sort by time modified (most recently modified first) before sort- > > ing the operands by lexicographical order. > > > >... the attached patch produces th

Re: /bin/ls sorting bug?

2004-06-19 Thread Scott Mitchell
On Sat, Jun 19, 2004 at 09:01:37PM +0200, Dimitry Andric wrote: > On 2004-06-19 at 19:50:07 Scott Mitchell wrote: > > > (562) tuatara:/tmp/foo $ ls -lt > > total 0 > > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:48 c > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 b > > -rw-rw-r-- 7 scott wheel 0 19

Re: dell wireless keyboard/mouse package

2004-06-19 Thread Luke
I have recently set up FreeBSD on a Dell Inspiron 4600 and the wireless keyboard/mouse package that came with it has had 2 issues so far: --The keyboard tends to repeat letters when I type rapidly, but they don't repeat next to each other insead, one character apart. example: I type "www.free

Re: /bin/ls sorting bug?

2004-06-19 Thread Dimitry Andric
On 2004-06-19 at 19:50:07 Scott Mitchell wrote: > (562) tuatara:/tmp/foo $ ls -lt > total 0 > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:48 c > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 b > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 d > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 e > -rw-rw-r-- 7 sc

Re: ipfw2 test utility

2004-06-19 Thread Viktor Ivanov
On Sat, 19 Jun 2004 19:20:37 +0300, Anton Alin-Adrian <[EMAIL PROTECTED]> wrote: > > See nemesistcp from ports. Isn't this a tool to generate packets, like ipsend(1) and iptest(1)? > > I doubt. Faster with logging & scripts. Do you mean ipfw's log option? If I wanted to see which rule number a

Re: /bin/ls sorting bug?

2004-06-19 Thread Tim Kientzle
Scott Mitchell wrote: ls(1) says that the -t option will: Sort by time modified (most recently modified first) before sort- ing the operands by lexicographical order. ... the attached patch produces the expected output. I can commit it if there are no objections. Looks good to me. I won

/bin/ls sorting bug?

2004-06-19 Thread Scott Mitchell
Hi all, ls(1) says that the -t option will: Sort by time modified (most recently modified first) before sort- ing the operands by lexicographical order. which I take to mean that items (in the same directory) with the same timestamp should be further sorted according to their names. U

Re: ipfw2 test utility

2004-06-19 Thread Anton Alin-Adrian
Viktor Ivanov wrote: Hello -hackers. I'm thinking about an utility to test a simple packet against the machine's firewall (ipfw2 to be more specific). I needed it because on some of my routers the configuration got complicated and the rule count is too high. And sometimes I need to see quickly what

Ntop 3.0 and Shared Library Problem

2004-06-19 Thread Cole
Hey Im running FreeBSD 4.9, and ive installed ntop-3.0 from Ports. Now ive had issues with this before, so i decided to remove any and all old packages, and all duplicate packages, and all dependencies that ntop has that were out of date. I then reconfigured and re-built and installed ntop from sc

Re: ipfw2 test utility

2004-06-19 Thread Bjoern A. Zeeb
On Sat, 19 Jun 2004, Viktor Ivanov wrote: > count is too high. And sometimes I need to see quickly what a > colleague have done to the firewall and why it's not working as > expected. use rcs or cvs for tracking changes -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT __

Re: TIME_WAIT sockets from other users (was Re: bin/65928: [PATCH] stock ftpd uses superuser credentials for active mode sockets)

2004-06-19 Thread Yar Tikhiy
On Sun, May 16, 2004 at 06:16:58PM +0400, Yar Tikhiy wrote in <[EMAIL PROTECTED]>: > Note for the impatient: This message does not discuss the well-known > issue of reusing local addresses through setting SO_REUSEADDR. This > message is on reusing local addresses occupied by sockets belonging

RE:lkm i/o port allocation problems

2004-06-19 Thread infamous42md
sorry, i used the wrong email addy to send that email, i've resent it using the correct one. -- -sean ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

lkm i/o port allocation problems

2004-06-19 Thread infamous42md
/*I am trying to figure out how to port over an infrared reciever driver from linux to freebsd. i have been reading the developers book, as well as the source for sio/ep and several other char drivers that use i/o ports. i can't seem to get my i/o port allocation to work. whenever i request the r

Re: quiet ATX mid-Towers

2004-06-19 Thread Les Biffle
> > Hello, I am looking for a very quiet ATX mid-tower and > > I was wondering if anybody has a suggestion or > > recommendation. My youngest son was on a crusade to find a silent case, and he found one that is absolutely amazing. It's the Sonata by ANTEC, and has a huge, slow case fan, and vibra

SPDIF capture device?

2004-06-19 Thread Ing.Richard Andrysek
Hi Richard, I've read your question about SPDIF capture device on freebsd. I am currently looking for similar device.Have you found such one? Can you access subcode etc.? by Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/li

Re: quiet ATX mid-Towers

2004-06-19 Thread Doug Rabson
On Friday 18 June 2004 15:39, zera holladay wrote: > Under a kind suggestion, I am re-submitting this > e-mail with a different subject. The old message was: > > Hello, I am looking for a very quiet ATX mid-tower and > I was wondering if anybody has a suggestion or > recommendation. My hard disks

Re: quiet ATX mid-Towers

2004-06-19 Thread Markie
- Original Message - From: "Dan Strick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 19, 2004 12:14 AM Subject: Re: quiet ATX mid-Towers | On Fri, 18 Jun 2004 07:39:25 -0700 (PDT), zera holladay wrote: | >> | > Hello, I am looking for a very qu

ipfw2 test utility

2004-06-19 Thread Viktor Ivanov
Hello -hackers. I'm thinking about an utility to test a simple packet against the machine's firewall (ipfw2 to be more specific). I needed it because on some of my routers the configuration got complicated and the rule count is too high. And sometimes I need to see quickly what a colleague have do

Re: dell wireless keyboard/mouse package

2004-06-19 Thread Paul Robinson
On Sat, Jun 19, 2004 at 01:52:13AM -0500, Daniel Fleming wrote: > I have recently set up FreeBSD on a Dell Inspiron 4600 and the wireless > keyboard/mouse package that came with it has had 2 issues so far: Which version of FreeBSD and where is your dmesg? And have you asked on -questions before

RE: quiet ATX mid-Towers

2004-06-19 Thread Rob MacGregor
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of zera holladay > > Hello, I am looking for a very quiet ATX mid-tower and > I was wondering if anybody has a suggestion or > recommendation. My hard disks produce the most > decibels at the most annoyi

dell wireless keyboard/mouse package

2004-06-19 Thread Daniel Fleming
I have recently set up FreeBSD on a Dell Inspiron 4600 and the wireless keyboard/mouse package that came with it has had 2 issues so far: --The keyboard tends to repeat letters when I type rapidly, but they don't repeat next to each other insead, one character apart. example: I type "www.freeb