Re: Ralink driver and FreeBSD 6.2?

2007-02-21 Thread Thomas David Rivers
A couple of things. - The newer rt2661.c driver has not been MFC'd to 6.2. That is most likely why your card is not working. - 'ifconfig' when run as root will load the module for a network driver provided it is a) in the path and b) name if_interface name.ko -Kip

Ralink driver and FreeBSD 6.2?

2007-02-20 Thread Thomas David Rivers
I've got a Dell Dimension 4100 (circa 2000) running FreeBSD 6.2. I plugged in a Linksys WMP54G wireless PCI card, which should be supported by the 'ral' driver. However, my pciconf says: [EMAIL PROTECTED]:9:0: class=0x028000 card=0x00551737 chip=0x03011814 rev=0x00 hdr=0x00 vendor

Linksys WMP54G + ndis = panic

2007-02-20 Thread Thomas David Rivers
Well - I gave up on the ral(4) driver - seems it doesn't support the WMP54Gv4.1 linksys card. So - I've got ndis working. I can ifconfig ndis0, set the ssid and wepkey, etc... And - DHCP will get the wireless configured (IP address, default route, etc...) But - on the first packet after that

Re: Ralink driver and FreeBSD 6.2?

2007-02-20 Thread Thomas David Rivers
Forent Thoumie wrote: On Mon, 2007-02-19 at 23:05 -0500, Thomas David Rivers wrote: I've got a Dell Dimension 4100 (circa 2000) running FreeBSD 6.2. I plugged in a Linksys WMP54G wireless PCI card, which should be supported by the 'ral' driver. However, my pciconf says: [EMAIL

Re: FLEX, was Re: Return value of malloc(0)

2006-06-29 Thread Thomas David Rivers
Randall Hyde [EMAIL PROTECTED] BTW, if anyone is intrested in the full FLEX source, it's part of the HLA (High Level Assembler) source package found here: http://webster.cs.ucr.edu/AsmTools/HLA/HLAv1.84/hlasrc.zip Just wondering if those guys knew that IBM calls their mainframe

flock() returns EHOSTUNREACH on 5.3 with 4.5 NFS server

2005-10-05 Thread Thomas David Rivers
I'm applying flock() to a file that is on an NFS server. The program calling flock() is built on a 4.5 system, with the 4.5 libraries, etc... The NFS server is a 4.5-RELEASE system. The program running on a 4.5-release system doesn't display any problems. But - when I run that same program

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread Thomas David Rivers
Everyone, If I'm remembering correctly - the historical way to do this is to alias the rm command to something that else that checks the arguments and complains appropriately (and then executes /bin/rm.) Typically with just a shell alias. That keeps you from accidently doing something.

Re: more info on pccard insertion hang...

2002-05-27 Thread Thomas David Rivers
M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] Thomas David Rivers [EMAIL PROTECTED] writes: : Warner - any ideas? : pci_write_config(..., bcr,2); hangs Interesting So this pretty much confirms what I'd expect. We establish the interrupt

Re: more info on pccard insertion hang...

2002-05-27 Thread Thomas David Rivers
M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] Thomas David Rivers [EMAIL PROTECTED] writes: : to the end of pcic_pci_intr() - but that didn't change anything... : got the same hang in exactly the same place... Sounds like we may need to do the more

more info on pccard insertion hang...

2002-05-26 Thread Thomas David Rivers
OK - after *many* additional printf()s, and following the control flow through several twisty passages (all alike), I've figured out _where_ the hang is happening but, not why... First - the card is inserted, and the various callbacks occur... pccardd gets involved and reads the CIS to

Re: any file -- symbol in .o file

2002-05-20 Thread Thomas David Rivers
E.B. Dreger [EMAIL PROTECTED] wrote: Greetings all, Eddy, Instead of a system-specific approach, you might want to take advantage of what the C language has to offer. For example, your multi-line issue. You realise that the C preprocessor/compiler will concatentate adjacent

Re: pccard hang - how to start debugging?

