/bionic/libc/system_properties/ |
D | prop_info.cpp | 38 prop_info::prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen) { in prop_info() argument 39 memcpy(this->name, name, namelen); in prop_info() 40 this->name[namelen] = '\0'; in prop_info() 46 prop_info::prop_info(const char* name, uint32_t namelen, uint32_t long_offset) { in prop_info() argument 47 memcpy(this->name, name, namelen); in prop_info() 48 this->name[namelen] = '\0'; in prop_info()
|
D | prop_area.cpp | 157 prop_bt* prop_area::new_prop_bt(const char* name, uint32_t namelen, uint_least32_t* const off) { in new_prop_bt() argument 159 void* const p = allocate_obj(sizeof(prop_bt) + namelen + 1, &new_offset); in new_prop_bt() 161 prop_bt* bt = new (p) prop_bt(name, namelen); in new_prop_bt() 169 prop_info* prop_area::new_prop_info(const char* name, uint32_t namelen, const char* value, in new_prop_info() argument 172 void* const p = allocate_obj(sizeof(prop_info) + namelen + 1, &new_offset); in new_prop_info() 189 info = new (p) prop_info(name, namelen, long_value_offset); in new_prop_info() 191 info = new (p) prop_info(name, namelen, value, valuelen); in new_prop_info() 226 prop_bt* prop_area::find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, in find_prop_bt() argument 234 const int ret = cmp_prop_name(name, namelen, current->name, current->namelen); in find_prop_bt() 249 prop_bt* new_bt = new_prop_bt(name, namelen, &new_offset); in find_prop_bt() [all …]
|
D | system_properties.cpp | 159 size_t namelen = strlcpy(name, pi->name, PROP_NAME_MAX); in Read() local 160 if (namelen >= PROP_NAME_MAX) { in Read() 258 int SystemProperties::Add(const char* name, unsigned int namelen, const char* value, in Add() argument 264 if (namelen < 1) { in Add() 283 bool ret = pa->add(name, namelen, value, valuelen); in Add()
|
/bionic/libc/system_properties/include/system_properties/ |
D | prop_area.h | 57 uint32_t namelen; member 83 this->namelen = name_length; in prop_bt() 112 bool add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen); 130 prop_bt* new_prop_bt(const char* name, uint32_t namelen, uint_least32_t* const off); 131 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen, 139 …prop_bt* find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, bool alloc_if_needed); 141 const prop_info* find_property(prop_bt* const trie, const char* name, uint32_t namelen,
|
D | prop_info.h | 82 prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen); 83 prop_info(const char* name, uint32_t namelen, uint32_t long_offset);
|
D | system_properties.h | 68 int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
|
/bionic/libc/dns/net/ |
D | getservent.c | 41 int namelen; in getservent_r() local 54 namelen = p[0]; in getservent_r() 55 total += namelen + 1; in getservent_r() 56 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r() 76 p2 += namelen + 1; in getservent_r() 80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r() 81 rs->servent.s_name[namelen] = 0; in getservent_r() 82 p += 1 + namelen; in getservent_r()
|
/bionic/libc/bionic/ |
D | system_property_api.cpp | 96 int __system_property_add(const char* name, unsigned int namelen, const char* value, in __system_property_add() argument 98 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
|
D | system_property_set.cpp | 62 const size_t namelen = strlen(property_service_socket); in PropertyServiceConnection() local 67 socklen_t alen = namelen + offsetof(sockaddr_un, sun_path) + 1; in PropertyServiceConnection()
|
D | fts.c | 895 fts_alloc(FTS *sp, char *name, size_t namelen) in fts_alloc() argument 908 len = sizeof(FTSENT) + namelen; in fts_alloc() 915 p->fts_namelen = namelen; in fts_alloc() 918 p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); in fts_alloc() 919 memcpy(p->fts_name, name, namelen); in fts_alloc()
|
/bionic/libc/kernel/uapi/linux/ |
D | fuse.h | 50 uint32_t namelen; member 437 uint32_t namelen; member 443 #define FUSE_DIRENT_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) 449 #define FUSE_DIRENTPLUS_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen) 457 uint32_t namelen; member 463 uint32_t namelen; member
|
D | cramfs_fs.h | 34 __u32 namelen : CRAMFS_NAMELEN_WIDTH, offset : CRAMFS_OFFSET_WIDTH; member
|
D | dlm_device.h | 29 __u8 namelen; member
|
/bionic/libc/dns/nameser/ |
D | ns_name.c | 803 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { in ns_name_map() argument 808 namelen--; in ns_name_map() 813 if (namelen > 0) { in ns_name_map() 827 if (n > namelen) { in ns_name_map() 833 l = ns_name_map(nname + n, namelen - n, map, mapsize); in ns_name_map()
|
/bionic/libc/dns/resolv/ |
D | res_debug.c | 374 int namelen) in p_fqnname() argument 379 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname() 383 if ((int)newlen + 1 >= namelen) /* Lack space for final dot */ in p_fqnname()
|