Lines Matching defs:fd

46     static int write(FileDescriptor fd, ByteBuffer src, long position,
51 return writeFromNativeBuffer(fd, src, position, nd);
65 int n = writeFromNativeBuffer(fd, bb, position, nd);
76 private static int writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb,
89 written = nd.pwrite(fd,
93 written = nd.write(fd, ((DirectBuffer)bb).address() + pos, rem);
100 static long write(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd)
103 return write(fd, bufs, 0, bufs.length, nd);
106 static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length,
148 long bytesWritten = nd.writev(fd, vec.address, iov_len);
185 static int read(FileDescriptor fd, ByteBuffer dst, long position,
192 return readIntoNativeBuffer(fd, dst, position, nd);
197 int n = readIntoNativeBuffer(fd, bb, position, nd);
207 private static int readIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb,
220 n = nd.pread(fd, ((DirectBuffer)bb).address() + pos,
223 n = nd.read(fd, ((DirectBuffer)bb).address() + pos, rem);
230 static long read(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd)
233 return read(fd, bufs, 0, bufs.length, nd);
236 static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length,
278 long bytesRead = nd.readv(fd, vec.address, iov_len);
320 FileDescriptor fd = new FileDescriptor();
321 setfdVal(fd, i);
322 return fd;
334 static native boolean drain(int fd) throws IOException;
336 static native void configureBlocking(FileDescriptor fd, boolean blocking)
339 static native int fdVal(FileDescriptor fd);
341 static native void setfdVal(FileDescriptor fd, int value);