<p>Extend FilePlugin to allow a file to be opened using either the file<br>
descriptor (fd) or FILE* in Pharo.</p>
<p>Original PR: <a href="https://github.com/pharo-project/pharo-vm/pull/108" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="178635504" data-permission-text="Issue title is private" data-url="https://github.com/pharo-project/pharo-vm/issues/108">pharo-project/pharo-vm#108</a><br>
Updated PR: <a href="https://github.com/pharo-project/pharo-vm/pull/142" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="252589997" data-permission-text="Issue title is private" data-url="https://github.com/pharo-project/pharo-vm/issues/142">pharo-project/pharo-vm#142</a></p>
<p>(both superseeded)</p>
<p>As a (redundant) example of how this can be used, to open stderr (fd=2)<br>
for writing:</p>
<pre><code>| stderr |

stderr := BinaryFileStream handle: (FilePluginPrims new
    openFileDescriptor: 2 writable: true)
        file: (File named: 'fd2')
        forWrite: true

stderr nextPutAll: 'Hello World'; lf.
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>21462-Open a FileStream based on fd or FILE*</li>
  <li>21462-Open-a-FileStream-based-on-fd-or-FILE</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222/files#diff-0">platforms/Cross/plugins/FilePlugin/FilePlugin.h</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222/files#diff-1">platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c</a>
    (35)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222/files#diff-2">src/plugins/FilePlugin/FilePlugin.c</a>
    (153)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.patch'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.patch</a></li>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.diff'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW0oyl89tZQ_fKidMzloLQUU4-B7Tks5taR-kgaJpZM4SZssg">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AhLyW0Rw2V2zOyV35gyEz1IzupZzYDHBks5taR-kgaJpZM4SZssg.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"21462 open a file stream based on fd or file (#222)"}],"action":{"name":"View Pull Request","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222"}}}</script>