1. 10 1月, 2014 1 次提交
  2. 07 1月, 2014 1 次提交
    • A
      Don't read forever on a file descriptor · 03e91573
      Alex Crichton 提交于
      Similarly to the recent commit to do this for networking, there's no reason that
      a read on a file descriptor should continue reading until the entire buffer is
      full. This makes sense when dealing with literal files, but when dealing with
      things like stdin this doesn't make sense.
      03e91573
  3. 25 12月, 2013 1 次提交
    • A
      std: Expose that LocalIo may not always be available · 45383695
      Alex Crichton 提交于
      It is not the case that all programs will always be able to acquire an instance
      of the LocalIo borrow, so this commit exposes this limitation by returning
      Option<LocalIo> from LocalIo::borrow().
      
      At the same time, a helper method LocalIo::maybe_raise() has been added in order
      to encapsulate the functionality of raising on io_error if there is on local I/O
      available.
      45383695
  4. 11 12月, 2013 1 次提交
  5. 27 11月, 2013 1 次提交
  6. 12 11月, 2013 1 次提交
  7. 31 10月, 2013 1 次提交
  8. 25 10月, 2013 6 次提交
    • A
      Fixing some tests, adding some pipes · 816e46dd
      Alex Crichton 提交于
      This adds constructors to pipe streams in the new runtime to take ownership of
      file descriptors, and also fixes a few tests relating to the std::run changes
      (new errors are raised on io_error and one test is xfail'd).
      816e46dd
    • A
      Move stdin to using libuv's pipes instead of a tty · 279c3518
      Alex Crichton 提交于
      I was seeing a lot of weird behavior with stdin behaving as a tty, and it
      doesn't really quite make sense, so instead this moves to using libuv's pipes
      instead (which make more sense for stdin specifically).
      
      This prevents piping input to rustc hanging forever.
      279c3518
    • A
      Remove io::read_error · 6b70ddfb
      Alex Crichton 提交于
      The general idea is to remove conditions completely from I/O, so in the meantime
      remove the read_error condition to mean the same thing as the io_error condition.
      6b70ddfb
    • A
      Migrate Rtio objects to true trait objects · 0cad9847
      Alex Crichton 提交于
      This moves as many as I could over to ~Trait instead of ~Typedef. The only
      remaining one is the IoFactoryObject which should be coming soon...
      0cad9847
    • A
      Remove unbound pipes from io::pipe · 32b07c6a
      Alex Crichton 提交于
      This isn't necessary for creating processes (or at least not right now), and
      it inherently attempts to expose implementation details.
      32b07c6a
    • A
      Implement io::net::unix · bac96818
      Alex Crichton 提交于
      bac96818
  9. 23 10月, 2013 2 次提交
  10. 22 10月, 2013 1 次提交
  11. 03 10月, 2013 1 次提交
  12. 01 10月, 2013 1 次提交
  13. 19 9月, 2013 1 次提交
    • A
      Implement process bindings to libuv · cb7756a8
      Alex Crichton 提交于
      This is a re-landing of #8645, except that the bindings are *not* being used to
      power std::run just yet. Instead, this adds the bindings as standalone bindings
      inside the rt::io::process module.
      
      I made one major change from before, having to do with how pipes are
      created/bound. It's much clearer now when you can read/write to a pipe, as
      there's an explicit difference (different types) between an unbound and a bound
      pipe. The process configuration now takes unbound pipes (and consumes ownership
      of them), and will return corresponding pipe structures back if spawning is
      successful (otherwise everything is destroyed normally).
      cb7756a8
  14. 30 8月, 2013 1 次提交
  15. 28 8月, 2013 1 次提交