Searched refs:sun_path (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 39 private final byte[] sun_path; field in UnixSocketAddress 42 private UnixSocketAddress(byte[] sun_path) { in UnixSocketAddress() argument 43 if (sun_path == null) { in UnixSocketAddress() 46 if (sun_path.length > NAMED_PATH_LENGTH) { in UnixSocketAddress() 50 if (sun_path.length == 0) { in UnixSocketAddress() 51 this.sun_path = UNNAMED_PATH; in UnixSocketAddress() 53 this.sun_path = new byte[sun_path.length]; in UnixSocketAddress() 54 System.arraycopy(sun_path, 0, this.sun_path, 0, sun_path.length); in UnixSocketAddress() 96 if (sun_path.length == 0) { in getSunPath() 97 return sun_path; in getSunPath() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 383 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() 392 reinterpret_cast<const jbyte*>(&un_addr->sun_path)); in getUnixSocketPath() 685 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr() 688 sizeof(sockaddr_un::sun_path), pathLength); in javaUnixSocketAddressToSockaddr() 691 env->GetByteArrayRegion(javaSunPath, 0, pathLength, (jbyte*) un_addr->sun_path); in javaUnixSocketAddressToSockaddr() 695 sa_len = offsetof(struct sockaddr_un, sun_path) + pathLength; in javaUnixSocketAddressToSockaddr()
|
D | android_system_OsConstants.cpp | 602 initConstant(env, c, "UNIX_PATH_MAX", sizeof(sockaddr_un::sun_path)); in OsConstants_initConstants()
|