MIN()/MAX() definitions in sys/param.h

2001-05-14 Thread Dima Dorfman
Is there a reason the definitions of the MIN() and MAX() macros in sys/param.h are under an '#ifndef _KERNEL'? Quite a few files in the kernel define these (well, at least MIN) themselves, so it would seem to make sense to define them globally in sys/param.h for the kernel as well. Any reason

Re: SSH Must Die

2001-05-14 Thread Dave Hayes
Matthew Jacob [EMAIL PROTECTED] writes: There's a very likely 3rd possibility: ssh works fine, but the upgrade process has holes that even traps the experienced. I'll confirm this. I've done several upgrades and fresh installs in the past 2 weeks, and sometimes the /etc/pam.conf

Mkisofs and ISO images that boot

2001-05-14 Thread Dave Hayes
From the handbook: 10.8.2. mkisofs ... The last option of general use is -b. This is used to specify the location of the boot image in producing a ``El Torito'' bootable CD. This option takes an argument, which is the path to a boot image from the top of the tree being written to the

Re: SSH Must Die

2001-05-14 Thread Alexey V. Neyman
Hello there! On Sat, 12 May 2001, Valentin Nechayev wrote: On -current, I watched identical problem with mystical ssh brokenness, with No RSA support in libcrypto and libssl message from ssh, after when all possible underwater stones were verified (including /dev/random and /dev/urandom,

Re: MIN()/MAX() definitions in sys/param.h

2001-05-14 Thread Bruce Evans
On Mon, 14 May 2001, Dima Dorfman wrote: Is there a reason the definitions of the MIN() and MAX() macros in sys/param.h are under an '#ifndef _KERNEL'? Quite a few files in the It is to inhibit use of these macros. The {i,,l,lu,q}{max,min} inline functions are supposed to be used instead.

Re: FreeBSD 4.2 ,kernel panic.

2001-05-14 Thread Ian Dowse
In message [EMAIL PROTECTED], Andrea writes: MY FreeBSD 4.2 system has begun to crash some time ago.. fault virtual address = 0x9ec03e00 This virtual address suggests that these crashes are caused by a bug that was fixed around two months ago. See

Re: Writing pseudo-driver for FreeBSD

2001-05-14 Thread Jayesh Krishna
Hi Mission accomplished( the skeleton pseudo-driver is up). I was able to link it statically and also dynamically( i had promised julien) to the kernel. Now the basic ioctls are working 8-) Special thanx to Julian, Julien and Brian and to all hackers who looked into my problem...:-)

log function

2001-05-14 Thread vishwanath pargaonkar
Hi, i have freebsd 4.2 stable. suppose if i want to print buffer in som log file for debug. can i do it using log function? i saw log function in kernel source. like log(LOG_ERR...) log(LOG_INFo) tell me abt this log function clearly. To Unsubscribe: send mail to [EMAIL PROTECTED] with

watchdog timeout

2001-05-14 Thread vishwanath pargaonkar
Hi, can any one tell me what is this message which i get on my console( when i login as root). wb0:watchdog timeout .wb0 is my interface name. what is this? y is this coming? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: FreeBSD 4.3 crashing with USB hub attached...

2001-05-14 Thread Chris Dillon
On Sat, 12 May 2001, Shannon Hendrix wrote: On Fri, May 11, 2001 at 07:54:26PM -0400, Shannon wrote: For the second boot I unplugged the USB hub. This time everything was fine... I'm sending this mail from the FreeBSD machine's console. Replying to my own post: The problem is the

Re: SSH Must Die

2001-05-14 Thread Karsten W. Rohrbach
David Taylor([EMAIL PROTECTED])@2001.05.13 21:16:33 +: On Sun, 13 May 2001, Karsten W. Rohrbach wrote: --- VERSION_NUMBER=`grep [$]FreeBSD: $0 | cut -d ' ' -f 4` echo mergemaster version ${VERSION_NUMBER} --- That would appear to be mergemaster grepping for the $FreeBSD$ line

Re: SSH Must Die

2001-05-14 Thread David O'Brien - Hackers
On Sun, May 13, 2001 at 11:14:05AM -0700, Doug Barton wrote: That said, I am working on some things to make mm handle cases where the user has not modified the files easier to deal with. We should have /etc/MD5SUM.install which contains the MD5 checksum of the installed files. The

How to transfer data from netgraph node to user program?

2001-05-14 Thread Roman V. Palagin
Hello! I've wrote netgraph node which collects some information from network. Now I want to transfer collected data into user program. I've NGM_XXX_STAT message which initiates data transfer and program which uses libnetgraph to communicate with node. When I send NGM_XXX_STAT message node must

Re: FreeBSD 4.3 crashing with USB hub attached...

2001-05-14 Thread Shannon Hendrix
On Mon, May 14, 2001 at 11:35:15AM -0500, Chris Dillon wrote: For the second boot I unplugged the USB hub. This time everything was fine... I'm sending this mail from the FreeBSD machine's console. Replying to my own post: The problem is the Logitech joystick, not the hub itself.

Re: fd driver hacking to recover data

2001-05-14 Thread J Wunsch
Brian W. Buchanan wrote: Any fdc driver gurus in the house? I have a bunch of old floppy disks with some text files I'd like to recover. Many of them have errors and are unreadable past a certain point in the disk. Others I can't read from at all. I just committed a change to the fdc(4)

Re: FreeBSD 4.3 crashing with USB hub attached...

2001-05-14 Thread Chris Dillon
On Mon, 14 May 2001, Shannon Hendrix wrote: Did you notice, before the crash, that the kernel had some trouble querying the offending device? That happens with me, and then a little while later in the boot it crashes. Yes, the symptoms were the same as yours. The initial probing during

RE: Mkisofs and ISO images that boot

2001-05-14 Thread Daniel O'Connor
On 14-May-2001 Dave Hayes wrote: -r-xr-xr-x 1 root wheel 149504 May 8 17:00 cdboot* Ah! Just what I need, right? So... $ cd /random/place $ mkisofs -U -R -o FirstCD.iso -b boot/cdboot FirstCD ... Size of boot image is 292 sectors - mkisofs: Error - boot image

wint_t

2001-05-14 Thread David O'Brien
What is the proper definition of wint_t? curses.h has it as a long int, however NetBSD (and GCC's libstdc++) has it as an int. -- -- David ([EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: wint_t

2001-05-14 Thread Erik Trulsson
On Mon, May 14, 2001 at 04:44:01PM -0700, David O'Brien wrote: What is the proper definition of wint_t? curses.h has it as a long int, however NetBSD (and GCC's libstdc++) has it as an int. I think either definition is fine. It should be at least as wide as a wchar_t. stddef.h has wchar_t

Re: Mkisofs and ISO images that boot

2001-05-14 Thread Sergey Babkin
Dave Hayes wrote: From the handbook: 10.8.2. mkisofs ... The last option of general use is -b. This is used to specify the location of the boot image in producing a ``El Torito'' bootable CD. This option takes an argument, which is the path to a boot image from the top of the

Re: xargs(1) replstr patch

2001-05-14 Thread Cyrille Lefevre
Brian Somers [EMAIL PROTECTED] writes: I'd suggest going ahead and committing it ASAP - before people start ``discussing'' it again :oI from my point of view, it would be better to implement -i/-I than this hack which has no advantage in performance and functionnality than : while read arg;

Re: xargs(1) replstr patch

2001-05-14 Thread Garance A Drosihn
At 4:09 AM +0200 5/15/01, Cyrille Lefevre wrote: Brian Somers [EMAIL PROTECTED] writes: I'd suggest going ahead and committing it ASAP - before people start ``discussing'' it again :oI from my point of view, it would be better to implement -i/-I than this hack which has no advantage in

Making snp(4) a module

2001-05-14 Thread Dima Dorfman
Right now, snp(4) can't be compiled as a module because it depends on hacks in the tty subsystem similar to the following: #ifdef DEV_SNP if (ISSET(tp-t_state, TS_SNOOP) tp-t_sc != NULL) snpin((struct snoop *)tp-t_sc, cp, cc);