Searched refs:clientFd (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 159 FileDescriptor clientFd = Os.accept(serverFd, peerAddress); in checkUnixDomainSocket() 160 checkSockName(clientFd, isAbstract, address); in checkUnixDomainSocket() 163 checkNoPeerName(clientFd); in checkUnixDomainSocket() 165 StructUcred credentials = Os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket() 171 Os.read(clientFd, request, 0, request.length); in checkUnixDomainSocket() 175 Os.write(clientFd, response, 0, response.length); in checkUnixDomainSocket() 177 Os.close(clientFd); in checkUnixDomainSocket() 185 FileDescriptor clientFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in checkUnixDomainSocket() local 187 Os.connect(clientFd, address); in checkUnixDomainSocket() 188 checkNoSockName(clientFd); in checkUnixDomainSocket() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 976 jint clientFd = NET_FAILURE_RETRY(env, int, accept, javaFd, peer, peerLength); in Linux_accept() local 977 if (clientFd == -1 || !fillSocketAddress(env, javaSocketAddress, ss, *peerLength)) { in Linux_accept() 978 close(clientFd); in Linux_accept() 981 return createFileDescriptorIfOpen(env, clientFd); in Linux_accept()
|