[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 1/2] lib/ukmmap: Add stub for mremap


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2019 15:58:34 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AMbXt77iHlH6aA5fsprWI2NM1gZIpbqOtxj/z5HasaA=; b=hFoiuQwdP5YT2QIOx7Bn808YznTY6bwfTDeovA6PJw9SnUQSa68CQ78fyKqNIazLqpZxHzcOMeh95gxAMY81ZNw3ug8lqahR3t6ZEMjfVrbU9UJHOOSsjAVgBpFfihkmYoMKqkNhVDbi3snHGbd5Ww35393gVopiP7Ry/i3FfRWyDxpD7XzAGPqwDrBYMCxiGjSbTbg+Ao4F1ZXNxHIBfClbGm5xBwZMkr7Yl/QHI1Op7p2/P0kuII3qV7LgiR1DPnCT5tKHSWupeQz5HEgsJtzvGE3IUIGkMIncx8Q70qC172tsmBwXXKAU7CwWkjGsVPPDXzh5rWW5co3ZvAB11A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hqvg2sEOn+3Ar9BbcblprdNtYl7kdECXsBbRSSPXA7efI2gUAKip0FtzeBk9jdbP+4Tu3rMFwaJRE2VaOwEFxT20faz25nwVw4Td4mqvmH1nUs0W+U040pCXmC4w1YA4iFxSwUjBPGR9z2mnBZKecN9RYkCLPyNSAVfmNcIQQpeWNj9ZJXqQ1hhCbbsPhfkarA0o05SfDDRii/v4TPaW61VA/jby/EMZHhaXYCndy/Qzlgck6XMIJRpR+zQL/f4kwSOTCal+fveuHPImiZd12bZ+w+vSnoAoIoinTcBJUcEuFOLdLF/bu0OOR38f/V/06+8mZiosXd6R1rUiHbOC8A==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 18 Nov 2019 15:58:45 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVnikI45NozXwI7EyHvKhIQnM64g==
  • Thread-topic: [UNIKRAFT PATCH 1/2] lib/ukmmap: Add stub for mremap

The stub returns -1 in order to avoid bad memory accesses by the calling
function.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 lib/ukmmap/exportsyms.uk | 1 +
 lib/ukmmap/mmap.c        | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/lib/ukmmap/exportsyms.uk b/lib/ukmmap/exportsyms.uk
index a31c636b..6b8c116d 100644
--- a/lib/ukmmap/exportsyms.uk
+++ b/lib/ukmmap/exportsyms.uk
@@ -1,2 +1,3 @@
 mmap
 munmap
+mremap
diff --git a/lib/ukmmap/mmap.c b/lib/ukmmap/mmap.c
index 4e24f379..52c49e24 100644
--- a/lib/ukmmap/mmap.c
+++ b/lib/ukmmap/mmap.c
@@ -164,3 +164,9 @@ int munmap(void *addr, size_t len)
        /* unimplemented munmap */
        return 0;
 }
+
+void *mremap(void *old_address, size_t old_size, size_t new_size,
+               int flags, ...)
+{
+       return -1;
+}
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.