User: Password:
Subscribe / Log in / New account

Reorganizing the address space

Reorganizing the address space

Posted Jul 1, 2004 17:48 UTC (Thu) by vmole (guest, #111)
In reply to: Reorganizing the address space by ajax
Parent article: Reorganizing the address space

Such applications are already broken. There's never been any guarantee that the the specified start address would be honored, and the mmap documentation has always been clear on that.

(Log in to post comments)

Reorganizing the address space

Posted Jul 1, 2004 18:56 UTC (Thu) by obobo (guest, #684) [Link]

There's a difference between non-portable and broken. For example, I've used the mmap start address specification to do emulation and testing (on my desktop machine) of a flash filesystem that would run on an embedded device (and that was located at a certain address on that device). While the mmap call wasn't guaranteed to work, it did, and saved me a few weeks of effort re-writing the filesystem.

If this change broke my program (it didn't) I wouldn't have cause to yell too loud; it was not guaranteed to continue to work. But I still wouldn't call the program "broken".


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds