Extend FilePlugin to allow a file to be opened using either the file
descriptor (fd) or FILE* in Pharo.
Original PR: pharo-project/pharo-vm#108
Updated PR: pharo-project/pharo-vm#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.
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/222
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.