/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | SocketDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { argument 43 return FileDispatcherImpl.read0(fd, address, len); 46 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 49 return FileDispatcherImpl.readv0(fd, address, len); 52 int write(FileDescriptor fd, long address, int len) throws IOException { argument 55 return FileDispatcherImpl.write0(fd, address, len); 58 long writev(FileDescriptor fd, long address, int len) throws IOException { argument 61 return FileDispatcherImpl.writev0(fd, address, len); 64 void close(FileDescriptor fd) throws IOException { argument 65 FileDispatcherImpl.close0(fd); 68 preClose(FileDescriptor fd) argument [all...] |
H A D | NativeDispatcher.java | 38 abstract int read(FileDescriptor fd, long address, int len) argument 49 int pread(FileDescriptor fd, long address, int len, long position) argument 55 abstract long readv(FileDescriptor fd, long address, int len) argument 58 abstract int write(FileDescriptor fd, long address, int len) argument 61 int pwrite(FileDescriptor fd, long address, int len, long position) argument 67 abstract long writev(FileDescriptor fd, long address, int len) argument 70 abstract void close(FileDescriptor fd) throws IOException; argument 72 // Prepare the given fd for closing by duping it to a known internal fd 74 // (Solaris and Linux) to prevent fd recyclin 76 preClose(FileDescriptor fd) argument [all...] |
H A D | FileDispatcherImpl.java | 50 int read(FileDescriptor fd, long address, int len) throws IOException { argument 53 return read0(fd, address, len); 56 int pread(FileDescriptor fd, long address, int len, long position) argument 61 return pread0(fd, address, len, position); 64 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 67 return readv0(fd, address, len); 70 int write(FileDescriptor fd, long address, int len) throws IOException { argument 73 return write0(fd, address, len); 76 int pwrite(FileDescriptor fd, long address, int len, long position) argument 81 return pwrite0(fd, addres 84 writev(FileDescriptor fd, long address, int len) argument 92 force(FileDescriptor fd, boolean metaData) argument 98 truncate(FileDescriptor fd, long size) argument 104 size(FileDescriptor fd) argument 110 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 118 release(FileDescriptor fd, long pos, long size) argument 124 close(FileDescriptor fd) argument 128 preClose(FileDescriptor fd) argument 132 duplicateForMapping(FileDescriptor fd) argument 148 read0(FileDescriptor fd, long address, int len) argument 151 pread0(FileDescriptor fd, long address, int len, long position) argument 154 readv0(FileDescriptor fd, long address, int len) argument 157 write0(FileDescriptor fd, long address, int len) argument 160 pwrite0(FileDescriptor fd, long address, int len, long position) argument 163 writev0(FileDescriptor fd, long address, int len) argument 166 force0(FileDescriptor fd, boolean metaData) argument 169 truncate0(FileDescriptor fd, long size) argument 172 size0(FileDescriptor fd) argument 174 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 177 release0(FileDescriptor fd, long pos, long size) argument 180 close0(FileDescriptor fd) argument 182 preClose0(FileDescriptor fd) argument 184 closeIntFD(int fd) argument [all...] |
H A D | DatagramDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { argument 42 return read0(fd, address, len); 45 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 47 return readv0(fd, address, len); 50 int write(FileDescriptor fd, long address, int len) throws IOException { argument 52 return write0(fd, address, len); 55 long writev(FileDescriptor fd, long address, int len) throws IOException { argument 57 return writev0(fd, address, len); 60 void close(FileDescriptor fd) throws IOException { argument 61 FileDispatcherImpl.close0(fd); 64 preClose(FileDescriptor fd) argument 68 read0(FileDescriptor fd, long address, int len) argument 71 readv0(FileDescriptor fd, long address, int len) argument 74 write0(FileDescriptor fd, long address, int len) argument 77 writev0(FileDescriptor fd, long address, int len) argument [all...] |
H A D | FileDispatcher.java | 39 abstract int force(FileDescriptor fd, boolean metaData) throws IOException; argument 41 abstract int truncate(FileDescriptor fd, long size) throws IOException; argument 43 abstract long size(FileDescriptor fd) throws IOException; argument 45 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, argument 48 abstract void release(FileDescriptor fd, long pos, long size) argument 52 * Returns a dup of fd if a file descriptor is required for 56 abstract FileDescriptor duplicateForMapping(FileDescriptor fd) argument
|
H A D | FileKey.java | 41 public static FileKey create(FileDescriptor fd) { argument 44 fk.init(fd); 69 private native void init(FileDescriptor fd) throws IOException; argument
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | JavaIOFileDescriptorAccess.java | 34 public void set(FileDescriptor obj, int fd); argument 35 public int get(FileDescriptor fd); argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | AsynchronousCloseMonitor.java | 25 public static native void signalBlockedThreads(FileDescriptor fd); argument
|
H A D | Linux.java | 51 public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException; argument 54 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 55 public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; argument 63 public native void close(FileDescriptor fd) throws ErrnoException; argument 64 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 65 public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; argument 71 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument 72 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 73 public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException; argument 74 public native int fcntlInt(FileDescriptor fd, in argument 75 fcntlVoid(FileDescriptor fd, int cmd) argument 76 fdatasync(FileDescriptor fd) argument 77 fstat(FileDescriptor fd) argument 78 fstatvfs(FileDescriptor fd) argument 79 fsync(FileDescriptor fd) argument 80 ftruncate(FileDescriptor fd, long length) argument 87 getpeername(FileDescriptor fd) argument 94 getsockname(FileDescriptor fd) argument 95 getsockoptByte(FileDescriptor fd, int level, int option) argument 96 getsockoptInAddr(FileDescriptor fd, int level, int option) argument 97 getsockoptInt(FileDescriptor fd, int level, int option) argument 98 getsockoptLinger(FileDescriptor fd, int level, int option) argument 99 getsockoptTimeval(FileDescriptor fd, int level, int option) argument 100 getsockoptUcred(FileDescriptor fd, int level, int option) argument 108 ioctlFlags(FileDescriptor fd, String interfaceName) argument 109 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument 110 ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg) argument 111 ioctlMTU(FileDescriptor fd, String interfaceName) argument 112 isatty(FileDescriptor fd) argument 116 listen(FileDescriptor fd, int backlog) argument 118 lseek(FileDescriptor fd, long offset, int whence) argument 124 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument 131 posix_fallocate(FileDescriptor fd, long offset, long length) argument 133 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument 146 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 150 preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument 151 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument 164 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 168 pwriteBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument 169 read(FileDescriptor fd, ByteBuffer buffer) argument 182 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 186 readBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument 189 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 190 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument 203 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 207 recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 212 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 225 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 229 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument 232 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 233 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, SocketAddress address) argument 242 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument 243 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument 244 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument 245 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument 246 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 247 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 248 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 251 shutdown(FileDescriptor fd, int how) argument 261 tcdrain(FileDescriptor fd) argument 262 tcsendbreak(FileDescriptor fd, int duration) argument 274 write(FileDescriptor fd, ByteBuffer buffer) argument 286 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 290 writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument 291 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument [all...] |
H A D | Os.java | 48 public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException; argument 51 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 52 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; argument 57 public void close(FileDescriptor fd) throws ErrnoException; argument 58 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 59 public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; argument 65 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument 66 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 67 public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException; argument 68 public int fcntlInt(FileDescriptor fd, in argument 69 fcntlVoid(FileDescriptor fd, int cmd) argument 70 fdatasync(FileDescriptor fd) argument 71 fstat(FileDescriptor fd) argument 72 fstatvfs(FileDescriptor fd) argument 73 fsync(FileDescriptor fd) argument 74 ftruncate(FileDescriptor fd, long length) argument 82 getpeername(FileDescriptor fd) argument 89 getsockname(FileDescriptor fd) argument 90 getsockoptByte(FileDescriptor fd, int level, int option) argument 91 getsockoptInAddr(FileDescriptor fd, int level, int option) argument 92 getsockoptInt(FileDescriptor fd, int level, int option) argument 93 getsockoptLinger(FileDescriptor fd, int level, int option) argument 94 getsockoptTimeval(FileDescriptor fd, int level, int option) argument 95 getsockoptUcred(FileDescriptor fd, int level, int option) argument 103 ioctlFlags(FileDescriptor fd, String interfaceName) argument 104 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument 105 ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg) argument 106 ioctlMTU(FileDescriptor fd, String interfaceName) argument 107 isatty(FileDescriptor fd) argument 111 listen(FileDescriptor fd, int backlog) argument 113 lseek(FileDescriptor fd, long offset, int whence) argument 119 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument 127 posix_fallocate(FileDescriptor fd, long offset, long length) argument 129 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument 130 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 131 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument 132 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 133 read(FileDescriptor fd, ByteBuffer buffer) argument 134 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 137 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 138 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument 139 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 143 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 144 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 145 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument 155 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument 156 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument 157 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument 158 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument 159 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 160 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 161 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 164 shutdown(FileDescriptor fd, int how) argument 174 tcdrain(FileDescriptor fd) argument 175 tcsendbreak(FileDescriptor fd, int duration) argument 181 write(FileDescriptor fd, ByteBuffer buffer) argument 182 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 183 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument [all...] |
H A D | ForwardingOs.java | 57 public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException { return os.accept(fd, peerAddress); } argument 60 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); } argument 61 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { os.bind(fd, address); } argument 72 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } argument 73 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.connect(fd, addres argument 74 connect(FileDescriptor fd, SocketAddress address) argument 80 fchmod(FileDescriptor fd, int mode) argument 81 fchown(FileDescriptor fd, int uid, int gid) argument 82 fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) argument 83 fcntlInt(FileDescriptor fd, int cmd, int arg) argument 84 fcntlVoid(FileDescriptor fd, int cmd) argument 85 fdatasync(FileDescriptor fd) argument 86 fstat(FileDescriptor fd) argument 87 fstatvfs(FileDescriptor fd) argument 88 fsync(FileDescriptor fd) argument 89 ftruncate(FileDescriptor fd, long length) argument 96 getpeername(FileDescriptor fd) argument 103 getsockname(FileDescriptor fd) argument 104 getsockoptByte(FileDescriptor fd, int level, int option) argument 105 getsockoptInAddr(FileDescriptor fd, int level, int option) argument 106 getsockoptInt(FileDescriptor fd, int level, int option) argument 107 getsockoptLinger(FileDescriptor fd, int level, int option) argument 108 getsockoptTimeval(FileDescriptor fd, int level, int option) argument 109 getsockoptUcred(FileDescriptor fd, int level, int option) argument 117 ioctlFlags(FileDescriptor fd, String interfaceName) argument 118 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument 119 ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg) argument 120 ioctlMTU(FileDescriptor fd, String interfaceName) argument 121 isatty(FileDescriptor fd) argument 125 listen(FileDescriptor fd, int backlog) argument 127 lseek(FileDescriptor fd, long offset, int whence) argument 133 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument 140 posix_fallocate(FileDescriptor fd, long offset, long length) argument 142 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument 143 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 144 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument 145 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 146 read(FileDescriptor fd, ByteBuffer buffer) argument 147 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 150 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 151 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument 152 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 157 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 158 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 159 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument 168 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument 169 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument 170 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument 171 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument 172 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 173 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 174 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 177 shutdown(FileDescriptor fd, int how) argument 187 tcdrain(FileDescriptor fd) argument 188 tcsendbreak(FileDescriptor fd, int duration) argument 194 write(FileDescriptor fd, ByteBuffer buffer) argument 195 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 196 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument [all...] |
H A D | BlockGuardOs.java | 48 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { argument 50 SocketTagger.get().tag(fd); 51 return fd; 57 @Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException { argument 59 final FileDescriptor acceptFd = os.accept(fd, peerAddress); 81 @Override public void close(FileDescriptor fd) throws ErrnoException { argument 86 if (fd.isSocket$()) { 87 if (isLingerSocket(fd)) { 88 // If the fd is a socket with SO_LINGER set, we might block indefinitely. 100 os.close(fd); 103 isInetSocket(FileDescriptor fd) argument 111 isLingerSocket(FileDescriptor fd) argument 116 connect(FileDescriptor fd, InetAddress address, int port) argument 121 connect(FileDescriptor fd, SocketAddress address) argument 127 fchmod(FileDescriptor fd, int mode) argument 132 fchown(FileDescriptor fd, int uid, int gid) argument 139 fdatasync(FileDescriptor fd) argument 144 fstat(FileDescriptor fd) argument 149 fstatvfs(FileDescriptor fd) argument 154 fsync(FileDescriptor fd) argument 159 ftruncate(FileDescriptor fd, long length) argument 185 lseek(FileDescriptor fd, long offset, int whence) argument 222 posix_fallocate(FileDescriptor fd, long offset, long length) argument 227 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument 232 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 237 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument 242 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 247 read(FileDescriptor fd, ByteBuffer buffer) argument 252 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 267 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 272 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument 277 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 297 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 302 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 341 write(FileDescriptor fd, ByteBuffer buffer) argument 346 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 351 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 390 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument [all...] |
H A D | IoUtils.java | 37 * Calls close(2) on 'fd'. Also resets the internal int to -1. Does nothing if 'fd' is null 40 public static void close(FileDescriptor fd) throws IOException { argument 42 if (fd != null && fd.valid()) { 43 Libcore.os.close(fd); 65 * Closes 'fd', ignoring any exceptions. Does nothing if 'fd' is null or invalid. 67 public static void closeQuietly(FileDescriptor fd) { argument 69 IoUtils.close(fd); 89 setBlocking(FileDescriptor fd, boolean blocking) argument 193 private FileDescriptor fd; field in class:IoUtils.FileReader [all...] |
H A D | IoBridge.java | 57 public static int available(FileDescriptor fd) throws IOException { argument 60 Libcore.os.ioctlInt(fd, FIONREAD, available); 62 // If the fd refers to a regular file, the result is the difference between 64 // is past the end of the file. If the fd refers to a special file masquerading 73 // The fd is unwilling to opine about its read buffer. 81 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { argument 99 Libcore.os.bind(fd, address, port); 112 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout 115 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { argument 117 IoBridge.connect(fd, inetAddres 127 connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) argument 148 connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) argument 194 createMessageForException(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, Exception causeOrNull) argument 236 closeAndSignalBlockedThreads(FileDescriptor fd) argument 252 isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) argument 291 getSocketOption(FileDescriptor fd, int option) argument 299 getSocketOptionErrno(FileDescriptor fd, int option) argument 363 setSocketOption(FileDescriptor fd, int option, Object value) argument 371 setSocketOptionErrno(FileDescriptor fd, int option, Object value) argument 495 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 519 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 535 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 549 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 579 recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected) argument 591 recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) argument 655 poll(FileDescriptor fd, int events, int timeout) argument 674 getLocalInetSocketAddress(FileDescriptor fd) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | io_util_md.c | 67 FD fd; local 68 RESTARTABLE(open64(path, oflag, mode), fd); local 69 if (fd != -1) { 72 RESTARTABLE(fstat64(fd, &buf64), result); 75 close(fd); 77 fd = -1; 80 close(fd); 81 fd = -1; 84 return fd; 92 FD fd; local 113 FD fd = GET_FD(this, fid); local [all...] |
H A D | socket_tagger_util.cpp | 26 int tagSocket(JNIEnv* env, int fd) { argument 27 if (env->ExceptionOccurred()) { return fd; } 35 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); 37 return fd;
|
H A D | FileSystemPreferences.c | 70 int fd, rc; local 86 fd = open(fname, O_RDONLY, 0); 89 fd = open(fname, O_WRONLY|O_CREAT, permission); 94 if (fd < 0) { 98 rc = fcntl(fd, F_SETLK, &fl); 100 rc = fcntl(fd, F_SETLK64, &fl); 105 close(fd); 107 result[0] = fd; 122 jclass thisclass, jint fd) { 132 rc = fcntl(fd, F_SETL 121 Java_java_util_prefs_FileSystemPreferences_unlockFile0(JNIEnv *env, jclass thisclass, jint fd) argument [all...] |
H A D | io_util.c | 43 FD fd = GET_FD(this, fid); local 44 if (fd == -1) { 48 nread = (jint)IO_Read(fd, &ret, 1); 83 FD fd; local 107 fd = GET_FD(this, fid); 108 if (fd == -1) { 112 nread = (jint)IO_Read(fd, buf, len); 135 FD fd = GET_FD(this, fid); local 136 if (fd == -1) { 141 n = (jint)IO_Append(fd, 159 FD fd; local [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | PlainSocketImpl.java | 81 PlainSocketImpl(FileDescriptor fd) { argument 82 this.fd = fd; 122 // The fd object must not change after calling bind, because we rely on this undocumented 124 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); 127 IoUtils.setBlocking(fd, false); 128 IoBridge.setSocketOption(fd, SO_REUSEADDR, true); 133 if (fd == null || !fd.valid()) { 137 IoBridge.connect(fd, addres [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileReader.java | 79 * @param fd the FileDescriptor to read from 81 public FileReader(FileDescriptor fd) { argument 82 super(new FileInputStream(fd));
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | ZipFileTest.java | 48 FileDescriptor fd = new FileDescriptor(); 49 fd.setInt$(zipFile.getFileDescriptor()); 51 long initialOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); 54 assertOffset(initialOffset, fd); 60 assertOffset(initialOffset, fd); 63 assertOffset(initialOffset, fd); 65 assertOffset(initialOffset, fd); 69 assertOffset(initialOffset, fd); 74 private static void assertOffset(long initialOffset, FileDescriptor fd) throws Exception { argument 75 long currentOffset = android.system.Os.lseek(fd, [all...] |
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 41 public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, peerAddress); } argument 47 public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, peerAddress); } argument 59 public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, address, port); } argument 61 /** @hide */ public static void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); } argument 95 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } argument 100 connect(FileDescriptor fd, InetAddress address, int port) argument 102 connect(FileDescriptor fd, SocketAddress address) argument 132 fchmod(FileDescriptor fd, int mode) argument 137 fchown(FileDescriptor fd, int uid, int gid) argument 139 fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) argument 140 fcntlInt(FileDescriptor fd, int cmd, int arg) argument 141 fcntlVoid(FileDescriptor fd, int cmd) argument 146 fdatasync(FileDescriptor fd) argument 151 fstat(FileDescriptor fd) argument 156 fstatvfs(FileDescriptor fd) argument 161 fsync(FileDescriptor fd) argument 166 ftruncate(FileDescriptor fd, long length) argument 203 getpeername(FileDescriptor fd) argument 229 getsockname(FileDescriptor fd) argument 231 getsockoptByte(FileDescriptor fd, int level, int option) argument 232 getsockoptInAddr(FileDescriptor fd, int level, int option) argument 233 getsockoptInt(FileDescriptor fd, int level, int option) argument 234 getsockoptLinger(FileDescriptor fd, int level, int option) argument 235 getsockoptTimeval(FileDescriptor fd, int level, int option) argument 236 getsockoptUcred(FileDescriptor fd, int level, int option) argument 268 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument 271 ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg) argument 278 isatty(FileDescriptor fd) argument 298 listen(FileDescriptor fd, int backlog) argument 308 lseek(FileDescriptor fd, long offset, int whence) argument 338 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument 379 posix_fallocate(FileDescriptor fd, long offset, long length) argument 389 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument 394 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 399 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument 404 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument 409 read(FileDescriptor fd, ByteBuffer buffer) argument 414 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 429 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument 434 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument 439 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument 466 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument 471 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument 476 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument 518 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument 519 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument 524 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument 526 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument 527 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 528 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 529 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 544 shutdown(FileDescriptor fd, int how) argument 595 tcdrain(FileDescriptor fd) argument 600 tcsendbreak(FileDescriptor fd, int duration) argument 634 write(FileDescriptor fd, ByteBuffer buffer) argument 639 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument 644 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument [all...] |
H A D | StructPollfd.java | 28 public FileDescriptor fd; field in class:StructPollfd 31 * The events we're interested in. POLLIN corresponds to being in select(2)'s read fd set, 32 * POLLOUT to the write fd set. 41 * their fd belongs to. This is used by Selector, for example, to associate each
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileDescriptorTest.java | 43 FileDescriptor fd = fos.getFD(); 44 fd.sync(); 50 fd = fis.getFD(); 51 fd.sync(); 55 fd = raf.getFD(); 56 fd.sync(); 79 FileDescriptor fd = fos.getFD(); 80 assertTrue(fd.valid()); 82 assertFalse(fd.valid());
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | MappedByteBuffer.java | 78 private final FileDescriptor fd; field in class:MappedByteBuffer 83 FileDescriptor fd) 86 this.fd = fd; 92 this.fd = null; 97 this.fd = null; 101 if (fd == null) 210 force0(fd, mappingAddress(offset), mappingLength(offset)); 217 private native void force0(FileDescriptor fd, long address, long length); argument 82 MappedByteBuffer(int mark, int pos, int lim, int cap, FileDescriptor fd) argument
|