Re: detecting a closing socket from a Lex/Yacc interpreter ?

2001-02-23 Thread Thierry Herbelot
Jordan DeLong wrote: > > I'm assuming right now you are just setting yyin to the fd for the socket. > What you're gonna want to do is define the macro YY_INPUT (see the man page for > details) so that it calls recv on your socket. and then if it errors you can > have YY_INPUT return as an EOF an

Re: gdb and debugging Linux binaries

2001-02-23 Thread Daniel O'Connor
On 22-Feb-01 Greg Lehey wrote: > > /compat/linux/ > > /usr/bin/gdb, it says the core file is in the wrong format: > > > > Couldn't fetch registers from core file: File in wrong format > > Couldn't fetch register set 2 from core file: File in wrong format > > > > So what is the correct procedure f

Re: dummynet as modules

2001-02-23 Thread Luigi Rizzo
> How do I compile a a kernel without ipfw, and a ipfw.ko module with > dummynet support? not sure how well is this supported -- i guess you should look at the makefile for the ipfw module to make sure it includes dummynet. But: > I have to add some features to the dummynet code, so instead of >

dummynet as modules

2001-02-23 Thread Michael Solan
Hi there, How do I compile a a kernel without ipfw, and a ipfw.ko module with dummynet support? I have to add some features to the dummynet code, so instead of rebooting every 5 mins I figured kldloading it would save me some time. I tried several combinations like 'options DUMMYNET' but no 'opt

Re: Creating BSD bootable CD

2001-02-23 Thread Sergey Babkin
Murray Stokely wrote: > > On Thu, 22 Feb 2001, Julian Stacey [EMAIL PROTECTED] wrote: > % I hadn't heard of mkhybrid, so investigated: it's been merged into mkisofs: > > I still prefer old versions of mkhybrid over the new merged mkisofs > for some tricky environments. The new mkisofs will co

Re: IOmega ZIP problem

2001-02-23 Thread Rafael Rodrigues Obelheiro
On Fri, Feb 23, 2001 at 09:39:43AM +0200, Peter Pentchev wrote: > On Thu, Feb 22, 2001 at 01:19:33PM -0600, Michael C . Wu wrote: > > On Thu, Feb 22, 2001 at 07:40:16PM +0100, Torbjorn Kristoffersen scribbled: > > | Hi I'm using 4.2-RELEASE, with a parallel port ZIP drive (100M). > > | Whenever I

Re: gdb and debugging Linux binaries

2001-02-23 Thread Drew Eckhardt
You may be able to force gdb to pick up the right files using the add-symbol-file command. Or the sharedlibrary command. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Wake on Lan

2001-02-23 Thread Mike Smith
> > > To follow up on myself, it seems to work on older Asus P2B-LS > motherboards (onboard fxp). But only after you shutdown FreeBSD via > 'shutdown -p now'. I don't suppose anybody knows which machines > support this well? The machine *should* support WOL from a cold power-on. However, I d

Re: gdb and debugging Linux binaries

2001-02-23 Thread Marcel Moolenaar
Greg Lehey wrote: > > On Thursday, 22 February 2001 at 13:55:07 -0800, Jim Pirzyk wrote: > > > > I have a question on how to debug Linux binaries. I have a core > > file from the linux binary, but if I use the FreeBSD gdb, it cannot > > find the shared libraries in /compat/linux/ If I use t

RE: Memory Alloation from kernel loadable driver

2001-02-23 Thread Sue Wainer
    I have a pci driver which is loaded using kldload. It is allocating a no. of pages by calling vm_page_alloc_contig. This convention is used by other pci drivers, though not necessarily loadable ones.   On machines without much memory, or ones with more memory but havin

Re: portability sanity check

2001-02-23 Thread Jacques A. Vidrine
On Wed, Feb 21, 2001 at 05:28:31PM +0100, Poul-Henning Kamp wrote: > >Type-safety is a cruch for the weak-minded. ^ > As an old assembler programmer I couldn't agree more, but in a project > like FreeBSD we have to realize that not everybody is that. Heh, I was just cleani

Re: Wake on Lan

2001-02-23 Thread Andrew Gallatin
To follow up on myself, it seems to work on older Asus P2B-LS motherboards (onboard fxp). But only after you shutdown FreeBSD via 'shutdown -p now'. I don't suppose anybody knows which machines support this well? Drew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-h

Re: IOmega ZIP problem

2001-02-23 Thread Andresen,Jason R.
Torbjorn Kristoffersen wrote: > > On Fri, 23 Feb 2001, Peter Pentchev wrote: > > > On Thu, Feb 22, 2001 at 01:19:33PM -0600, Michael C . Wu wrote: > > > On Thu, Feb 22, 2001 at 07:40:16PM +0100, Torbjorn Kristoffersen scribbled: > > > | Hi I'm using 4.2-RELEASE, with a parallel port ZIP drive (1

