Re: mmap is broken for MIPS64 n32 and o32 abis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux