On Tue, 5 Nov 2013 14:25:25 -0500 David Goulet <[email protected]> wrote:
> I encountered that on FreeBSD but I can't really make it go > away :S ... mmap() returns a void * but syscall() returns an int on > BSD but even with a cast it prints the warning... I have *no* idea > how *BSD systems handle syscall(SYS_MMAP, ...) for instance on an x64 > system when syscall() returns an int (8 bytes vs 4 bytes). They don't, because people should be using __syscall for mmap on those systems. Quoting the relevant parts from the documentation: off_t __syscall(quad_t number, ...); The __syscall() form should be used when one or more of the arguments is a 64-bit argument to ensure that argument alignment is correct. Regards, -- Yawning Angel
signature.asc
Description: PGP signature
_______________________________________________ tor-dev mailing list [email protected] https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
