On Fri, 19 Sep 2008, Dinar Temirbulatov wrote: > mmptr = (unsigned short *)mmap((void *)0, 0x1000, > PROT_READ | PROT_WRITE, MAP_SHARED, > mmh, 0xb6000000); Ah, so it is the file offset you are concerned about. Fair enough then. Obviously the non-LFS 32-bit variation has to sign-extend the offset as this is how the off_t type has been defined in this case, though it is interesting to note that the kernel treats this argument as unsigned while the C library API defines it as signed and there is no range checking in between. Hmm... Maciej