<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Yep, it fixes the problem. <br>
Can you please add this to the 0.9.20 release ?<br>
<br>
Erik Andersen wrote:<br>
<blockquote type="cite" cite="mid20030306154724.GA29745@codepoet.org">
  <pre wrap="">On Thu Mar 06, 2003 at 05:16:44PM +0200, Sirotkin, Alexander wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Just tried uClibc on our mips platform and discovered
the mmap bug.

I'm still not sure what exactly happens, mmap() returns
a valid address but it does not point to a correct physical
memory address.

The same code works on 0.9.16 and with glibc.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Could you check if applying this to uClibc make mmap 
work as expected on mips?  It may be that the mmap2
syscall is totally broken on mips,

--- libc/sysdeps/linux/mips/_mmap.c        26 Feb 2003 02:13:55 -0000        1.2
+++ libc/sysdeps/linux/mips/_mmap.c        6 Mar 2003 15:45:50 -0000
@@ -5,7 +5,9 @@
 #include &lt;sys/syscall.h&gt;
 
+#if 0
 #ifdef __NR_mmap2
 # undef __NR_mmap
 # define __NR_mmap __NR_mmap2
+#endif
 #endif
 
 -Erik

--
Erik B. Andersen             <a class="moz-txt-link-freetext" href="http://codepoet-consulting.com/">http://codepoet-consulting.com/</a>
--This message was written using 73% post-consumer electrons--
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Alexander Sirotkin
SW Engineer

Texas Instruments
Broadband Communications Israel (BCIL)
Tel:  +972-9-9706587
________________________________________________________________________
"Those who do not understand Unix are condemned to reinvent it, poorly."
      -- Henry Spencer 
</pre>
</body>
</html>