Re: Cross builds and upgrade path from 4.x are broken in usr.bin/file

2001-08-15 Thread Ruslan Ermilov
On Wed, Aug 15, 2001 at 12:40:19PM +1000, Bruce Evans wrote: [...] +mkmagic: apprentice.c print-hacked.c + ${HOST_CC} -o mkmagic -DHAVE_CONFIG_H -DCOMPILE_ONLY \ + -I${.CURDIR} -I${SRCDIR} ${.ALLSRC} Whoa, cool! That's what I wanted from the very beginning

Re: Cross builds and upgrade path from 4.x are broken in usr.bin/file

2001-08-15 Thread Bruce Evans
On Wed, 15 Aug 2001, Ruslan Ermilov wrote: On Wed, Aug 15, 2001 at 12:40:19PM +1000, Bruce Evans wrote: I agree (except the build-tools concept is a hack to work around build-tools binaries not being buildable and installable in the usual way (with 1 binary per Makefile)). It seems

CFR: lseek() POSIXed patch

2001-08-15 Thread Andrey A. Chernov
Here it is what POSIX says about lseek(): [EINVAL] The whence argument is not a proper value, or the resulting file offset would be negative for a regular file, block special file, or directory. [EOVERFLOW] The resulting file offset would be a value which cannot be represented correctly

psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Kazutaka YOKOTA
Ok, I am back. There are so many issues to be explained and discussed. I will tackle them one by one - Flags 0x8000 for psm and out-of-sync error As many people want to make it default, and my initial intent to make it an option didn't work out well as a hindsight, we had better make it

Re: FreeBSD's aggressive keyboard probe/attach

2001-08-15 Thread Mike Smith
[Terry blathers] Surprisingly, setting vidconsole in the SRM didn't make my TGA work in FreeBSD. 8-p. 'vidconsole' is the x86 loader console driver. Under SRM, there are no console options (because the platform doesn't give you any). -- ... every activity meets with opposition,

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Andrew Kenneth Milton
+---[ Poul-Henning Kamp ]-- | In message [EMAIL PROTECTED], Andrew Kenneth Milton | writes: | +---[ Greg Lehey ]-- | | | | [snip] | | | whether it's been fixed. Basically, devfs as supplied in CURRENT had | | a 16 character limit on device

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Andrew Kenneth Milton writes: The problem turns up most violently within the XFree86 DRI Module, since it now uses make_dev, and not mknod as it used to. The DRI Module first attempts to mkdir /dev/dri/, and then for each card it supports attempts to use

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Andrew Kenneth Milton
+---[ Poul-Henning Kamp ]-- | In message [EMAIL PROTECTED], Andrew Kenneth Milton | writes: | | The problem turns up most violently within the XFree86 DRI Module, since | it now uses make_dev, and not mknod as it used to. | | The DRI Module first attempts to mkdir

Re: CFR: lseek() POSIXed patch

2001-08-15 Thread Bruce Evans
On Wed, 15 Aug 2001, Andrey A. Chernov wrote: The patch below adds both cases, i.e. disallow negative seeks for VREG, VDIR, VBLK and add off_t overflow checks. I plan to commit this, please review. --- vfs_syscalls.c.oldWed Aug 15 04:45:30 2001 +++ vfs_syscalls.cWed Aug 15

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Andrew Kenneth Milton writes: +---[ Poul-Henning Kamp ]-- | In message [EMAIL PROTECTED], Andrew Kenneth Milton | writes: | | The problem turns up most violently within the XFree86 DRI Module, since | it now uses make_dev, and not mknod as

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Michael Lucas
On Wed, Aug 15, 2001 at 10:21:39AM +0930, Greg Lehey wrote: On Tuesday, 14 August 2001 at 19:26:09 -0400, Michael Lucas wrote: Before I start generating crash dumps etc., are there any gotchas with Vinum -current? I'm using devfs on a SMP system, upgraded 3 days ago. I get a panic

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Andrew Kenneth Milton
+---[ Poul-Henning Kamp ]-- | In message [EMAIL PROTECTED], Andrew Kenneth Milton | writes: | +---[ Poul-Henning Kamp ]-- | | In message [EMAIL PROTECTED], Andrew Kenneth Milton | | writes: | | | | The problem turns up most violently within the

Re: CFR: lseek() POSIXed patch

