Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 83020684c5ea
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c1102f2b4d1d
Choose a head ref
  • 6 commits
  • 6 files changed
  • 1 contributor

Commits on Feb 28, 2016

  1. Copy the full SHA
    ca75509 View commit details
  2. Copy the full SHA
    e3982aa View commit details
  3. Copy the full SHA
    b47d6b0 View commit details
  4. Copy the full SHA
    4093af1 View commit details
  5. remove dead code

    chuckremes committed Feb 28, 2016
    Copy the full SHA
    42fb0bc View commit details
  6. Copy the full SHA
    c1102f2 View commit details
Showing with 30 additions and 1,321 deletions.
  1. +0 −29 core/io.rb
  2. +15 −982 vm/builtin/io.cpp
  3. +2 −162 vm/builtin/io.hpp
  4. +9 −2 vm/console.cpp
  5. +4 −9 vm/ontology.cpp
  6. +0 −137 vm/test/test_io.hpp
29 changes: 0 additions & 29 deletions core/io.rb
Original file line number Diff line number Diff line change
@@ -1,40 +1,11 @@
class IO
include Enumerable

def finalizer(io)
return unless io.descriptor
return if io.descriptor == -1

# FIXME: bunch of stuff about flushing if there are unwritten bytes.
# Not sure what to do until I figure out all of hte mmap stuff.

# don't close stdin, stdout or stderr (file descriptors 0, 1 and 2)
if io.descriptor > 2 # FIXME: should use a constant here instead of 2?
# FIXME: more stuff I don't quite understand until mmap stuff is figured out
end
end

def self.finalizer(io)
Proc.new do
io.finalizer(io)
end
end

def self.fnmatch(pattern, path, flags)
Rubinius.primitive :io_fnmatch
raise PrimitiveFailure, "IO#fnmatch primitive failed"
end

#
# Close read and/or write stream of a full-duplex descriptor.
#
# @todo More documentation. Much more. --rue
#
def shutdown(how)
Rubinius.primitive :io_shutdown
raise PrimitiveFailure, "IO#shutdown primitive failed"
end

def socket_recv(bytes, flags, type)
Rubinius.primitive :io_socket_read
raise PrimitiveFailure, "io_socket_read failed"
Loading