<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I had a few questions regarding Darwin trace library.</div><div><br></div><div>Darwintrace library being injected, most I/O operations get reimplemented.</div><div>If a “single” process is working on files, it more or less should call most of these functions again and again.</div><div>Like that particular process may call open, rename, rmdir etc.</div><div>So lets say a process was allowed to open file “X”. (closed it too)</div><div>The same process has to do rmdir now. So it will again call __darwintrace_is_in_sandbox().</div><div>If a file has already been checked once, that file path can be stored at a place so that all these checks don’t need to be re-performed </div><div>and next time if the same process is calling any of these functions, it doesn’t need to call the time taking __darwintrace_is_in_sandbox() and should check that list of already checked files first.</div><div>This should optimise the trace mode to some extent.</div><div>Is that right or am I mistaken somewhere?</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 12:22 AM Mihir Luthra <<a href="mailto:1999mihir.luthra@gmail.com" target="_blank">1999mihir.luthra@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div>I wanted to contribute to the MacPorts documentation.</div><div>The guide says that it currently is in docboook format with work in progress to change it to adoc.</div><div>Actually I got a bit confused with this.</div><div>Where exactly should I add a file in order to create a new section?</div><div>Like currently there are 7 sections in MacPorts documentation.</div><div><br></div><div>I was thinking to add an 8th section which gives a small high level tour of the codebase to a newcomer joining the community.</div><div>I personally would only be able to give tour of trace mode, but that section can be populated with other topics as well later.</div><div><br></div><div>Mojca, I will stick to this email thread for any further communications</div></div><div>Apologies for previously creating many!</div><div><br></div><div>Regards</div><div><br></div><div>-Mihir</div><div><br></div></div>
</blockquote></div>