NO. The NULL pointer pointed to an area of all zeros, not to the desired
area.
But at least I got the test program working so I can get on with the real
one.
Thanks again.
Norm
> -----Original Message-----
> From: Tomasz Motylewski [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, September 17, 1999 11:50 AM
> To: Dresner, Norman A.
> Cc: 'RTLinux'
> Subject: RE: [rtl] strange return from mmap()
>
> 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/