Fix for errno 2 - expected 14 (EFAULT) problems

Alexander Leidinger Alexander at Leidinger.net
Sun Sep 17 13:06:57 PDT 2006


Quoting Boris Samorodov <bsam at ipt.ru> (Sun, 17 Sep 2006 22:42:21 +0400):

> On Sun, 17 Sep 2006 22:20:54 +0400 Boris Samorodov wrote:
> > On Sun, 17 Sep 2006 18:07:26 +0200 Alexander Leidinger wrote:
> 
> > > ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#4 (text+ko) ====
> 
> > > @@ -25,6 +25,8 @@
> > >  #include <sys/cdefs.h>
> > >  __FBSDID("$FreeBSD$");
> 
> > > +#include "opt_compat.h"
> > > +
> > >  #include <sys/types.h>
> > >  #include <sys/param.h>
> > >  #include <sys/systm.h>
> 
> > This patch did the trick and buildworld went further. But another
> > error occures:
> > -----

> > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_setup':
> > /usr/src/sys/compat/linux/linux_aio.c:501: warning: cast from pointer to integer of different size
> > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_destroy':
> > /usr/src/sys/compat/linux/linux_aio.c:542: warning: cast from pointer to integer of different size
> > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_getevents':
> > /usr/src/sys/compat/linux/linux_aio.c:683: warning: cast from pointer to integer of different size
> > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_submit':
> > /usr/src/sys/compat/linux/linux_aio.c:938: warning: cast from pointer to integer of different size
> > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_cancel':
> > /usr/src/sys/compat/linux/linux_aio.c:1054: warning: cast from pointer to integer of different size
> > *** Error code 1

The code isn't tested on amd64 at all. To be honest, I expected
something like this. Sorry that I haven't told you about it. Intron
submitted the i386 part, and I just added it to amd64 too. I try to
have a look at it in the next days, but I hope Intron comes up with a
patch earlier.

Bye,
Alexander.

-- 
A princess should not be afraid -- not with a brave knight to protect
her.
		-- McCoy, "Shore Leave", stardate 3025.3
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list