[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 21462 open a file stream based on fd or file (#222)
akgrant43
notifications at github.com
Fri Mar 2 10:32:06 UTC 2018
Extend FilePlugin to allow a file to be opened using either the file
descriptor (fd) or FILE* in Pharo.
Original PR: https://github.com/pharo-project/pharo-vm/pull/108
Updated PR: https://github.com/pharo-project/pharo-vm/pull/142
(both superseeded)
As a (redundant) example of how this can be used, to open stderr (fd=2)
for writing:
| stderr |
stderr := BinaryFileStream handle: (FilePluginPrims new
openFileDescriptor: 2 writable: true)
file: (File named: 'fd2')
forWrite: true
stderr nextPutAll: 'Hello World'; lf.
You can view, comment on, or merge this pull request online at:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222
-- Commit Summary --
* 21462-Open a FileStream based on fd or FILE*
* 21462-Open-a-FileStream-based-on-fd-or-FILE
-- File Changes --
M platforms/Cross/plugins/FilePlugin/FilePlugin.h (5)
M platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c (35)
M src/plugins/FilePlugin/FilePlugin.c (153)
-- Patch Links --
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.patch
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180302/d59142e4/attachment.html>
More information about the Vm-dev
mailing list