mmap/mmap2 parameters type

Marcus von Appen mva at sysfault.org
Tue Jan 1 07:45:40 PST 2008


On, Tue Jan 01, 2008, Roman Divacky wrote:

> 
> can someone tell me why? I dont think its correct. if you accept my analysis, 
> is this patch correct?
> 
> Index: linux.h
> ===================================================================
> RCS file: /home/ncvs/src/sys/i386/linux/linux.h,v
> retrieving revision 1.78
> diff -u -r1.78 linux.h
> --- linux.h     18 Sep 2007 19:50:33 -0000      1.78
> +++ linux.h     1 Jan 2008 12:20:54 -0000
> @@ -143,12 +143,12 @@
>  #define        LINUX_MAP_GROWSDOWN     0x0100
> 
>  struct l_mmap_argv {
> -       l_uintptr_t     addr;
> -       l_size_t        len;
> -       l_int           prot;
> -       l_int           flags;
> -       l_int           fd;
> -       l_off_t         pgoff;
> +       l_ulong         addr;
> +       l_ulong         len;
> +       l_ulong         prot;
> +       l_ulong         flags;
> +       l_ulong         fd;
> +       l_ulong         pgoff;
>  } __packed;
> 
>  /*
> 
> 
> marcus, can you please test if that makes any difference with your problems? 
> (I dont think it will but you never know ;) )

No, it does not.

Regards
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20080101/bc1f2d1c/attachment.pgp


More information about the freebsd-emulation mailing list