]> git.proxmox.com Git - qemu.git/blobdiff - darwin-user/mmap.c
configure: add '--disable-cocoa' switch
[qemu.git] / darwin-user / mmap.c
index ada613d361041be96d2e64c9a94675e187b91d2c..d840b28d383f6d7d308a23b44b0832443d6b7c27 100644 (file)
@@ -14,8 +14,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include <stdlib.h>
 #include <stdio.h>
@@ -130,7 +129,7 @@ int mmap_frag(unsigned long host_start,
         if ((flags &  MAP_SHARED) &&
 #endif
             (prot & PROT_WRITE))
-            return -EINVAL;
+            return -1;
 
         /* adjust protection to be able to read */
         if (!(prot1 & PROT_WRITE))
@@ -199,7 +198,7 @@ long target_mmap(unsigned long start, unsigned long len, int prot,
 
     if (!(flags & MAP_FIXED)) {
 #if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__)
-        /* tell the kenel to search at the same place as i386 */
+        /* tell the kernel to search at the same place as i386 */
         if (host_start == 0) {
             host_start = last_start;
             last_start += HOST_PAGE_ALIGN(len);
@@ -408,4 +407,3 @@ int target_msync(unsigned long start, unsigned long len, int flags)
     start &= qemu_host_page_mask;
     return msync((void *)start, end - start, flags);
 }
-