Searched refs:sun_path (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 47 private final byte[] sun_path; field in UnixSocketAddress 50 private UnixSocketAddress(byte[] sun_path) { in UnixSocketAddress() argument 51 if (sun_path == null) { in UnixSocketAddress() 54 if (sun_path.length > NAMED_PATH_LENGTH) { in UnixSocketAddress() 58 if (sun_path.length == 0) { in UnixSocketAddress() 59 this.sun_path = UNNAMED_PATH; in UnixSocketAddress() 61 this.sun_path = new byte[sun_path.length]; in UnixSocketAddress() 62 System.arraycopy(sun_path, 0, this.sun_path, 0, sun_path.length); in UnixSocketAddress() 117 if (sun_path.length == 0) { in getSunPath() 118 return sun_path; in getSunPath() [all …]
|
/libcore/ojluni/src/main/native/ |
D | UnixDomainSockets.c | 50 #define ZERO_PATHLEN(len) (len == offsetof(struct sockaddr_un, sun_path)) 60 namelen = strlen(sa->sun_path); in sockaddrToUnixAddressBytes() 64 (*env)->SetByteArrayRegion(env, name, 0, namelen, (jbyte*)sa->sun_path); in sockaddrToUnixAddressBytes() 89 memcpy(sa->sun_path, pname, name_len); in unixSocketAddressToSockaddr() 90 *len = (int)(offsetof(struct sockaddr_un, sun_path) + name_len + 1); in unixSocketAddressToSockaddr()
|
D | nio_util.h | 56 (int)(sizeof(((struct sockaddr_un *)0)->sun_path)-2)
|
/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() 713 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr() 716 sizeof(sockaddr_un::sun_path), pathLength); in javaUnixSocketAddressToSockaddr() 719 env->GetByteArrayRegion(javaSunPath, 0, pathLength, (jbyte*) un_addr->sun_path); in javaUnixSocketAddressToSockaddr() 723 sa_len = offsetof(struct sockaddr_un, sun_path) + pathLength; in javaUnixSocketAddressToSockaddr()
|
D | android_system_OsConstants.cpp | 631 initConstant(env, c, "UNIX_PATH_MAX", sizeof(sockaddr_un::sun_path)); in OsConstants_initConstants()
|