From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [130.237.48.193]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s79Bpt2T024869 for ; Sat, 9 Aug 2014 07:51:58 -0400 (EDT) Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id B716EC9A for ; Sat, 9 Aug 2014 13:51:54 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3vjnMMxD8TKT for ; Sat, 9 Aug 2014 13:51:43 +0200 (CEST) X-KTH-Auth: kristaps [2a02:1205:5033:5b0:c187:c525:e154:78f6] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: tech@mdocml.bsd.lv Received: from [IPv6:2a02:1205:5033:5b0:c187:c525:e154:78f6] (unknown [IPv6:2a02:1205:5033:5b0:c187:c525:e154:78f6]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id C82B42AC for ; Sat, 9 Aug 2014 13:51:37 +0200 (CEST) Message-ID: <53E60B48.5000003@bsd.lv> Date: Sat, 09 Aug 2014 13:51:36 +0200 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv Subject: OSX + mmap + mansearch.c + documentation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Small thing noticed in OSX: % /usr/local/bin/apropos find mmap: Invalid argument According to the Mac OSX manpage for mmap(2), this is because: [EINVAL] flags does not include either MAP_PRIVATE or MAP_SHARED. It's easy enough to add a mmap_flags variable as MAP_ANON | blah and ifdef it to do one or the other. (I hesitate to say which, but am guessing MAP_PRIVATE since the page cache isn't (???) shared across processes.) In general, the section scares me--I vaguely guess at what's happening, but have no idea why. So more pertinently than the bit-field would be to document this section! Ingo mentions the speed reduction in his talk (pg. 20, http://www.openbsd.org/papers/bsdcan14-mandoc.pdf), but not /why/ there's a speed reduction. Best, Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv