Searched refs:pathLength (Results 1 – 1 of 1) sorted by relevance
370 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() local372 jbyteArray javaSunPath = env->NewByteArray(pathLength); in getUnixSocketPath()377 if (pathLength > 0) { in getUnixSocketPath()378 env->SetByteArrayRegion(javaSunPath, 0, pathLength, in getUnixSocketPath()671 jsize pathLength = env->GetArrayLength(javaSunPath); in javaUnixSocketAddressToSockaddr() local672 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr()675 sizeof(sockaddr_un::sun_path), pathLength); in javaUnixSocketAddressToSockaddr()678 env->GetByteArrayRegion(javaSunPath, 0, pathLength, (jbyte*) un_addr->sun_path); in javaUnixSocketAddressToSockaddr()682 sa_len = offsetof(struct sockaddr_un, sun_path) + pathLength; in javaUnixSocketAddressToSockaddr()