Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/
DLengthTest.java46 final int namelen = 100; // length close to max field in LengthTest
50 if (namelen == -1) in strings()
56 {new String(new char[namelen]).replaceAll("\0", "x")}, in strings()
57 {new String(new char[namelen-1]).replaceAll("\0", "x")}, in strings()
/libcore/ojluni/src/main/native/
DUnixDomainSockets.c56 int namelen; in sockaddrToUnixAddressBytes() local
58 namelen = 0; in sockaddrToUnixAddressBytes()
60 namelen = strlen(sa->sun_path); in sockaddrToUnixAddressBytes()
62 jbyteArray name = (*env)->NewByteArray(env, namelen); in sockaddrToUnixAddressBytes()
63 if (namelen != 0) { in sockaddrToUnixAddressBytes()
64 (*env)->SetByteArrayRegion(env, name, 0, namelen, (jbyte*)sa->sun_path); in sockaddrToUnixAddressBytes()
Djvm.h1260 JVM_GetHostName(char* name, int namelen);