[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] primitiveFileAtEnd / sqFileAtEnd stdio handling (#243)

akgrant43 notifications at github.com
Sun Apr 8 15:11:58 UTC 2018


Modify sqFileAtEnd (primitiveFileAtEnd) so that:

- stdout & stderr always return false
  feof() isn't valid on these files.
- Don't peek if stdin is a terminal
  We don't want to block in this case.
- Don't peek if already at end
  There's no need.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/243

-- Commit Summary --

  * primitiveFileAtEnd / sqFileAtEnd stdio handling

-- File Changes --

    M platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c (18)

-- Patch Links --

https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/243.patch
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/243.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/243
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180408/db1ba937/attachment.html>


More information about the Vm-dev mailing list