Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java44 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket()
53 private void untagSocket(FileDescriptor fd) throws ErrnoException { in untagSocket()
61 …@Override public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Er… in accept()
81 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
104 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket()
109 …@Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoExcept… in connect()
114 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod()
119 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown()
126 @Override public void fdatasync(FileDescriptor fd) throws ErrnoException { in fdatasync()
131 @Override public StructStat fstat(FileDescriptor fd) throws ErrnoException { in fstat()
[all …]
DPosix.java47 …public native FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept()
50 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
53 public native void close(FileDescriptor fd) throws ErrnoException; in close()
54 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
60 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
61 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
62 public native int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; in fcntlVoid()
63 public native int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; in fcntlLong()
64 …public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, I… in fcntlFlock()
65 public native void fdatasync(FileDescriptor fd) throws ErrnoException; in fdatasync()
[all …]
DOs.java44 …public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoExcepti… in accept()
47 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
50 public void close(FileDescriptor fd) throws ErrnoException; in close()
51 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
57 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
58 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
59 public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; in fcntlVoid()
60 public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; in fcntlLong()
61 …public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, Interrup… in fcntlFlock()
62 public void fdatasync(FileDescriptor fd) throws ErrnoException; in fdatasync()
[all …]
DForwardingOs.java53 …public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoExcepti… in accept()
56 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
59 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
60 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
66 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod()
67 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown()
68 …public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return os.fcntlVoid(fd, c… in fcntlVoid()
69 …public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntl… in fcntlLong()
70 …public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, Interrup… in fcntlFlock()
71 public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); } in fdatasync()
[all …]
DIoBridge.java55 public static int available(FileDescriptor fd) throws IOException { in available()
79 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind()
108 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect()
120 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect()
134 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno()
193 public static void closeAndSignalBlockedThreads(FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads()
209 …public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeou… in isConnected()
254 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption()
262 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno()
321 …public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketExcep… in setSocketOption()
[all …]
DIoUtils.java42 public static void close(FileDescriptor fd) throws IOException { in close()
69 public static void closeQuietly(FileDescriptor fd) { in closeQuietly()
91 public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException { in setBlocking()
165 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in canOpenReadOnly() local
195 private FileDescriptor fd; field in IoUtils.FileReader
DAsynchronousCloseMonitor.java25 public static native void signalBlockedThreads(FileDescriptor fd); in signalBlockedThreads()
/libcore/luni/src/main/java/android/system/
DOs.java43 …public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept()
55 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
70 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
75 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
105 …public static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(f… in fchmod()
110 …public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.… in fchown()
112 …/** @hide */ public static int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { retur… in fcntlVoid()
113 …/** @hide */ public static int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoExcepti… in fcntlLong()
114 …/** @hide */ public static int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws Errn… in fcntlFlock()
119 …public static void fdatasync(FileDescriptor fd) throws ErrnoException { Libcore.os.fdatasync(fd); } in fdatasync()
[all …]
DStructPollfd.java28 public FileDescriptor fd; field in StructPollfd
/libcore/luni/src/test/java/libcore/io/
DOsTest.java115 …private void checkSockName(FileDescriptor fd, boolean isAbstract, InetAddress address) throws Exce… in checkSockName()
129 private void checkNoPeerName(FileDescriptor fd) throws Exception { in checkNoPeerName()
133 private void checkNoSockName(FileDescriptor fd) throws Exception { in checkNoSockName()
144 FileDescriptor fd = fos.getFD(); in test_byteBufferPositions_write_pwrite() local
173 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileDescriptorTest.java43 FileDescriptor fd = fos.getFD(); in test_sync() local
79 FileDescriptor fd = fos.getFD(); in test_valid() local
DSyncFailedExceptionTest.java36 FileDescriptor fd = fos.getFD(); in test_ConstructorLjava_lang_String() local
/libcore/luni/src/main/java/java/io/
DFileDescriptor.java104 public final void setInt$(int fd) { in setInt$()
115 private static native boolean isSocket(int fd); in isSocket()
DFileInputStream.java56 private FileDescriptor fd; field in FileInputStream
89 public FileInputStream(FileDescriptor fd) { in FileInputStream()
DFileOutputStream.java54 private FileDescriptor fd; field in FileOutputStream
97 public FileOutputStream(FileDescriptor fd) { in FileOutputStream()
DFileReader.java53 public FileReader(FileDescriptor fd) { in FileReader()
DFileWriter.java67 public FileWriter(FileDescriptor fd) { in FileWriter()
/libcore/luni/src/main/java/java/nio/
DPipeImpl.java61 private final FileDescriptor fd; field in PipeImpl.PipeSourceChannel
64 …private PipeSourceChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException… in PipeSourceChannel()
96 private final FileDescriptor fd; field in PipeImpl.PipeSinkChannel
99 … private PipeSinkChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException { in PipeSinkChannel()
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.cpp65 void AsynchronousCloseMonitor::signalBlockedThreads(int fd) { in signalBlockedThreads()
80 AsynchronousCloseMonitor::AsynchronousCloseMonitor(int fd) { in AsynchronousCloseMonitor()
Dlibcore_io_AsynchronousCloseMonitor.cpp25 int fd = jniGetFDFromFileDescriptor(env, javaFd); in AsynchronousCloseMonitor_signalBlockedThreads() local
Djava_io_FileDescriptor.cpp24 static jboolean FileDescriptor_isSocket(JNIEnv*, jclass, jint fd) { in FileDescriptor_isSocket()
Dlibcore_io_Posix.cpp405 int fd = jniGetFDFromFileDescriptor(env, javaFd); in doGetSockName() local
511 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_close() local
539 int fd = throwIfMinusOne(env, "dup2", TEMP_FAILURE_RETRY(dup2(oldFd, newFd))); in Posix_dup2() local
574 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fchmod() local
579 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fchown() local
584 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fcntlVoid() local
589 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fcntlLong() local
620 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fdatasync() local
625 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fstat() local
636 int fd = jniGetFDFromFileDescriptor(env, javaFd); in Posix_fstatvfs() local
[all …]
DNetFd.h58 #define NET_FAILURE_RETRY(fd, exp) ({ \ argument
/libcore/luni/src/main/java/java/net/
DPlainServerSocketImpl.java32 public PlainServerSocketImpl(FileDescriptor fd) { in PlainServerSocketImpl()
/libcore/luni/src/main/java/java/lang/
DProcessManager.java345 private FileDescriptor fd; field in ProcessManager.ProcessInputStream
347 private ProcessInputStream(FileDescriptor fd) { in ProcessInputStream()
371 private FileDescriptor fd; field in ProcessManager.ProcessOutputStream
373 private ProcessOutputStream(FileDescriptor fd) { in ProcessOutputStream()

12