Home
last modified time | relevance | path

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

/bionic/libc/system_properties/
Dprop_info.cpp38 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()
Dprop_area.cpp157 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 …]
Dsystem_properties.cpp159 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/
Dprop_area.h57 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,
Dprop_info.h82 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);
Dsystem_properties.h68 int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
/bionic/libc/dns/net/
Dgetservent.c41 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/
Dsystem_property_api.cpp98 int __system_property_add(const char* name, unsigned int namelen, const char* value, in __system_property_add() argument
100 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
Dsystem_property_set.cpp61 const size_t namelen = strlen(property_service_socket); in PropertyServiceConnection() local
66 socklen_t alen = namelen + offsetof(sockaddr_un, sun_path) + 1; in PropertyServiceConnection()
Dfts.c907 fts_alloc(FTS *sp, char *name, size_t namelen) in fts_alloc() argument
920 len = sizeof(FTSENT) + namelen; in fts_alloc()
927 p->fts_namelen = namelen; in fts_alloc()
930 p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); in fts_alloc()
931 memcpy(p->fts_name, name, namelen); in fts_alloc()
/bionic/libc/kernel/uapi/linux/
Dfuse.h50 uint32_t namelen; member
430 uint32_t namelen; member
436 #define FUSE_DIRENT_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)
442 #define FUSE_DIRENTPLUS_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen)
450 uint32_t namelen; member
456 uint32_t namelen; member
Dcramfs_fs.h34 __u32 namelen : CRAMFS_NAMELEN_WIDTH, offset : CRAMFS_OFFSET_WIDTH; member
Ddlm_device.h29 __u8 namelen; member
Dtelephony.h62 int namelen; member
/bionic/libc/dns/nameser/
Dns_name.c803 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/
Dres_debug.c374 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()