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

Mike Frysinger vapier at gentoo.org
Tue May 22 02:17:22 UTC 2012


On Friday 18 May 2012 22:09:46 Mike Frysinger wrote:
> 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

i ended up applying the other one you sent since this resend is slightly 
corrupted

thanks!
-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/20120521/ed9acefd/attachment.asc>


More information about the uClibc mailing list