From 8b15dcc5890963edad4dfcf558cc16027c7985e5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 29 Mar 2011 14:26:04 -0700 Subject: 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 --- dalvik/src/main/java/dalvik/system/BlockGuard.java | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'dalvik') 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 { -- cgit v1.1