cdcontrol(1) speed command

2002-04-05 Thread Maxim Konovalov
Hello, Here is a patch for cdcontrol(1) to allow set maximum CD drive speed. It comes from kern/35512. Are there any comments/objections? Index: cdcontrol.1 === RCS file: /home/ncvs/src/usr.sbin/cdcontrol/cdcontrol.1,v retrieving r

Re: cdcontrol(1) speed command

2002-04-05 Thread Philipp Mergenthaler
In article <[EMAIL PROTECTED]> you wrote: > Here is a patch for cdcontrol(1) to allow set maximum CD drive speed. > It comes from kern/35512. Are there any comments/objections? > Index: cdcontrol.1 > === > RCS file: /home/ncvs/src/

Perl thing

2002-04-05 Thread Ilia Chipitsine
Dear Sirs, Perl has very useful "split" function, it "split"s a string according arbitrary regular expression. Is there's such a C function ? I'm moving few programs from Perl to C. Regards, (îÁÉÌÕÞÛÉÅ ÐÏÖÅÌÁÎÉÑ) Ilia Chipitsine (éÌØÑ ûÉÐÉÃÉÎ) To Unsubscribe: send mail to [EMAIL PROTECTED] wit

Re: Fatal trap 12: page fault while in kernel mode

2002-04-05 Thread Andrew Gallatin
Bruce A. Mah writes: > > I was discussing this with some of my cow-orkers, as we've had a similar > situation (cluster mbufs getting temporarily depleted on a > 4.5-RELEASE-p2 NFS server with Linux and FreeBSD clients, but no kernel > panics). Shouldn't the net.inet.ip.maxfragpackets sysct

Re: cdcontrol(1) speed command

2002-04-05 Thread Søren Schmidt
It seems Philipp Mergenthaler wrote: > > @@ -24,6 +24,7 @@ > > #endif /* not lint */ > > > #include > > +#include > > Jörg Wunsch commented that adding "include " would be > wrong and that this ioctl should be moved to sys/cdio.h instead. > (I guess then it should be renamed to CDIOCREADSPEE

Re: Perl thing

2002-04-05 Thread Bernd Walter
On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote: > Dear Sirs, > > Perl has very useful "split" function, it "split"s a string according > arbitrary regular expression. Is there's such a C function ? > I'm moving few programs from Perl to C. strsep(3) Especially the exmaple in the

Re: Perl thing

2002-04-05 Thread Ilia Chipitsine
Salut, Bernd Walter ! On Fri, 5 Apr 2002, Bernd Walter wrote: > On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote: > > Dear Sirs, > > > > Perl has very useful "split" function, it "split"s a string according > > arbitrary regular expression. Is there's such a C function ? > > I

Re: Perl thing

2002-04-05 Thread Garrett Rooney
On Fri, Apr 05, 2002 at 09:14:46PM +0600, Ilia Chipitsine wrote: > Salut, Bernd Walter ! > > > On Fri, 5 Apr 2002, Bernd Walter wrote: > > > On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote: > > > Dear Sirs, > > > > > > Perl has very useful "split" function, it "split"s a stri

Re: Perl thing

2002-04-05 Thread Paul Everlund
Ilia Chipitsine wrote: > > Salut, Bernd Walter ! > > On Fri, 5 Apr 2002, Bernd Walter wrote: > > > On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote: > > > Dear Sirs, > > > > > > Perl has very useful "split" function, it "split"s a string according > > > arbitrary regular expressi

Re: cdcontrol(1) speed command

2002-04-05 Thread Dan Nelson
In the last episode (Apr 05), Maxim Konovalov said: > > Hello, > > Here is a patch for cdcontrol(1) to allow set maximum CD drive speed. > It comes from kern/35512. Are there any comments/objections? > > Index: cdcontrol.1 ... > +.It Cm speed Ar s > +Set the highest speed that the drive should

