Branch: refs/heads/Cog
Home:
https://github.com/OpenSmalltalk/opensmalltalk-vm Commit: 362a315766492395224f5ff8b35fcefab643133e
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/362a315766492395224f5ff8b35fcefab643133e Author: AlistairGrant <
[hidden email]>
Date: 2018-03-01 (Thu, 01 Mar 2018)
Changed paths:
M platforms/Cross/plugins/FilePlugin/FilePlugin.h
M platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c
M src/plugins/FilePlugin/FilePlugin.c
Log Message:
-----------
21462-Open a FileStream based on fd or FILE*
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/108Updated 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.
stderr close.
Commit: c452eb3d62e52676fdc35700265efdaaf2b60dbe
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/c452eb3d62e52676fdc35700265efdaaf2b60dbe Author: AlistairGrant <
[hidden email]>
Date: 2018-03-02 (Fri, 02 Mar 2018)
Changed paths:
M src/plugins/FilePlugin/FilePlugin.c
Log Message:
-----------
21462-Open-a-FileStream-based-on-fd-or-FILE
Remove temporary version method.
Commit: 12586de3c8554bc5d792afed5f295c1ae69b7989
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/12586de3c8554bc5d792afed5f295c1ae69b7989 Author: AlistairGrant <
[hidden email]>
Date: 2018-03-03 (Sat, 03 Mar 2018)
Changed paths:
M platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c
Log Message:
-----------
21462-Open-a-FileStream-based-on-fd-or-FILE
Not supported on Windows
Commit: ac4145b7b5b036e57889e3e99076926c9a82f059
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ac4145b7b5b036e57889e3e99076926c9a82f059 Author: akgrant43 <
[hidden email]>
Date: 2018-03-03 (Sat, 03 Mar 2018)
Changed paths:
M platforms/Cross/plugins/FilePlugin/FilePlugin.h
M platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c
M platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c
M src/plugins/FilePlugin/FilePlugin.c
Log Message:
-----------
Merge pull request #222 from akgrant43/21462-Open-a-FileStream-based-on-fd-or-FILE
21462 open a file stream based on fd or file
Extend FilePlugin to allow a file to be opened using either the file
descriptor (fd) or FILE* in Pharo on Posix platforms.
See also:
https://pharo.fogbugz.com/f/cases/21462/Open-a-FileStream-based-on-fd-or-FILECompare:
https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/4b58edcae0b8...ac4145b7b5b0