--- a/OSFileHandle.st Fri Jun 23 21:08:42 2000 +0200
+++ b/OSFileHandle.st Fri Jun 23 21:43:57 2000 +0200
@@ -61,13 +61,6 @@
!OSFileHandle methodsFor:'finalization'!
-closeFile
- "close the underlying file"
-
- self subclassResponsibility
-
-!
-
disposed
"a filedescriptor was garbage collected - close the underlying file"
@@ -75,6 +68,24 @@
! !
+!OSFileHandle methodsFor:'input/output'!
+
+readBytes:count into:aByteBuffer startingAt:startAddress
+ "read count bytes into a byte-buffer;
+ Return the number of bytes read (negative on error)"
+
+ ^ self subclassResponsibility
+
+!
+
+writeBytes:count from:aByteBuffer startingAt:startAddress
+ "write count bytes from a byte-buffer;
+ Return the number of bytes written (negative on error)"
+
+ ^ self subclassResponsibility
+
+! !
+
!OSFileHandle methodsFor:'release'!
close
@@ -84,11 +95,18 @@
self unregisterForFinalization.
+!
+
+closeFile
+ "close the underlying file"
+
+ self subclassResponsibility
+
! !
!OSFileHandle class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/OSFileHandle.st,v 1.2 2000-06-23 18:54:00 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/OSFileHandle.st,v 1.3 2000-06-23 19:43:57 cg Exp $'
! !
OSFileHandle initialize!
--- a/UnixFileDescriptorHandle.st Fri Jun 23 21:08:42 2000 +0200
+++ b/UnixFileDescriptorHandle.st Fri Jun 23 21:43:57 2000 +0200
@@ -15,7 +15,7 @@
! !
-!UnixFileDescriptorHandle methodsFor:'finalization'!
+!UnixFileDescriptorHandle methodsFor:'release'!
closeFile
"close the underlying file"
@@ -34,5 +34,5 @@
!UnixFileDescriptorHandle class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/UnixFileDescriptorHandle.st,v 1.2 2000-06-23 18:54:24 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/UnixFileDescriptorHandle.st,v 1.3 2000-06-23 19:43:40 cg Exp $'
! !
--- a/UnixFileHandle.st Fri Jun 23 21:08:42 2000 +0200
+++ b/UnixFileHandle.st Fri Jun 23 21:43:57 2000 +0200
@@ -14,7 +14,7 @@
! !
-!UnixFileHandle methodsFor:'finalization'!
+!UnixFileHandle methodsFor:'release'!
closeFile
"close the underlying file"
@@ -33,5 +33,5 @@
!UnixFileHandle class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/UnixFileHandle.st,v 1.2 2000-06-23 18:54:30 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/UnixFileHandle.st,v 1.3 2000-06-23 19:43:49 cg Exp $'
! !