Re: cdcontrol(1) speed command

2002-04-05 Thread Terry Lambert
Philipp Mergenthaler wrote: > > +.It Cm speed Ar s > > +Set the highest speed that the drive should use. This command is currently > > +only supported on ATAPI drives. > > Maybe we should mention the unit for speed here, i.e. "kB/s" or > "multiples of single speed", but that depends on whether ke

Re: Fatal trap 12: page fault while in kernel mode

2002-04-05 Thread Terry Lambert
Andrew Gallatin wrote: > The problem is that ip_maxfragpackets is: > "Maximum number of IPv4 fragment reassembly queue entries" > > You (& I, & most people probably) took that number to mean the cap on > the number of mbufs sitting on reassembly queues. However, its really > a cap on the number

Re: Fatal trap 12: page fault while in kernel mode

2002-04-05 Thread Andrew Gallatin
Terry Lambert writes: > Andrew Gallatin wrote: > > The problem is that ip_maxfragpackets is: > > "Maximum number of IPv4 fragment reassembly queue entries" > > > > You (& I, & most people probably) took that number to mean the cap on > > the number of mbufs sitting on reassembly queues. H

Re: read a file from a driver

2002-04-05 Thread Michael Smith
> For drivers which must be active in the boot path, it is > generally necessary to embed the firmware in the driver as > data. This is what FreeBSD does for the Adaptec SCSI > drivers. > > For drivers that need to be active after boot time, but before > the mi_startup() is complete, you can loa

Re: Junior Kernel Task: syscons screensavers

2002-04-05 Thread Coleman Kane
Or maybe make it only come out of screensaver if there is a console message (i.e.: kernel messages, etc...), but stay there during tty activity. -- coleman On Fri, Apr 05, 2002 at 12:18:28AM -0800, Alfred Perlstein wrote: > Can someone (for the love of god) make it an option for the > syscons sc

64-bit compiling on a 32-bit FreeBSD machine

2002-04-05 Thread Jason Borkowsky
I have a FreeBSD 4.5-RELEASE box that I recently installed gcc-3.0.4. Is there any support for compiling 64-bit source code on this 32-bit set-up? (ie, a sort of emulation mode in that if the compiler sees a "long long int", it creates 2 32-bit registers for it instead of a 64-bit register). Curr

Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alessandro de Manzano
Hello! Well, the subj says more or less all.. ;-) On 4.x-STABLE systems, a kernel compiled with "options DDB" and "makeoptions DEBUG=-g" is, at execution, slower than one compiled without that two settings ? Or is it "only" bigger on disk and, maybe, in memory ? I ask you this because I'm evalu

Re: Junior Kernel Task: syscons screensavers

2002-04-05 Thread Alfred Perlstein
* Coleman Kane <[EMAIL PROTECTED]> [020405 11:06] wrote: > Or maybe make it only come out of screensaver if there is a console > message (i.e.: kernel messages, etc...), but stay there during tty > activity. That would be nice also, but I'm more interested in having the screen saver work like a r

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alfred Perlstein
* Alessandro de Manzano <[EMAIL PROTECTED]> [020405 11:57] wrote: > Hello! > > Well, the subj says more or less all.. ;-) > > On 4.x-STABLE systems, a kernel compiled with "options DDB" and > "makeoptions DEBUG=-g" is, at execution, slower than one compiled > without that two settings ? > Or is

Re: 64-bit compiling on a 32-bit FreeBSD machine

