@@ -33,15 +33,15 @@ def self.finalizer(io)
33
33
# raise PrimitiveFailure, "IO.open_with_mode primitive failed"
34
34
# end
35
35
36
- def self . connect_pipe ( lhs , rhs )
37
- Rubinius . primitive :io_connect_pipe
38
- raise PrimitiveFailure , "IO.connect_pipe primitive failed"
39
- end
40
-
41
- def self . select_primitive ( readables , writables , errorables , timeout )
42
- Rubinius . primitive :io_select
43
- raise IOError , "Unable to select on IO set (descriptor too big?)"
44
- end
36
+ # def self.connect_pipe(lhs, rhs)
37
+ # Rubinius.primitive :io_connect_pipe
38
+ # raise PrimitiveFailure, "IO.connect_pipe primitive failed"
39
+ # end
40
+ #
41
+ # def self.select_primitive(readables, writables, errorables, timeout)
42
+ # Rubinius.primitive :io_select
43
+ # raise IOError, "Unable to select on IO set (descriptor too big?)"
44
+ # end
45
45
46
46
def self . fnmatch ( pattern , path , flags )
47
47
Rubinius . primitive :io_fnmatch
@@ -60,10 +60,10 @@ def self.fnmatch(pattern, path, flags)
60
60
# raise PrimitiveFailure, "IO::sysread primitive failed"
61
61
# end
62
62
63
- def write2 ( str )
64
- Rubinius . primitive :io_write
65
- raise PrimitiveFailure , "IO#write primitive failed"
66
- end
63
+ # def write2(str)
64
+ # Rubinius.primitive :io_write
65
+ # raise PrimitiveFailure, "IO#write primitive failed"
66
+ # end
67
67
68
68
# def read_if_available(size)
69
69
# Rubinius.primitive :io_read_if_available
@@ -75,44 +75,44 @@ def write2(str)
75
75
# raise PrimitiveFailure, "IO#write_nonblock primitive failed"
76
76
# end
77
77
78
- def reopen_io ( other )
79
- Rubinius . primitive :io_reopen
80
- raise ArgumentError , "IO#prim_reopen only accepts an IO object"
81
- end
82
-
83
- def reopen_path ( string , mode )
84
- Rubinius . primitive :io_reopen_path
85
-
86
- if mode . kind_of? Bignum
87
- raise ArgumentError , "Bignum too big for mode"
88
- end
89
-
90
- reopen_path StringValue ( string ) , Integer ( mode )
91
- end
78
+ # def reopen_io(other)
79
+ # Rubinius.primitive :io_reopen
80
+ # raise ArgumentError, "IO#prim_reopen only accepts an IO object"
81
+ # end
82
+ #
83
+ # def reopen_path(string, mode)
84
+ # Rubinius.primitive :io_reopen_path
85
+ #
86
+ # if mode.kind_of? Bignum
87
+ # raise ArgumentError, "Bignum too big for mode"
88
+ # end
89
+ #
90
+ # reopen_path StringValue(string), Integer(mode)
91
+ # end
92
92
93
93
# def prim_seek(amount, whence)
94
94
# Rubinius.primitive :io_seek
95
95
# raise RangeError, "#{amount} is too big"
96
96
# end
97
97
98
- def self . prim_truncate ( name , offset )
99
- Rubinius . primitive :io_truncate
100
- raise RangeError , "#{ offset } is too big"
101
- end
102
-
103
- def prim_ftruncate ( offset )
104
- Rubinius . primitive :io_ftruncate
105
- raise RangeError , "#{ amount } is too big"
106
- end
98
+ # def self.prim_truncate(name, offset)
99
+ # Rubinius.primitive :io_truncate
100
+ # raise RangeError, "#{offset} is too big"
101
+ # end
102
+ #
103
+ # def prim_ftruncate(offset)
104
+ # Rubinius.primitive :io_ftruncate
105
+ # raise RangeError, "#{amount} is too big"
106
+ # end
107
107
108
108
def query ( which )
109
109
Rubinius . primitive :io_query
110
110
raise PrimitiveFailure , "IO#query primitive failed"
111
111
end
112
112
113
- def reopen ( other )
114
- reopen_io other
115
- end
113
+ # def reopen(other)
114
+ # reopen_io other
115
+ # end
116
116
117
117
def tty?
118
118
query :tty?
@@ -122,10 +122,10 @@ def ttyname
122
122
query :ttyname
123
123
end
124
124
125
- def close
126
- Rubinius . primitive :io_close
127
- raise PrimitiveFailure , "IO#close primitive failed"
128
- end
125
+ # def close
126
+ # Rubinius.primitive :io_close
127
+ # raise PrimitiveFailure, "IO#close primitive failed"
128
+ # end
129
129
130
130
#
131
131
# Close read and/or write stream of a full-duplex descriptor.
0 commit comments