Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/native/
DLinuxWatchService.c117 if ((blocking == JNI_FALSE) && !(flags & O_NONBLOCK)) in Java_sun_nio_fs_LinuxWatchService_configureBlocking()
118 fcntl(fd, F_SETFL, flags | O_NONBLOCK); in Java_sun_nio_fs_LinuxWatchService_configureBlocking()
119 else if ((blocking == JNI_TRUE) && (flags & O_NONBLOCK)) in Java_sun_nio_fs_LinuxWatchService_configureBlocking()
120 fcntl(fd, F_SETFL, flags & ~O_NONBLOCK); in Java_sun_nio_fs_LinuxWatchService_configureBlocking()
DIOUtil.c77 int newflags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK); in configureBlocking()
/libcore/luni/src/test/java/libcore/android/system/
DOsConstantsTest.java45 assertEquals(OsConstants.O_NONBLOCK, OsConstants.SOCK_NONBLOCK); in testConstantsEqual()
DOsTest.java115 assertEquals(0, (Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK)); in testFcntlInt_udpSocket()
118 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM | O_NONBLOCK); in testFcntlInt_udpSocket()
119 assertTrue((Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK) != 0); in testFcntlInt_udpSocket()
123 assertEquals(0, (Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK)); in testFcntlInt_udpSocket()
146 Os.fcntlInt(null, F_SETFL, O_NONBLOCK); in testFcntlInt_nullFd()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java25 import static android.system.OsConstants.O_NONBLOCK;
157 Libcore.os.fcntlInt(unixSocket, F_SETFL, O_NONBLOCK); in test_nonblock()
158 Libcore.os.fcntlInt(udpSocket, F_SETFL, O_NONBLOCK); in test_nonblock()
184 Libcore.os.fcntlInt(unixSocket, F_SETFL, O_NONBLOCK); in test_accept_networkPolicy()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java41 import static android.system.OsConstants.O_NONBLOCK;
262 flags |= O_NONBLOCK; in setBlocking()
264 flags &= ~O_NONBLOCK; in setBlocking()
DBlockGuardOs.java118 if ((flag & O_NONBLOCK) != 0) { in isNonBlockingFile()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp532 flags |= O_NONBLOCK; in setBlocking()
534 flags &= ~O_NONBLOCK; in setBlocking()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java48 import static android.system.OsConstants.O_NONBLOCK;
190 assertEquals(0, Libcore.os.fcntlVoid(sconn.getFileDescriptor$(), F_GETFL) & O_NONBLOCK); in test_accept()
/libcore/luni/src/main/java/android/system/
DOsConstants.java507 public static final int O_NONBLOCK = placeholder(); field in OsConstants