Re: IOmega ZIP problem

2001-02-23 Thread Torbjorn Kristoffersen
On Fri, 23 Feb 2001, Peter Pentchev wrote: > On Thu, Feb 22, 2001 at 01:19:33PM -0600, Michael C . Wu wrote: > > On Thu, Feb 22, 2001 at 07:40:16PM +0100, Torbjorn Kristoffersen scribbled: > > | Hi I'm using 4.2-RELEASE, with a parallel port ZIP drive (100M). > > | Whenever I copy a large file fr

No Subject

2001-02-23 Thread V . Krishna Kumar
subscribe To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: warning in free():

2001-02-23 Thread diman
On Thu, 22 Feb 2001, mouss wrote: > At 18:37 22/02/01 +0200, diman wrote: > > >Open AF_UNIX socket to syslogd and then use err_set_file() > >to redirect all err/warn messages to syslogd instead of > >stdin/stdout. That should help you debug daemons. > > I agree, but one of the nice things abou

Re: gdb and debugging Linux binaries

2001-02-23 Thread Greg Lehey
On Thursday, 22 February 2001 at 13:55:07 -0800, Jim Pirzyk wrote: > > I have a question on how to debug Linux binaries. I have a core > file from the linux binary, but if I use the FreeBSD gdb, it cannot > find the shared libraries in /compat/linux/ If I use the /compat/linux/ > /usr/bin/gd

Re: Wake on Lan

2001-02-23 Thread Andrew Gallatin
Peter Dufault writes: > > > > Can somebody clue me in on how Wake On Lan is supposed to work? > > Does it require any support at all from the OS, or is it totally a > > BIOS thing? > > I don't know how "Wake On Lan" is supposed to work, but the "Sony Vaio > Slimtop" I have comes out of s

Re: Windows 2000 pro & FreeBSD

2001-02-23 Thread Paul Marquis
Check out BootPart: http://www.winimage.com/bootpart.htm I used it to copy the boot sector of my FreeBSD partition and add it to the NT boot manager menu. It does all the work for you. Justin McKnight wrote: > i need help dual booting win200 and freebsd4.2. Win200 is > already installed cas

Re: Wake on Lan

2001-02-23 Thread Peter Dufault
> > Can somebody clue me in on how Wake On Lan is supposed to work? > Does it require any support at all from the OS, or is it totally a > BIOS thing? I don't know how "Wake On Lan" is supposed to work, but the "Sony Vaio Slimtop" I have comes out of suspend mode when I ping it. I've had it idl

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) > { > > } > > void * > xrealloc(void *ptr, size_t size) > { > > } > > And then I use these instead of malloc and realloc t

Re: Windows 2000 pro & FreeBSD

2001-02-23 Thread Kris Kennaway
On Fri, Feb 23, 2001 at 01:40:47AM -0500, Justin McKnight wrote: > To: FreeBSD-newbies <[EMAIL PROTECTED]> ^^^ ^^^ Something is wrong with this picture. Kris PGP signature

Re: Setting memory allocators for library functions.

2001-02-23 Thread Alfred Perlstein
* Farooq Mela <[EMAIL PROTECTED]> [010223 00:22] wrote: > Alfred Perlstein wrote: > > > > * Farooq Mela <[EMAIL PROTECTED]> [010222 23:52] wrote: > > > > > > This is not what I am arguing. I gave a simple example of an xmalloc > > > function which does just print an error and exit. However, I've

Re: Setting memory allocators for library functions.

2001-02-23 Thread Farooq Mela
Alfred Perlstein wrote: > > * Farooq Mela <[EMAIL PROTECTED]> [010222 23:52] wrote: > > > > This is not what I am arguing. I gave a simple example of an xmalloc > > function which does just print an error and exit. However, I've written > > many large applications using this sort of scheme where

Re: Compaq e500, 3com cardbus card help

2001-02-23 Thread Warner Losh
In message <[EMAIL PROTECTED]> [EMAIL PROTECTED] writes: : On Thu, Feb 22, 2001 at 10:32:13AM -0500, Justin McKnight wrote: : > I cant figure out to get freebsd 4.2 to recognize : > and enable my 3com cardbus card? : : FreeBSD currently doesn't support cardbus cards. FreeBSD -stable doesn't sup

Re: Setting memory allocators for library functions.

2001-02-23 Thread Alfred Perlstein
* Farooq Mela <[EMAIL PROTECTED]> [010222 23:52] wrote: > > This is not what I am arguing. I gave a simple example of an xmalloc > function which does just print an error and exit. However, I've written > many large applications using this sort of scheme where when allocation > fails, all sorts o