On Fri, 17 Sep 1999, Dresner, Norman A. wrote:

> Since I just copied the call to mmap() with the MAP_FIXED qualifier from the
> call to mmap() without, it actually specified a starting address of 0.
> That's my fault.
> 
> But there was no error condition returned by mmap() -- errno was 0 and the
> return value wasn't MAP_FAILED. -- which should indicate that the request
> has been granted and that I can use the returned pointer.  That's obviously
> not true and I think that it's NOT my fault.

OK, now I think it returned 0, because there was NO ERROR. You just got your
memory mmaped where you requested - at 0. You can now use NULL pointers for
some useful job - congratulations :-) You got what you wanted :-)

---
Tomek

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to