Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp370 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() local
372 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() local
672 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()