Searched refs:sun_path (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 48 private final byte[] sun_path; field in UnixSocketAddress 51 private UnixSocketAddress(byte[] sun_path) { in UnixSocketAddress() argument 52 if (sun_path == null) { in UnixSocketAddress() 55 if (sun_path.length > NAMED_PATH_LENGTH) { in UnixSocketAddress() 59 if (sun_path.length == 0) { in UnixSocketAddress() 60 this.sun_path = UNNAMED_PATH; in UnixSocketAddress() 62 this.sun_path = new byte[sun_path.length]; in UnixSocketAddress() 63 System.arraycopy(sun_path, 0, this.sun_path, 0, sun_path.length); in UnixSocketAddress() 119 if (sun_path.length == 0) { in getSunPath() 120 return sun_path; in getSunPath() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 381 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() 390 reinterpret_cast<const jbyte*>(&un_addr->sun_path)); in getUnixSocketPath() 711 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr() 714 sizeof(sockaddr_un::sun_path), pathLength); in javaUnixSocketAddressToSockaddr() 717 env->GetByteArrayRegion(javaSunPath, 0, pathLength, (jbyte*) un_addr->sun_path); in javaUnixSocketAddressToSockaddr() 721 sa_len = offsetof(struct sockaddr_un, sun_path) + pathLength; in javaUnixSocketAddressToSockaddr()
|
D | android_system_OsConstants.cpp | 616 initConstant(env, c, "UNIX_PATH_MAX", sizeof(sockaddr_un::sun_path)); in OsConstants_initConstants()
|