2002-05-19 Thread Thomas David Rivers
M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] Thomas David Rivers [EMAIL PROTECTED] writes: : Also - I need to understand why this machine worked so well with : 4.1-RELEASE, and doesn't with 4.5-RELEASE. I'm guessing there : was a significant change

Re: pccard hang - how to start debugging?

2002-05-19 Thread Thomas David Rivers
M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] Thomas David Rivers [EMAIL PROTECTED] writes: : Ok - the next question would be - is there a way to un-do that? : Since ISA interrupts worked before? hw.pcic.intr_path=1 is supposed to do that. Warner

Re: pccard hang - how to start debugging?

2002-05-17 Thread Thomas David Rivers
In message: [EMAIL PROTECTED] Thomas David Rivers [EMAIL PROTECTED] writes: : : OK - : : pccard (or, more likely, the pcic driver) hangs when I insert : my ethernet card into the pcmcia slot on my VAIO F480 (with : 4.5-RELEASE.) : : The entire machine is hung up

pccard hang - how to start debugging?

2002-05-16 Thread Thomas David Rivers
OK - pccard (or, more likely, the pcic driver) hangs when I insert my ethernet card into the pcmcia slot on my VAIO F480 (with 4.5-RELEASE.) The entire machine is hung up tight. When I remove the card, everything comes alive again This clearly feels like a missed interrupt

RE: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Dear Thomas, Well - I'm still trying to get pptp to cooperate and set up a VPN connection to a Microsoft VPN server. I'm just wondering - is there _anyone_ out there that has met with success using pptp - and, if so, could you share your /etc/ppp/ppp.conf settings?

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Dominic Marks [EMAIL PROTECTED] wrote: On Wed, May 01, 2002 at 03:47:13PM -0400, Thomas David Rivers wrote: Well - I'm still trying to get pptp to cooperate and set up a VPN connection to a Microsoft VPN server. I'm just wondering - is there _anyone_ out there that has met

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Julian Elischer [EMAIL PROTECTED] wrote: I've always had better success using the mpd port for pptp.. It's installed now :-) I'm going to try and give it a go this morning! I'll let everyone know how it goes... - Thanks! - - Dave Rivers - To Unsubscribe: send mail

mpd (was Re: Anyone using pptp?)

