[openbeosnetteam] Re: Select code...

OK. Any idea why the select hooks don't work?

david

----- Original Message ----- 
From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
To: <openbeosnetteam@xxxxxxxxxxxxx>
Sent: Wednesday, March 27, 2002 8:41 AM
Subject: [openbeosnetteam] Re: Select code...


> Axel wrote:
> > > This is the code I'm using and it doesn't work!
> >
> > The kernel's ioctl obviously don't return the exact value you return 
> in
> > your driver hook.
> > Although, judging from the implementation (in fs-kit) it should do
> > that...?
> 
> Yes, unfortunatly it seems that R5 ioctl() is broken on this topic, and 
> always return 
> B_ERROR (-1) when the driver control hook return a negative value...
> 
> Even Howard Berkley hit this bug. Look at the structure he use to 
> communicate between BONE lobsocket.so and his /dev/net/api BONE driver:
> 
> ----------8<-----------------------------
> typedef struct socket_ioctl
> {
> int rc;
> int family;
> int type;
> int proto;
> } socket_ioctl_t;
> -----------8<---------------------------
> 
> We can bet that this first 'rc' field, present in all *_ioctl 
> structures used, stands for 'result code'.
> Let follow his solution...
> 
> Philippe.
> 
> 
> --
> Fortune Cookie Says:
> 
> Different all twisty a of in maze are you, passages little.
> 
> 
> 


Other related posts: