>> is it possible to have 0 as a valid address? - if not, this should
>> be the return on errors.
>SuS explicitly says that 0 is not a valid mmap return address.
Not in my copy of the SuS, version 2, but yes in my man page
about mmap(). Anyway, Linus told me that he doesn't like to change
the semantics for mmap, so it can return 0.
I don't like mmap() returning 0, but I don't like too breaking
the old behaviour of the kernel. Moreover, 0 is returned only if the
length requested is 0 and the address passed as hint is 0 too... I
don't see any problem about it.
Raśl
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/