2001-08-15 Thread Andrey A. Chernov
On Wed, Aug 15, 2001 at 20:15:21 +1000, Bruce Evans wrote: Something like: #define OFF_T_MAX 0x7FFF /* XXX */ #define OFF_T_MIN (-0x7FFF - 1) /* XXX */ It seems that this defines often needed in many places. What about

Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Warner Losh
In message [EMAIL PROTECTED] Kazutaka YOKOTA writes: : Anyway, I am now considering the following experiment. : : - We make the psm driver count the number of the out-of-sync errors. : - When the error is detected for the first time, the psm driver will : throw few data bytes (up to entire

Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Louis A. Mamakos
Does it make sense to have a timeout (or perhaps just timestamps) in the driver, so that after some period of inactivity, you know that the next byte from the moust is the first of a multi-byte message? louie To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in

Big telnet commit coming!

2001-08-15 Thread Mark Murray
Hi all I have a big commit planned for telnet(d). You can see it at http://people.freebsd.org/~markm/patches/diff.cvs.gz The main aims of the patch are to reduce the number of warnings telnet(d) emits during compilation, and to properly merge the differences between the base telnet and the

Re: FreeBSD's aggressive keyboard probe/attach

2001-08-15 Thread John Baldwin
On 15-Aug-01 Mike Smith wrote: [Terry blathers] Surprisingly, setting vidconsole in the SRM didn't make my TGA work in FreeBSD. 8-p. 'vidconsole' is the x86 loader console driver. Under SRM, there are no console options (because the platform doesn't give you any). Errr, there is a

Sound broken on -current again...

2001-08-15 Thread Søren Schmidt
One gets the first DMA buffer full, then the process hangs... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Julian Elischer
the lack of subdirectory support is a pitty. it was a primary design goal in the previous devfs and its disappearance caught me by surprise. (the support I mean) On Wed, 15 Aug 2001, Andrew Kenneth Milton wrote: +---[ Poul-Henning Kamp ]-- | In message [EMAIL

Re: FreeBSD's aggressive keyboard probe/attach

2001-08-15 Thread Mike Smith
On 15-Aug-01 Mike Smith wrote: [Terry blathers] Surprisingly, setting vidconsole in the SRM didn't make my TGA work in FreeBSD. 8-p. 'vidconsole' is the x86 loader console driver. Under SRM, there are no console options (because the platform doesn't give you any). Errr,

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Ju lian Elischer writes: the lack of subdirectory support is a pitty. There is support for subdirectories: ls -la /dev/fd it was a primary design goal in the previous devfs and its disappearance caught me by surprise. (the support I mean) SATIRE The

Re: FreeBSD's aggressive keyboard probe/attach

2001-08-15 Thread John Baldwin
On 15-Aug-01 Mike Smith wrote: On 15-Aug-01 Mike Smith wrote: [Terry blathers] Surprisingly, setting vidconsole in the SRM didn't make my TGA work in FreeBSD. 8-p. 'vidconsole' is the x86 loader console driver. Under SRM, there are no console options (because the platform

psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Joe Kelsey
Kazutaka YOKOTA writes: Anyway, I am now considering the following experiment. - We make the psm driver count the number of the out-of-sync errors. - When the error is detected for the first time, the psm driver will throw few data bytes (up to entire packet size) and see if it can

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread Michael Lucas
On Wed, Aug 15, 2001 at 10:21:39AM +0930, Greg Lehey wrote: To help localize this problem, could you please try this same thing on a kernel without devfs? The dump you sent me did not look like a Vinum bug, as I said in my reply. Sorry, it happens on a non-devfs kernel as well. Since it

Kernel stack hogs list available

2001-08-15 Thread Julian Elischer
I ported the code to allow gcc to report functions that use too much of our 3.4KB kernel stacks. I tried it ou ton a compile of GENERIC. it produced some 360 functions that allocate over 100 bytes on the stack. The list is available at: http://people.freebsd.org/~julian/stack-hogs It's quite

Re: devfs and Vinum (was: any -current vinum problems?)

2001-08-15 Thread John Baldwin
On 15-Aug-01 Michael Lucas wrote: On Wed, Aug 15, 2001 at 10:21:39AM +0930, Greg Lehey wrote: To help localize this problem, could you please try this same thing on a kernel without devfs? The dump you sent me did not look like a Vinum bug, as I said in my reply. Sorry, it happens on a

devfs deficiencies (was: devfs and Vinum (was: any -current vinum problems?))

2001-08-15 Thread Greg Lehey
On Wednesday, 15 August 2001 at 19:17:47 +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Ju lian Elischer writes: the lack of subdirectory support is a pitty. There is support for subdirectories: ls -la /dev/fd What am I supposed to see there? I get three character

Re: Kernel stack hogs list available

2001-08-15 Thread Rex Luo
May I ask where to get this utility? Thanks! Julian Elischer [EMAIL PROTECTED] said: I ported the code to allow gcc to report functions that use too much of our 3.4KB kernel stacks. I tried it ou ton a compile of GENERIC. it produced some 360 functions that allocate over 100 bytes on

Stack hogs revisited..

2001-08-15 Thread Julian Elischer
I put up a sorted list in order of severity http://people.freebsd.org/~julian/stack-hogs This one is from LINT and is more inclusive.. please check if your favourites are there and even if you are not a committer, send me fixes. If you ARE a committer of course, yuo know what to do.. :-) who

Re: Kernel stack hogs list available

2001-08-15 Thread Julian Elischer
On Thu, 16 Aug 2001, Rex Luo wrote: May I ask where to get this utility? Thanks! It's beeing added to gcc in -current.. here are my patches: WARNING..CUT_N_PASTE.. will not patch cleanly. Index: calls.c === RCS file:

RE: devfs deficiencies (was: devfs and Vinum (was: any -current vinum problems?))

2001-08-15 Thread Brandon (home)
[snip] And in general, can we stop the high incidence of mud-slinging we've seen on the lists lately? Here, here! Brandon To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

perils of porting code..

2001-08-15 Thread Julian Elischer
the midway driver.. has the folowing comment. 855: #ifdef NBURST 856: /* be careful. kernel stack is only 8K */ 857: u_int8_t buffer[BOUNDARY * 2 + 64 * (NBURSTS + well, that may have been true on NetBSD where this came from, but not in FreeBSD..

Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Kazutaka YOKOTA
: Too complicated? I like this idea. It will allow mechanical KVM switches to work better than they do now (which is to say, not much at all). I also have one KVM switch that hits the out-of-sync problem when its power fails. Unfortunately, it has a horrible user interface: The power button

Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Kazutaka YOKOTA
Does it make sense to have a timeout (or perhaps just timestamps) in the driver, so that after some period of inactivity, you know that the next byte from the moust is the first of a multi-byte message? louie I haven't thought about this. Yes, it may be possible. But, when the mouse is moving

Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Kazutaka YOKOTA
Too complicated? It sounds fine to me. I was thinking that if you are truly concerned about the amount of time that the disable/enable calls take, the way to solve that is a combination of counter and timer. Increment a counter when you take the disable/enable path to prevent recursive

mutex Giant not owned

2001-08-15 Thread David O'Brien
# uname -a FreeBSD phuong.nuxi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #12: Sun Jul 15 19:07:45 PDT 2001 [EMAIL PROTECTED]:/files/Current/sys/alpha/compile/DS20 alpha panic: mutex Giant not owned at ../../../kern/vfs_subr.c:2363 #0 0xfc3d5c80 in dumpsys () at

Re: Kernel stack hogs list available

2001-08-15 Thread David O'Brien
On Wed, Aug 15, 2001 at 04:00:50PM -0700, Julian Elischer wrote: I ported the code to allow gcc to report functions that use too much of our 3.4KB kernel stacks. Actually I thought I did. :-) Is your final patch different from the one I did and sent you? To Unsubscribe: send mail to [EMAIL

Re: Kernel stack hogs list available

2001-08-15 Thread Julian Elischer
I guess so, I started from the code that was on the gcc web page.. did you send me something new? (I sent you a copy of the final version.. di you miss it? I missed yours :-) On Wed, 15 Aug 2001, David O'Brien wrote: On Wed, Aug 15, 2001 at 04:00:50PM -0700, Julian Elischer wrote: I ported

Re: Stack hogs revisited..

2001-08-15 Thread Boris Popov
On Wed, 15 Aug 2001, Julian Elischer wrote: I put up a sorted list in order of severity http://people.freebsd.org/~julian/stack-hogs This one is from LINT and is more inclusive.. Wow, very interesting reading :) -- Boris Popov http://rbp.euro.ru To Unsubscribe: send mail to

psmresume() (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-08-15 Thread Kazutaka YOKOTA
Ok, here is another topic for discussion. 0x4000 is PSM_CONFIG_INITAFTERSUSPEND Under what circumstances would you _not_ want to call the function reinitialize() on the unit at resume time, such that this flag is not default? To date, the flags PSM_CONFIG_HOOKRESUME and

Re: devfs deficiencies (was: devfs and Vinum (was: any -current vinum problems?))

2001-08-15 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Greg Lehey writes: On Wednesday, 15 August 2001 at 19:17:47 +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Ju lian Elischer writes: the lack of subdirectory support is a pitty. There is support for subdirectories: ls -la /dev/fd What am I