summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-29 14:26:04 -0700
committerElliott Hughes <enh@google.com>2011-03-29 14:38:20 -0700
commit8b15dcc5890963edad4dfcf558cc16027c7985e5 (patch)
tree4a908938b37c8f73a5c8a26a2702641f613a73d3 /dalvik
parent94aa98c94b79f5c99a0e1d905c03c5423d1ce0fa (diff)
downloadlibcore-8b15dcc5890963edad4dfcf558cc16027c7985e5.zip
libcore-8b15dcc5890963edad4dfcf558cc16027c7985e5.tar.gz
libcore-8b15dcc5890963edad4dfcf558cc16027c7985e5.tar.bz2
Add sendfile(2).
This patch marks the end of OSFileSystem. Having to support a Java "long*" for sendfile(2) gave me an opportunity to go back and improve my ioctl(2) to use a corresponding "int*" equivalent, instead of its previous special-case hack. Bug: 3107501 Change-Id: I9fde4777700552263fab4fe9aeb556174163e3dc
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/BlockGuard.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java
index 35386c6..3eaa2b6 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -24,7 +24,6 @@ import java.net.InetAddress;
import java.net.SocketException;
import java.net.SocketImpl;
import java.net.SocketOptions;
-import org.apache.harmony.luni.platform.IFileSystem;
import org.apache.harmony.luni.platform.INetworkSystem;
/**
@@ -156,23 +155,6 @@ public final class BlockGuard {
private BlockGuard() {}
/**
- * A filesystem wrapper that calls the policy check functions
- * on reads and writes.
- */
- public static class WrappedFileSystem implements IFileSystem {
- private final IFileSystem mFileSystem;
-
- public WrappedFileSystem(IFileSystem fileSystem) {
- mFileSystem = fileSystem;
- }
-
- public long transfer(int fileHandler, FileDescriptor socketDescriptor,
- long offset, long count) throws IOException {
- return mFileSystem.transfer(fileHandler, socketDescriptor, offset, count);
- }
- }
-
- /**
* A network wrapper that calls the policy check functions.
*/
public static class WrappedNetworkSystem implements INetworkSystem {