Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 16, 2024
Please find attached a rough patch for this.
Possible issues with the patch are:
1.  Adds an extra fstat() syscall to every call to get-bytevector-all.
2.  No Windows support, only tested in Linux.
3.  isFIFO() doesn't handle errors, not sure how to go about this?
4.  Adds 2 private methods to FileBinaryInputPort

If you think this approach is OK I can write a test for it in tests/process.scm.

Original comment by [email protected] on 27 Feb 2012 at 7:56

Attachments:

from mosh-scheme.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 16, 2024
Cc me.

I feel we need additional return value on File::size() at OSCompat.cpp.

ie.) Currently, we have 2 condition for File::size() return value:

-1 = Invalid file descriptor
otherwise = File size

We need additional one;

-2 = Object has indefinite size (eg. pipes)


Original comment by [email protected] on 29 Feb 2012 at 5:47

  • Added labels: Component-Core

from mosh-scheme.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 16, 2024
An updated patch is attached implementing this approach plus a test in 
tests/process.scm.

Original comment by [email protected] on 5 Mar 2012 at 9:40

Attachments:

from mosh-scheme.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 16, 2024
Thank you for your patch.
Will you define or enum the -2 value?

Original comment by [email protected] on 20 May 2012 at 8:32

  • Changed state: Accepted

from mosh-scheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.