Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 – 9 of 9) 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.java93 assertEquals(0, (Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK)); in testFcntlInt_udpSocket()
96 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM | O_NONBLOCK); in testFcntlInt_udpSocket()
97 assertTrue((Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK) != 0); in testFcntlInt_udpSocket()
101 assertEquals(0, (Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK)); in testFcntlInt_udpSocket()
122 Os.fcntlInt(null, F_SETFL, O_NONBLOCK); in testFcntlInt_nullFd()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java36 import static android.system.OsConstants.O_NONBLOCK;
212 flags |= O_NONBLOCK; in setBlocking()
214 flags &= ~O_NONBLOCK; in setBlocking()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp209 flags |= O_NONBLOCK; in setBlocking()
211 flags &= ~O_NONBLOCK; in setBlocking()
Dandroid_system_OsConstants.cpp407 initConstant(env, c, "O_NONBLOCK", O_NONBLOCK); in OsConstants_initConstants()
/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.java410 public static final int O_NONBLOCK = placeholder(); field in OsConstants