2002-04-05 Thread Rayson Ho
This is gcc question, you can also try [EMAIL PROTECTED] main() { long long ll; ll = 1234567890123456LL; printf("%lld\n", ll); } % ./a.out 1234567890123456 I looked at the assembly dump, it looks OK: main: pushl %ebp movl %esp,%ebp subl $8,%esp movl $101572

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alessandro de Manzano
On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: Wow, thanks for the super-fast answer! :)) > > on my production servers' kernel so in the very rare case of crash I'll > > got a crash dump ( I'ld use also options DDB_UNATTENDED) and could > > immediately have a backtrace report

Re: 64-bit compiling on a 32-bit FreeBSD machine

2002-04-05 Thread Bernd Walter
On Fri, Apr 05, 2002 at 02:36:41PM -0500, Jason Borkowsky wrote: > > I have a FreeBSD 4.5-RELEASE box that I recently installed gcc-3.0.4. Is > there any support for compiling 64-bit source code on this 32-bit set-up? > (ie, a sort of emulation mode in that if the compiler sees a "long long > int

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alfred Perlstein
* Alessandro de Manzano <[EMAIL PROTECTED]> [020405 12:08] wrote: > On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: > > Wow, thanks for the super-fast answer! :)) > > > > > on my production servers' kernel so in the very rare case of crash I'll > > > got a crash dump ( I'ld us

syscons screensaver

2002-04-05 Thread Olivier Houchard
Hi, Here is a small patch to re-add the hw.syscons.saver.timeout using SYSCTL_PROC as suggested by jhb. It adds a CONS_SAVER_KBD_ONLY ioctl too that does the same that the hw.syscons.saver.keybonly. --- /sys/dev/syscons/syscons.c Fri Apr 5 20:17:49 2002 +++ /root/syscons.c Fri Apr 5

Re: 64-bit compiling on a 32-bit FreeBSD machine

2002-04-05 Thread Jason Borkowsky
Thanks for the answer. I thought this was a FreeBSD gcc interaction question, but it turns out it was just a coding question. Thanks though! > This is gcc question, you can also try [EMAIL PROTECTED] > > main() > { > long long ll; > ll = 1234567890123456LL; > printf("%lld\n", ll); > } > >

IP fragmentation (was Re: Fatal trap 12: page fault while in kernel mode)

2002-04-05 Thread Bruce A. Mah
[Moving to -net] If memory serves me right, Andrew Gallatin wrote: > > Alternately, it would be a good idea to have a "ip_maxpacketfrags" > > instead of an "ip_maxfragpackets", to put a hard limit on the > > number of mbufs that can be consumed by the fragment reassembly > > process. > > I

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Doug White
On Fri, 5 Apr 2002, Alessandro de Manzano wrote: > On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: > > Wow, thanks for the super-fast answer! :)) > > > > > on my production servers' kernel so in the very rare case of crash I'll > > > got a crash dump ( I'ld use also options DDB_

Re: read a file from a driver

2002-04-05 Thread Terry Lambert
Michael Smith wrote: > > For drivers which must be active in the boot path, it is > > generally necessary to embed the firmware in the driver as > > data. This is what FreeBSD does for the Adaptec SCSI > > drivers. > > > > For drivers that need to be active after boot time, but before > > the mi_

make world .depend error?

2002-04-05 Thread Anthony Schneider
system: 4.2-release, generic kernel src tree: -stable via cvsup, 4.5-release via sysinstall...same problem: snip ===> gnu/usr.bin/binutils/gdbserver ".depend", line 23: Need an operator ".depend", line 282: Need an operator make: fatal errors encountered -- cannot continue *** Error code

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Greg 'groggy' Lehey
On Friday, 5 April 2002 at 14:18:38 -0800, Doug White wrote: > On Fri, 5 Apr 2002, Alessandro de Manzano wrote: > >> On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: >> >> Wow, thanks for the super-fast answer! :)) >> >> on my production servers' kernel so in the very rare c

Re: syscons screensaver

2002-04-05 Thread Jonathan Mini
Nice. Perhaps it might be better to make an ioctl/sysctl that took a list of the types of activity to wake on (e.g. tty output, kernel print, writes to dev console, mouse movement, and keypress). Olivier Houchard [[EMAIL PROTECTED]] wrote : > Hi, > Here is a small patch to re-add the hw.syscon