Searched refs:sun_path (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 37 private byte[] sun_path; field in UnixSocketAddress 40 private UnixSocketAddress(byte[] sun_path) { in UnixSocketAddress() argument 41 if (sun_path == null) { in UnixSocketAddress() 44 if (sun_path.length > NAMED_PATH_LENGTH) { in UnixSocketAddress() 48 if (sun_path.length == 0) { in UnixSocketAddress() 49 this.sun_path = UNNAMED_PATH; in UnixSocketAddress() 51 this.sun_path = new byte[sun_path.length]; in UnixSocketAddress() 52 System.arraycopy(sun_path, 0, this.sun_path, 0, sun_path.length); in UnixSocketAddress() 87 if (sun_path.length == 0) { in getSunPath() 88 return sun_path; in getSunPath() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 348 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() 357 reinterpret_cast<const jbyte*>(&un_addr->sun_path)); in getUnixSocketPath() 594 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr() 597 sizeof(sockaddr_un::sun_path), pathLength); in javaUnixSocketAddressToSockaddr() 600 env->GetByteArrayRegion(javaSunPath, 0, pathLength, (jbyte*) un_addr->sun_path); in javaUnixSocketAddressToSockaddr() 604 sa_len = offsetof(struct sockaddr_un, sun_path) + pathLength; in javaUnixSocketAddressToSockaddr()
|
D | android_system_OsConstants.cpp | 556 initConstant(env, c, "UNIX_PATH_MAX", sizeof(sockaddr_un::sun_path)); in OsConstants_initConstants()
|