<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div>Thanks Valdis.</div><div>Looks like the failure is that I can not write to a 2GB buffer (char bf[2GB size]).</div><div>Where do I get the distro include file?<br></div><div><br></div>
</div><div id="yahoo_quoted_1594176044" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, July 12, 2018, 2:58:49 PM EDT, valdis.kletnieks@vt.edu <valdis.kletnieks@vt.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">On Thu, 12 Jul 2018 18:44:43 -0000, David Frank said:<br clear="none">> Hi,How do I enable the MAP_SYNC flag in mmap for linux 4.15, my code does not<br clear="none">> compile with that flag on linux 4.15.0-041500rc7-generic #201801072330<br clear="none"><br clear="none">Get your distro to ship an update to /usr/include/linux (kernel-headers) that<br clear="none">contains the flag. Your kernel supports it, but your toolchain doesn't until<br clear="none">you get an include file that includes the update for MAP_SYNC<div class="yqt1624822200" id="yqtfd08081"><br clear="none"><br clear="none">> Also, how do I make mmap support map size of 2GB or larger, currently the<br clear="none">> call to mmap fails with mapsize of 2GB.</div><br clear="none"><br clear="none">What error code does it fail with?<div class="yqt1624822200" id="yqtfd49675"><br clear="none"></div></div>_______________________________________________<br clear="none">Kernelnewbies mailing list<br clear="none"><a shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none"><a shape="rect" href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><div class="yqt1624822200" id="yqtfd24217"><br clear="none"></div></div>
</div>
</div></div></body></html>