Re: kqueue & pthread

2005-02-20 Thread Dmitry Agaphonov
On Wed, 9 Feb 2005 10:51:36 -0500 Brian Fundakowski Feldman <[EMAIL PROTECTED]> wrote: BFF> The LinuxThreads library seems to be the best-supported way. I don't think BFF> that there should be legal/licensing issues using it. Unfortunatelly, I can't use the LinuxThreads library, it simpl

Re: Signalling a process from a INTR_FAST handler

2005-02-20 Thread Scott
Daniel O'Connor wrote: On Sun, 20 Feb 2005 16:12, Peter Jeremy wrote: I have a hardware interrupt handler that has to forward a signal to userland and that I'd like to mark INTR_FAST. AFAIK, the normal way to forward a signal is: if ((p = pfind(sc->pid_to_signal)) != NULL) {

vn_fullpath()

2005-02-20 Thread Igor Shmukler
Hello, I was wondering if anyone has figured a way to make vn_fullpath() reliable? Perhaps there is another approach to attacking this problem. Here is what I need to accomplish: I need to be able to determine dynamic linker, shared libraries or executable name for a specific process. The alter

Error in my C programming

2005-02-20 Thread Kathy Quinlan
Hi Guys, Here is a section of my code: *** Wtrend_Drivers.c *** void Reset_Network (unsigned char Network) { Length = 0x00; //Length = 0 as we are not sending any data with this command Receiver = 0x00;//Dummy Value for receiver, Node takes prefferance Node = 0xF

Re: Signalling a process from a INTR_FAST handler

2005-02-20 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Peter Jeremy <[EMAIL PROTECTED]> writes: : I have a hardware interrupt handler that has to forward a signal to : userland and that I'd like to mark INTR_FAST. AFAIK, the normal way : to forward a signal is: : if ((p = pfind(sc->pid_to_signal)) != N

Re: Error in my C programming

2005-02-20 Thread Zera William Holladay
On Mon, 21 Feb 2005, Kathy Quinlan wrote: > Hi Guys, > > Here is a section of my code: > > *** Wtrend_Drivers.c *** > unsigned char Length , Network , Receiver , Node , Command = 0x00; > //Some Variables > > These are some of the errors I get in pairs for each of the above variables: > > Wtrend_

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Zera William Holladay wrote: On Mon, 21 Feb 2005, Kathy Quinlan wrote: Hi Guys, Here is a section of my code: *** Wtrend_Drivers.c *** unsigned char Length , Network , Receiver , Node , Command = 0x00; //Some Variables These are some of the errors I get in pairs for each of the above variables: Wt

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: >These are some of the errors I get in pairs for each of the above variables: > >Wtrend_Drivers.c:15: conflicting types for `Receiver' >Wtrend_Drivers.h:9: previous declaration of `Receiver' Without knowing exactly what is on those lines, it

Small bug fix from DragonFly / review requested

2005-02-20 Thread Max Laier
Joerg Sonnenberger has discovered a problem in the snc(4) driver that might result in packets showing up on bpf multiple times. See the changelog for sys/dev/netif/snc/dp83932.c in their source tree[1]. Attached is a fix for HEAD. I am almost sure that it is right, but I'd welcome a review as

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9: previous declaration of `Receiver' Without knowing exactly what is on

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 11:02 am, Kathy Quinlan wrote: > Peter Jeremy wrote: > > On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: > >>These are some of the errors I get in pairs for each of the above > >> variables: > >> > >>Wtrend_Drivers.c:15: conflicting types for `Receiver' > >>Wtren

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Mon, 21 Feb 2005, Kathy Quinlan wrote: > Peter Jeremy wrote: > > > On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: > > > >>These are some of the errors I get in pairs for each of the above variables: > >> > >>Wtrend_Drivers.c:15: conflicting types for `Receiver' > >>Wtrend_Drivers.h:9:

Re: Error in my C programming

2005-02-20 Thread Gary Corcoran
Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9: previous declaration of `Receiver' Without know

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Michael C. Shultz wrote: On Sunday 20 February 2005 11:02 am, Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_D

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Richard Sharpe wrote: On Mon, 21 Feb 2005, Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9: prev

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Gary Corcoran wrote: Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9: previous declaration of `Re

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 11:48 am, Kathy Quinlan wrote: > Gary Corcoran wrote: > > Kathy Quinlan wrote: > >> Peter Jeremy wrote: > >>> On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: > These are some of the errors I get in pairs for each of the > above variables: > >

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > >> Here is a section of my code: > > >> > > >> *** Wtrend_Drivers.c *** > > >> > > >> (12)void Reset_Network (unsigned char Network) > > >> (13) { > > >> (14)Length = 0x00; > > >> (15)Receiver = 0x00; > > >> (16)Node = 0xFF; > > >> (1

Re: Error in my C programming

2005-02-20 Thread Lucas Holt
On Feb 20, 2005, at 3:41 PM, Richard Sharpe wrote: On Sun, 20 Feb 2005, Michael C. Shultz wrote: Here is a section of my code: *** Wtrend_Drivers.c *** (12)void Reset_Network (unsigned char Network) (13) { (14)Length = 0x00; (15)Receiver = 0x00; (16)Node = 0xFF; (17)Command = Rese

Re: Small bug fix from DragonFly / review requested

2005-02-20 Thread Robert Watson
On Sun, 20 Feb 2005, Max Laier wrote: > Joerg Sonnenberger has discovered a problem in the snc(4) driver that > might result in packets showing up on bpf multiple times. See the > changelog for sys/dev/netif/snc/dp83932.c in their source tree[1]. > > Attached is a fix for HEAD. I am almost su

Re: Small bug fix from DragonFly / review requested

2005-02-20 Thread Joerg Sonnenberger
On Sun, Feb 20, 2005 at 09:02:25PM +, Robert Watson wrote: > > On Sun, 20 Feb 2005, Max Laier wrote: > > > Joerg Sonnenberger has discovered a problem in the snc(4) driver that > > might result in packets showing up on bpf multiple times. See the > > changelog for sys/dev/netif/snc/dp83932.c

Re: vn_fullpath()

2005-02-20 Thread David Schultz
On Sun, Feb 20, 2005, Igor Shmukler wrote: > Hello, > > I was wondering if anyone has figured a way to make vn_fullpath() reliable? > > Perhaps there is another approach to attacking this problem. Here is what I > need > to accomplish: > > I need to be able to determine dynamic linker, shared l

Re: vn_fullpath()

2005-02-20 Thread David Schultz
On Sun, Feb 20, 2005, David Schultz wrote: > On Sun, Feb 20, 2005, Igor Shmukler wrote: > > Hello, > > > > I was wondering if anyone has figured a way to make vn_fullpath() reliable? > > > > Perhaps there is another approach to attacking this problem. Here is what I > > need > > to accomplish: >

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 12:41 pm, Richard Sharpe wrote: > On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > > >> Here is a section of my code: > > > >> > > > >> *** Wtrend_Drivers.c *** > > > >> > > > >> (12)void Reset_Network (unsigned char Network) > > > >> (13) { > > > >> (14)Length = 0

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > > > >> *** Wtrend_Drivers.c *** > > > > >> > > > > >> (12)void Reset_Network (unsigned char Network) > > > > >> (13) { > > > > >> (14)Length = 0x00; > > > > >> (15)Receiver = 0x00; > > > > >> (16)Node = 0xFF; > > > > >> (17)Comman

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
On Mon, 2005-Feb-21 03:02:29 +0800, Kathy Quinlan wrote: >Peter Jeremy wrote: >>2) Pre-process the source and have a close look at the definitions and >> declarations for Receiver. You may have a stray #define that is >> confusing the type or a missing semicolon. ... >(14)Length = 0x00; >(