[Vm-dev] Stdin/stdout/stderr support
Bert Freudenberg
bert at freudenbergs.de
Fri Aug 29 13:40:56 UTC 2008
I have implemented direct support for std streams:
http://squeakvm.org/svn/squeak/branches/olpc/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c
This will catch filenames like "/dev/stderr" and connect the real
stderr instead (also preventing to close these).
This file pattern is in usage already, e.g.
http://lists.squeakfoundation.org/pipermail/beginners/2007-April/002268.html
In OLPC we used this to log errors (we added FileStream class>>stderr
etc.) because SqueakDebug.log is in an unaccessible place, but using
the /dev/stderr symlink is broken by the security architecture, so I
need to access the actual stderr.
Any objections to make this go into the trunk Cross platform dir?
- Bert -
More information about the Vm-dev
mailing list