Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

primitiveFileAtEnd / sqFileAtEnd stdio handling #243

Merged
merged 1 commit into from Apr 9, 2018
Merged

primitiveFileAtEnd / sqFileAtEnd stdio handling #243

merged 1 commit into from Apr 9, 2018

Conversation

akgrant43
Copy link
Contributor

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.

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.
@akgrant43 akgrant43 merged commit 6bee4d2 into OpenSmalltalk:Cog Apr 9, 2018
@akgrant43 akgrant43 deleted the AtEndMkII branch April 9, 2018 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants