You can also look at the Mono.Native and Mono.Posix <br clear="all">It&#39;s all in there already<br><br><div class="gmail_quote">On Thu, Feb 25, 2010 at 10:48 PM, Tomas Matousek <span dir="ltr">&lt;<a href="mailto:Tomas.Matousek@microsoft.com">Tomas.Matousek@microsoft.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">It would actually be better <b>not</b> to use FFI whenever possible. Native code interop is platform specific and thus would require us to maintain multiple implementations. If there is a managed API in Mono that does what we need we should use it.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Tomas</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Jim Deville<br>

<b>Sent:</b> Thursday, February 25, 2010 1:34 PM</span></p><div><div></div><div class="h5"><br><b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br><b>Subject:</b> Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono?</div>

</div><p></p></div></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I don’t think we have time to do FFI for our 1.0, but it would be useful to have it implemented soon after </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:11.0pt;color:#1F497D"></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">JD</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Ryan Riley<br>

<b>Sent:</b> Thursday, February 25, 2010 1:28 PM<br><b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br><b>Subject:</b> Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono?</span></p>

<p class="MsoNormal"> </p><div><p class="MsoNormal">I can try it next week once I have my machine set up again. I&#39;m unable to try it until then, unfortunately. Also, I noticed that JRuby is sharing the same implementation (or similar), but both are based on FFI, not straight up Ruby.</p>

</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Has anyone started working on an IronRuby FFI impl? If not, would it be better to start working on this and get Etc working with FFI?</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br clear="all">Ryan Riley<br><br>Email: <a href="mailto:ryan.riley@panesofglass.org" target="_blank">ryan.riley@panesofglass.org</a><br>LinkedIn: <a href="http://www.linkedin.com/in/ryanriley" target="_blank">http://www.linkedin.com/in/ryanriley</a><br>

Blog: <a href="http://wizardsofsmart.net/" target="_blank">http://wizardsofsmart.net/</a><br>Twitter: @panesofglass<br>Website: <a href="http://panesofglass.org/" target="_blank">http://panesofglass.org/</a></p></div><div>

<p class="MsoNormal">On Thu, Feb 25, 2010 at 2:42 PM, Shri Borde &lt;<a href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>&gt; wrote:</p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I think we should be able to use it. I shall double-check and let you know.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">In the meantime, would it be possible to manually copy the file into the lib folder try to run igem on *nix to see if there are other blocking issues?</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Ryan Riley<br>

<b>Sent:</b> Thursday, February 25, 2010 12:29 PM </span></p><div><div><p class="MsoNormal"><span style="font-size:10.0pt"><br><b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>

<b>Subject:</b> Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono?</span></p></div></div></div><div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">Sorry, link: <a href="http://github.com/evanphx/rubinius/blob/master/lib/etc.rb.ffi" target="_blank">http://github.com/evanphx/rubinius/blob/master/lib/etc.rb.ffi</a></p>

</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br clear="all">Ryan Riley<br><br>Email: <a href="mailto:ryan.riley@panesofglass.org" target="_blank">ryan.riley@panesofglass.org</a><br>LinkedIn: <a href="http://www.linkedin.com/in/ryanriley" target="_blank">http://www.linkedin.com/in/ryanriley</a><br>

Blog: <a href="http://wizardsofsmart.net/" target="_blank">http://wizardsofsmart.net/</a><br>Twitter: @panesofglass<br>Website: <a href="http://panesofglass.org/" target="_blank">http://panesofglass.org/</a></p></div><div>

<p class="MsoNormal">On Thu, Feb 25, 2010 at 2:28 PM, Ryan Riley &lt;<a href="mailto:ryan.riley@panesofglass.org" target="_blank">ryan.riley@panesofglass.org</a>&gt; wrote:</p><div><p class="MsoNormal">Looks like Rubinius already has a Ruby impl. of Etc for FFI. It&#39;s licensed with BSD. Is that problematic? If so, I&#39;ll start from the specs.</p>

</div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br clear="all">Ryan Riley<br><br>Email: <a href="mailto:ryan.riley@panesofglass.org" target="_blank">ryan.riley@panesofglass.org</a><br>LinkedIn: <a href="http://www.linkedin.com/in/ryanriley" target="_blank">http://www.linkedin.com/in/ryanriley</a><br>

Blog: <a href="http://wizardsofsmart.net/" target="_blank">http://wizardsofsmart.net/</a><br>Twitter: @panesofglass<br>Website: <a href="http://panesofglass.org/" target="_blank">http://panesofglass.org/</a></p></div></div>

<div><div><div><p class="MsoNormal">On Thu, Feb 25, 2010 at 12:26 PM, Shri Borde &lt;<a href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>&gt; wrote:</p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Cool! Let us know if you have any questions.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Ryan Riley<br>

<b>Sent:</b> Thursday, February 25, 2010 8:27 AM<br><b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br><b>Subject:</b> Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono?</span></p>

</div><div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">If no one has done this by the time I&#39;m moved and have a machine again, I&#39;ll be happy to do it.</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br clear="all">Ryan Riley<br><br>Email: <a href="mailto:ryan.riley@panesofglass.org" target="_blank">ryan.riley@panesofglass.org</a><br>LinkedIn: <a href="http://www.linkedin.com/in/ryanriley" target="_blank">http://www.linkedin.com/in/ryanriley</a><br>

Blog: <a href="http://wizardsofsmart.net/" target="_blank">http://wizardsofsmart.net/</a><br>Twitter: @panesofglass<br>Website: <a href="http://panesofglass.org/" target="_blank">http://panesofglass.org/</a></p></div><div>

<p class="MsoNormal">On Wed, Feb 24, 2010 at 2:20 PM, Shri Borde &lt;<a href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>&gt; wrote:</p><div><div><p class="MsoNormal"><a href="http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3543" target="_blank">http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3543</a> blocks using RubyGems on *nix. It should be fairly easy to implement Etc.rb as pure Ruby code using the File functionality. The spec for Etc is at <a href="http://www.ruby-doc.org/stdlib/libdoc/etc/rdoc/classes/Etc.html" target="_blank">http://www.ruby-doc.org/stdlib/libdoc/etc/rdoc/classes/Etc.html</a>. RubyGems just seems to need Etc.getpwuid.</p>

<p class="MsoNormal"> </p><p class="MsoNormal">Anyone interested in tackling this problem?</p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="color:#888888">Shri</span></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br>_______________________________________________<br>Ironruby-core mailing list<br><a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a></p>

</div><p class="MsoNormal"> </p></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Ironruby-core mailing list<br><a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>

<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a></p></div><p class="MsoNormal"> </p></div></div></div><p class="MsoNormal"> </p></div></div>

</div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Ironruby-core mailing list<br><a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>

<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a></p></div><p class="MsoNormal"> </p></div></div></div></div><br>_______________________________________________<br>


Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br>