2002-05-02 Thread Thomas David Rivers
Julian Elischer [EMAIL PROTECTED] wrote: I've always had better success using the mpd port for pptp.. OK - I went through the mpd documentation, etc.. very nice. No problems setting things up, etc... However, mpd isn't working for me either. It makes it through the authentication,

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Thomas David Rivers wrote: From the ppp.log file - it seems I have to have MSChapV2 both enabled and disabled at the same time. At some points in the negotiation it needs to be disabled (i.e. *not* used for authenticating the peer) - but at other points it needs to be enabled

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Thomas David Rivers writes: If I add enable MSChapV2 in /etc/ppp/ppp.conf - then our ppp client requires that the peer (the Microsoft VPN server) authenticate using MSChapV2. But, the Microsoft VPN peer refuses that (it's configured to not use MSChapV2. Don't you

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Archie Cobbs [EMAIL PROTECTED] wrote: Thomas David Rivers writes: enable MSChapV2 in /etc/ppp/ppp.conf - then our ppp client requires that the peer (the Microsoft VPN server) authenticate using MSChapV2. But, the Microsoft VPN peer refuses that (it's configured

Re: Anyone using pptp?

2002-05-02 Thread Thomas David Rivers
Terry Lambert [EMAIL PROTECTED] wrote: Archie Cobbs wrote: Thomas David Rivers writes: If I add enable MSChapV2 in /etc/ppp/ppp.conf - then our ppp client requires that the peer (the Microsoft VPN server) authenticate using MSChapV2. But, the Microsoft VPN peer

Anyone using pptp?

2002-05-01 Thread Thomas David Rivers
Well - I'm still trying to get pptp to cooperate and set up a VPN connection to a Microsoft VPN server. I'm just wondering - is there _anyone_ out there that has met with success using pptp - and, if so, could you share your /etc/ppp/ppp.conf settings? - Many thanks! - - Dave

Re: Anyone using pptp?

2002-05-01 Thread Thomas David Rivers
Lars Eggert [EMAIL PROTECTED] wrote: Thomas David Rivers wrote: Well - I'm still trying to get pptp to cooperate and set up a VPN connection to a Microsoft VPN server. I'm just wondering - is there _anyone_ out there that has met with success using pptp - and, if so, could you share

Re: Anyone using pptp?

2002-05-01 Thread Thomas David Rivers
Dominic Marks [EMAIL PROTECTED] wrote: On Wed, May 01, 2002 at 03:47:13PM -0400, Thomas David Rivers wrote: Well - I'm still trying to get pptp to cooperate and set up a VPN connection to a Microsoft VPN server. I'm just wondering - is there _anyone_ out there that has met

pptp client?

2002-04-26 Thread Thomas David Rivers
I posted something on -questions, and got no reply... so, let me try here... Has _anyone_ been successfull at getting a pptp client connection to a Microsoft VPN server? I've - at last - gotten through two of the big hurdles, 1) Clearing the firewall to allow this to pass and 2) Getting the

Re: locale problems with linux 7.1 base upgrade

2002-04-25 Thread Thomas David Rivers
Theo Pagtzis [EMAIL PROTECTED] wrote: Hi all, I upgraded to linux 7.1 base successfully for the purposes of getting linux java 1.4. The upgrade has created a consistent problem with the locale for any application that I am running. These applications are so far, Netscape and java 1.4

Debugging natd?

2001-07-16 Thread Thomas David Rivers
The machine I redirected telnet too has changed IP addresses... And; I discovered after simply changing my natd_flags in /etc/rc.conf that natd isn't properly redirecting the port. I checked the messages log (/var/log/alias.log) and nothing appears to be amiss. (And, I've got -l on the

Re: C++ to C translator

2001-07-04 Thread Thomas David Rivers
Hi, I have written some code in C++. However, I want to run it on an old mainframe machine, which a C++ compiler is not available. I know that the old g++ is a C++ to C compiler. Does anyone know which version it is? Also, anyone knows other C++ to C compilers? Thanks, Rayson

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
Peter Pentchev [EMAIL PROTECTED] wrote: On Thu, Jun 07, 2001 at 10:20:51AM -0700, John Baldwin wrote: On 07-Jun-01 Peter Pentchev wrote: On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev wrote: Hi, Is free((void *) (size_t) ptr) the only way to free a const whatever

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
GCC complains when I try to initialize the structure with something like: struct validation_fun val_init[] = { {init,valfun_init,0} }; This can be avoided by: struct validation_fun val_init[] = { {(char *) (uintptr_t) init, valfun_init,0} }; ..but

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
On Fri, Jun 08, 2001 at 08:51:54AM -0400, Thomas David Rivers wrote: GCC complains when I try to initialize the structure with something like: struct validation_fun val_init[] = { {init,valfun_init,0} }; This can be avoided by: struct

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
Since some strings are non-constant (the are allocated) - I believe the `const' qualifier in the structure declaration is incorrect. 'const' just means I will not be modifying this; it's a way for a function prototype to constrain the function's implementation. Yes - it is..

Re: FreeBSD on S/390?

2001-02-28 Thread Thomas David Rivers
Long shot, probably, but I've got a bunch of virtual machines on an IBM S/390 mainframe, and while we're running SuSE Linux on most of them, on a whim I tossed out the idea of running FreeBSD on one of them, and to my surprise, it was taken seriously. So, has anyone done any work with

Re: Setting memory allocators for library functions.

2001-02-23 Thread Thomas David Rivers
Farooq Mela [EMAIL PROTECTED] wrote: Hi, Usually when I write programs, I have functions such as the following: void * xmalloc(size_t size) { nice code } void * xrealloc(void *ptr, size_t size) { nice code } And then I use these instead of malloc and realloc

Re: EBCDIC - ASCII

2001-01-29 Thread Thomas David Rivers
Josef Grosch [EMAIL PROTECTED] wrote: Does anybody know of an EBCDIC to ASCII converter? I thought that at one time FreeBSD had one of these. Josef Check out the `dd' command.. particularly the `conv' suboption: conv= value[, value ...] Where value is one of the

Re: Question about -Wchar-subscripts

2000-10-03 Thread Thomas David Rivers
In the last episode (Oct 03), Larry Lile said: ...we get scores of warnings about using characters as subscripts to an array (-Wchar-subscripts), which generates so much noise as to mask real warnings burried within. Therefore, I would like to suppress this warning

Re: Question about -Wchar-subscripts

2000-10-03 Thread Thomas David Rivers
Robert Nordier [EMAIL PROTECTED] wrote: Thomas David Rivers wrote: So why is using a "char" as an array subscript wrong? I had always avoided it because the compiler complained and that was good enough for me. Because your char value could be negative

Re: AW: Redirect stdout/stderr to syslog [OFF-TOPIC]

2000-09-01 Thread Thomas David Rivers
-Ursprungliche Nachricht- Von: Peter Pentchev [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 1. September 2000 14:00 man 1 logger pipe your stdout/stderr to logger(1), and you're all set. You may even specify a facility/level to log with. Thanks for your quick

Re: An IA-64 port?

2000-06-04 Thread Thomas David Rivers
On Sat, 3 Jun 2000, Jordan K. Hubbard wrote: Intel has furnished us with IA-64 hardware and a porting effort is already underway. Contact [EMAIL PROTECTED] if you would like to help out in some way with the process. What can those of us just out here do? I believe HP provides

Re: An IA-64 port?

2000-06-04 Thread Thomas David Rivers
I believe HP provides a IA64 emultor which runs on Linux/Windows? I recall stumbling into when looking at the IA64 compiler that SGI recently releases. It was mentioned on SGI's pages, but I couldn't find it anywhere on HP's site (the link didn't work). If you have a pointer

Re: Building customized kernel without root passwd

2000-02-28 Thread Thomas David Rivers
My professor plans to use FreeBSD for teaching purpose. We will allow students to build their kernel but do not want to give them root password. So it's better to find a way to let students build kernel under their own account, save the kernel on a floppy and then boot from the floppy. I

IBM releases JFS for Linux.

2000-02-02 Thread Thomas David Rivers
This came across the Linux/390 mailing list today, I thought it might be interesting for people: "IBM makes JFS technology available for Linux - Technology based on OS/2 Warp Journaled File System goes open source". See

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Thomas David Rivers
Hello! Try the following: Take any year, minute, seconds, hours (etc...). set the struct tm accordingly. set the tm-tm_mon = 10 (November) set the tm-tm_mday = 31 (november has only 31 days) mktime(3) with this tm returns the date 1 Dezember. Does POSIX want this? Does anyone

Re: Should -mieee-fp equal fpsetmask(0) to avoid SIGFPE on FreeBSD?

2000-01-05 Thread Thomas David Rivers
P.S. Actually, although Martin Cracauer's suggested replacement for the existing Mozilla code is certainly better than what Mozilla is using now, it may perhaps need to be slightly augmented with an additional check to see if the value of `d' is a NaN prior to per- forming the range

RE: modifying an object file

1999-12-21 Thread Thomas David Rivers
David - The man page for the ELF linker says: ld accepts Linker Command Language files to provide ex- plicit and total control over the linking process. This man page does not describe the command language; see the `ld' entry in `info', or the manual ld: the

Re: ncr scsi timeout

1999-12-15 Thread Thomas David Rivers
The kernel hangs (rather an endless loop) with messages like: ncr0: timeout nccb=0xc0c38000 if I attach a fujitsu M2513A2 640MB MO drive. From a quick glance in the ncr source it seems there's a problem with the script stuff in case of a timeout. Anyway, this doesn't happen

Re: sys/sockets.h error

1999-12-02 Thread Thomas David Rivers
Include sys/types.h before sys/sockets.h - Dave R. - To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Human readable df

1999-11-30 Thread Thomas David Rivers
In message 19991129230436.A6501@badmofo [EMAIL PROTECTED] writes: : [badmofo@/home/matt] df -h : FilesystemSize UsedAvail Capacity Mounted on : /dev/wd0s1a 722M20M 644M 3% / : /dev/wd0s2h 9.9G 4.4G 4.8G48% /usr : procfs4.0K 4.0K 0B 100%

Re: Human readable df

1999-11-30 Thread Thomas David Rivers
Stephen McKay [EMAIL PROTECTED] write On Tuesday, 30th November 1999, Warner Losh wrote: FilesystemSize UsedAvail Capacity Mounted on /dev/da0s1a 62.0M 31.0M 26.1M54% / /dev/da0s1e 192M 167M 9.22M95% /usr /dev/da0s1d 61.4M 11.3M 45.2M20%

Re: Human readable df

1999-11-30 Thread Thomas David Rivers
Stephen McKay [EMAIL PROTECTED] wrote: And to Thomas: I've used dfspace before on ISC Unix, but never really liked it. I prefer df to do what I want. Am I greedy? :-) Not at all - it just seems to me the question should be asked, that's all. Since not a single person agreed - it seems

Re: Included file errors

1999-11-17 Thread Thomas David Rivers
You're missing a #include of sys/types.h - Dave R. - To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Kernel debug assistance?

1999-11-15 Thread Thomas David Rivers
I'm trying to track down a problem in 3.3-RELEASE (which I _think_ might be a linux emu bug that's crashing the kernel.) Anyway - I thought I might ask here for some kernel debugging assistance... I've got a debuggable kernel, with DDB. When the panic occurs (which I can readily reproduce) I

Re: X11/C++ question

1999-11-03 Thread Thomas David Rivers
In message [EMAIL PROTECTED] Chuck Robey writes: : Uhhh? I've long since got the answer I wanted, but this seems a complete : mystery, so I'll bite, what's a OI_add_event? From some package? Can't : find a man page on it. OI was a native C++ toolkit that had a nice interface and was

Re: X11/C++ question

1999-10-26 Thread Thomas David Rivers
Does anyone (anyone, that is, who's coded X11 applications) know how you handle X11 callbacks to C++ object methods? Thanks, If you mean Xt (and possibly Motif) - the answer is "very carefully." The Xt callbacks are C based, so you typically can't directly call a C++ method. But,

Re: X11/C++ question

1999-10-26 Thread Thomas David Rivers
Then you just stick a C wrapper function around every C++ callback you want to register, is that it? Seems a bit inelegant, but I suppose, if the ultimate test of elegance is that "it's the only one that works", then it's perhaps elegant *enough*. I believe someone posted a better

Re: -stable (in)stability (was Re: Best version of FBSD for INN ?)

1999-09-25 Thread Thomas David Rivers
And - to add to this - I still can freeze up my pentium laptop rather quickly (3.2-RELEASE, 40meg memory, P90) running setiathome. And - I've got DDB in the kernel, and ensured it's not overheating (it will freeze up in less than a minute from a _very_ cold start.) I don't get a panic, ddb

Re: GNU GLOBAL

1999-09-20 Thread Thomas David Rivers
On Sun, 19 Sep 1999, Peter Wemm wrote: :Will you be assigning the copyright to the FSF? (ie: you'll never be able :to change your mind? 50 years is a long time...) 70 now I believe. Changed to be compatible with the euros, who are all 70 years apparently. If I understand things

Re: Minor numbers in shared libraries.

1999-09-17 Thread Thomas David Rivers
In a discussion with Nate Williams, I have learned that the reason FreeBSD doesn't use minor numbers with shared libraries because standard ELF doesn't support it. Is this a hard-and-fast unbreakable rule, or is this something that could be implemented if it can be done in a way that's

Re: Minor numbers in shared libraries.

1999-09-17 Thread Thomas David Rivers
In a discussion with Nate Williams, I have learned that the reason FreeBSD doesn't use minor numbers with shared libraries because standard ELF doesn't support it. Is this a hard-and-fast unbreakable rule, or is this something that could be implemented if it can be done in a way that's

Re: Intel Merced FreeBSD???

1999-08-27 Thread Thomas David Rivers
Kenny Drobnack [EMAIL PROTECTED] writes: Lately i have seen a lot of speculation as to what will happen when the Intel Merced comes out. Will people wait 12-18 months for a 64 bit Windows (that's the amount of time I keep hearing it will take them to get Win2000 running on it) or will they

Re: Intel Merced FreeBSD???

1999-08-27 Thread Thomas David Rivers
Kenny Drobnack kdrob...@mission.mvnc.edu writes: Lately i have seen a lot of speculation as to what will happen when the Intel Merced comes out. Will people wait 12-18 months for a 64 bit Windows (that's the amount of time I keep hearing it will take them to get Win2000 running on it) or

Re: Intel Merced FreeBSD??? Intel? - NOT

1999-08-27 Thread Thomas David Rivers
On Fri, 27 Aug 1999, Jay West wrote: Keep in mind that the merced chip was not really designed or created by Intel at all. =20 It was created almost completely by HP (by the same group responsible for PA-RISC), with Intel as merely the production facilities. For obvious marketing,

RE: Mandatory locking?

1999-08-25 Thread Thomas David Rivers
All the files under Tandem's NSK has mandatory locking. The file cannot be opened if another process has it opened. some thing like * if the file is opened for reading, any one can open it for reading but opening for writing gives error * if the file is open for writing, it can't

RE: Mandatory locking?

1999-08-25 Thread Thomas David Rivers
All the files under Tandem's NSK has mandatory locking. The file cannot be opened if another process has it opened. some thing like * if the file is opened for reading, any one can open it for reading but opening for writing gives error * if the file is open for writing, it can't be

Re: Need some advice regarding portable user IDs

1999-08-18 Thread Thomas David Rivers
I had a thought on this It seems you are trying to provide the floppy model that users currently have with their PCs. User A writes the floppy, User B can read it and do whatever he wants... (I know this is Apple - but I'll stick to MSDOS for the discussion, and floppy indicates any

Re: TCP stack hackers take a bow

1999-08-05 Thread Thomas David Rivers
Bill Fumerola writes: On Tue, 3 Aug 1999, Ted Faber wrote: http://www.sciencedaily.com/releases/1999/08/990802072727.htm The Duke release credits one Andrew Gallatin for a couple quotes. Not only FreeBSD in the news, but one of our own committers. Cool.

Re: TCP stack hackers take a bow

1999-08-05 Thread Thomas David Rivers
Bill Fumerola writes: On Tue, 3 Aug 1999, Ted Faber wrote: http://www.sciencedaily.com/releases/1999/08/990802072727.htm The Duke release credits one Andrew Gallatin for a couple quotes. Not only FreeBSD in the news, but one of our own committers. Cool.

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Thomas David Rivers
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc I've seen a

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Thomas David Rivers
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc I've seen a

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Thomas David Rivers
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc I've seen a similar problem when doing cmp with

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Thomas David Rivers
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc I've seen a similar problem when doing cmp with

Re: sigaction inconsistancy (here I go again)

1999-07-09 Thread Thomas David Rivers
Also, I haven't gone into the code yet, but the floating point registers are not saved into the sigcontext so that they can be inspected and modified as appropriate. Thanks, John If I recall correctly - I think there's a discussion of why this is the case in the -hackers mail

Re: support for i386 hardware debug watch points

1999-07-08 Thread Thomas David Rivers
I just wondered if this should be integrated into ptrace(), so the various debuggers wouldn't have to know about it. It seems that would be the proper abstraction - hardware that supports it would "have it" - and the programs that "used it" wouldn't have to know anything special. I only have

Re: support for i386 hardware debug watch points

1999-07-08 Thread Thomas David Rivers
I just wondered if this should be integrated into ptrace(), so the various debuggers wouldn't have to know about it. It seems that would be the proper abstraction - hardware that supports it would have it - and the programs that used it wouldn't have to know anything special. I only have a

Re: support for i386 hardware debug watch points

1999-07-03 Thread Thomas David Rivers
Hi, After recently debugging a very elusive memory overwrite problem that I was only able to find by setting up a debugger watch point, and suffering through the slowness that this introduced, I began reading up on the ix86 support for hardware watch points. Using this facility of the

Re: Lizard...

1999-07-01 Thread Thomas David Rivers
That being said... I've heard some of my ex-coworkers (who were all FreeBSD people when they worked here) come up to me in this impressed tone: "You wouldn't believe how much easier it is to install RedHat!'. *sigh* I'm not bitching... just being loyal :) That's ridiculous. I've used

Re: Lizard...

1999-07-01 Thread Thomas David Rivers
That being said... I've heard some of my ex-coworkers (who were all FreeBSD people when they worked here) come up to me in this impressed tone: You wouldn't believe how much easier it is to install RedHat!'. *sigh* I'm not bitching... just being loyal :) That's ridiculous. I've used

Re: setiathome crashes 3.2?

1999-06-28 Thread Thomas David Rivers
Would everyone agree that it's not a "good thing" for a user-mode program to be able to lock up the OS? There are severall resons. One of them is that I got panics with a to high set MAXUSER in kernel options. I don't know if it's a problem with 3.2. The other possible reason might be

Re: setiathome crashes 3.2?

1999-06-28 Thread Thomas David Rivers
Would everyone agree that it's not a good thing for a user-mode program to be able to lock up the OS? There are severall resons. One of them is that I got panics with a to high set MAXUSER in kernel options. I don't know if it's a problem with 3.2. The other possible reason might be a

setiathome crashes 3.2?

1999-06-27 Thread Thomas David Rivers
I seem to recall seeing this someone (this may not be the right list.) But - I downloaded the 3.2 s...@home and starting running it on a left-over 75mhz laptop I have. It seems to crash the laptop (silently lock it up, actually) fairly quickly. Did I recall someone else mentioning that?

Re: compiler warnings (was: RE: Typo: sys/pci/pcisupport.c)

1999-06-16 Thread Thomas David Rivers
There is a story behind it: our product was shipping for hpux and was later ported to sinix. It had some instabilities during development (it was first developed for hpux, then the enhancements were ported to sinix, almost in parallel). A colleague wrote (paraphrased)

3.2 SL/IP Install - can't get ifconfig to work...

1999-06-16 Thread Thomas David Rivers
I don't seem to be able to get 3.2 to do a SL/IP install (this is for a laptop which seems to be having PAO problems...) Turning on DEBUG in the install options, I can watch it nicely execute: ifconfig sl0 inet 10.0.0.98 10.0.0.99 netmask 255.255.255.0 but - not matter what - that always

Re: 3.2 SL/IP Install - can't get ifconfig to work...

1999-06-16 Thread Thomas David Rivers
I don't seem to be able to get 3.2 to do a SL/IP install (this is for a laptop which seems to be having PAO problems...) Turning on DEBUG in the install options, I can watch it nicely execute: ifconfig sl0 inet 10.0.0.98 10.0.0.99 netmask 255.255.255.0 but - not matter what -

Re: 3.2 SL/IP Install - can't get ifconfig to work...

1999-06-16 Thread Thomas David Rivers
To add more to this - tracing through in.c in the kernel, I see that when you configure an interface it eventually works its way down to rtrequest - to add a route for the new interface. I believe rtrequest() is the one returning EEXIST which is what causes ifconfig on sl0 to always complain

More on ifconfig sl0 issue...

1999-06-16 Thread Thomas David Rivers
Well - I've added some printf()s to determine that what I suspected was correct. The route is being entered into the table twice. If looks like in_ifinit() is calling the sioctl() routine, which calls if_up(), which then adds the route. Then, in_ifinit() goes on to add another route and

Re: 3.2 SL/IP Install - can't get ifconfig to work...

1999-06-16 Thread Thomas David Rivers
Thomas David Rivers wrote: To add more to this - tracing through in.c in the kernel, I see that when you configure an interface it eventually works its way down to rtrequest - to add a route for the new interface. I believe rtrequest() is the one returning EEXIST which is what

Re: symlink question

1999-06-15 Thread Thomas David Rivers
symlinks have caused me grief (Pyramid OSx) and never joy. I hope it fails yet again to appear in FreeBSD. Just think of the new security holes for a start. Name one, please. You can currently point a symlink anyplace you like; whether the user has permission to *read* or execute the

Re: Wierd behavour from G++28!

1999-06-09 Thread Thomas David Rivers
On Wed, Jun 09, 1999 at 12:40:46AM +0100, Brian Somers wrote: Can someone comment please? Is this a bug in the way the gcc2.8 is installed, or is it a bug in my understanding? (probably the latter). Perhaps you need a gcc-compiled version of libstdc++. It's just a guess,

Re: Wierd behavour from G++28!

1999-06-08 Thread Thomas David Rivers
Strange. I'm having a wierd time trying to get a package called Swish++ working. It's a C++/STL based program, which the author recommends compiling up with Gcc2.8 or higher. So... I've installed gcc-2.8.1 glibstdc++-2.8.1.1, and compiled it up. Strangely however, the 'search' part

Re: Wierd behavour from G++28!

1999-06-08 Thread Thomas David Rivers
On Tue, Jun 08, 1999 at 10:45:39AM -0400, Thomas David Rivers wrote: (gdb) bt #0 0x8052c0f in ostream::flush () at /usr/include/ctype.h:149 #1 0x8052912 in ostream::operator () at /usr/include/ctype.h:149 #2 0x804995f in main (argc=1, argv=0xbfbfdb54) at search.c:219 (gdb) l

Re: Segfault in longjmp() ?

1999-06-08 Thread Thomas David Rivers
The machine is a SMP 3.0-RELEASE box. A heavily threaded program is segfaulting in the longjmp() function. Any ideas what would cause this? Regards, Dan You could have trashed your jmp_buf... (i.e. you're passing bad data to longjmp().) Just a thought... - Dave

Re: ECC drive data recovery?

1999-06-01 Thread Thomas David Rivers
Hi, We're seeing the following message on one of the drives we have mounted in a server system. (da23:ahc1:0:14:0): READ(10). CDB: 28 0 0 46 aa 50 0 0 40 0 (da23:ahc1:0:14:0): RECOVERED ERROR info:46aa77 asc:18,7 (da23:ahc1:0:14:0): Recovered data with ECC - data

Re: How to find the PCI chipset type inside a driver

1999-05-25 Thread Thomas David Rivers
Hi, I need the bt848/bt878 driver to find out the motherboard's PCI chipset. IE, Is this Bt878 card sitting on a VIA, SIS, OPTi or INTEL motherboard. Can this be done? The Bt878 can be programmed to run in Intel (Full PCI2.1 ompatible) Mode Intel 440FX mode SIS/VIA/OPTi mode.

Re: How to find the PCI chipset type inside a driver

1999-05-25 Thread Thomas David Rivers
Dave Just a thought - not really an answer to your question... but... I struck me that since bt848 isn't in the default kernel (you have to build your own kernel for it) - couldn't you just make this a flag in the config file? Then, a couple of #ifdef's in the

Re: BSD, GPL, the world today.

1999-05-13 Thread Thomas David Rivers
Actually - this comes down to the argument of what the market will bear, contract law, and the legal ramifications of bugs/problems. You bought the software, and agreed to the license terms when you opened the box, didn't you - Caveat Emptor. As long as you keep buying it, people/companies will