[PATCH] mmap()->sys_mmap2: do unsigned shift of offset

Mike Frysinger vapier at gentoo.org
Sat May 19 02:09:46 UTC 2012


On Thursday 17 May 2012 07:47:11 James Hogan wrote:
> Is it always correct to cast __off_t to __u_long? I'm a bit unclear
> whether it's still correct on 64bit architectures or with long file
> support.

this isn't mmap64 (which uses __off64_t), so it's fine.  you can see that 
everyone defines __off_t to __SLONGWORD_TYPE regardless of bitsize.

if no one else has feedback, i'll merge this in a bit
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120518/833c150f/attachment.asc>


More information about the uClibc mailing list