Lines Matching refs:namelen
141 size_t namelen; in socket_make_sockaddr_un() local
146 namelen = strlen(name); in socket_make_sockaddr_un()
149 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un()
159 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un()
163 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
165 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
176 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
178 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
188 namelen = strlen(name); in socket_make_sockaddr_un()
190 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
204 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in socket_make_sockaddr_un()