Home
last modified time | relevance | path

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

123456

/external/elfutils/backends/
Dsh_regs.c43 int regno, char *name, size_t namelen, in sh_register_info() argument
50 if (regno < 0 || regno > 103 || namelen < 6) in sh_register_info()
63 namelen = 2; in sh_register_info()
71 namelen = 3; in sh_register_info()
79 namelen = 2; in sh_register_info()
87 namelen = 2; in sh_register_info()
95 namelen = 2; in sh_register_info()
104 namelen = 3; in sh_register_info()
113 namelen = 4; in sh_register_info()
122 namelen = 4; in sh_register_info()
[all …]
Dia64_regs.c41 int regno, char *name, size_t namelen, in ia64_register_info() argument
48 if (regno < 0 || regno > 687 + 63 || namelen < 12) in ia64_register_info()
60 namelen = 2; in ia64_register_info()
69 namelen = 3; in ia64_register_info()
79 namelen = 4; in ia64_register_info()
87 namelen = 2; in ia64_register_info()
98 namelen = 3; in ia64_register_info()
108 namelen = 4; in ia64_register_info()
118 namelen = 2; in ia64_register_info()
146 namelen = 3; in ia64_register_info()
[all …]
Dx86_64_regs.c42 int regno, char *name, size_t namelen, in x86_64_register_info() argument
49 if (regno < 0 || regno > 66 || namelen < 7) in x86_64_register_info()
94 namelen = 3; in x86_64_register_info()
100 namelen = 2; in x86_64_register_info()
107 namelen = 3; in x86_64_register_info()
115 namelen = 3; in x86_64_register_info()
123 namelen = 4; in x86_64_register_info()
132 namelen = 5; in x86_64_register_info()
139 namelen = 3; in x86_64_register_info()
146 namelen = 3; in x86_64_register_info()
[all …]
Dppc_regs.c41 int regno, char *name, size_t namelen, in ppc_register_info() argument
48 if (regno < 0 || regno > 1155 || namelen < 8) in ppc_register_info()
77 namelen = 2; in ppc_register_info()
84 namelen = 3; in ppc_register_info()
90 namelen = 2; in ppc_register_info()
97 namelen = 3; in ppc_register_info()
113 namelen = 3; in ppc_register_info()
121 namelen = 4; in ppc_register_info()
149 namelen = 4; in ppc_register_info()
160 namelen = 5; in ppc_register_info()
[all …]
Dalpha_regs.c41 int regno, char *name, size_t namelen, in alpha_register_info() argument
48 if (regno < 0 || regno > 66 || namelen < 7) in alpha_register_info()
67 namelen = 2; in alpha_register_info()
73 namelen = 2; in alpha_register_info()
79 namelen = 2; in alpha_register_info()
85 namelen = 2; in alpha_register_info()
91 namelen = 2; in alpha_register_info()
98 namelen = 3; in alpha_register_info()
125 namelen = 2; in alpha_register_info()
132 namelen = 3; in alpha_register_info()
[all …]
Ds390_regs.c58 int regno, char *name, size_t namelen, in s390_register_info() argument
65 if (regno < 0 || regno > 65 || namelen < 7) in s390_register_info()
96 namelen = 2; in s390_register_info()
103 namelen = 3; in s390_register_info()
109 namelen = 1; in s390_register_info()
113 name[namelen++] = '1'; in s390_register_info()
115 name[namelen++] = regno + '0'; in s390_register_info()
122 namelen = 2; in s390_register_info()
130 namelen = 3; in s390_register_info()
144 name[namelen++] = '\0'; in s390_register_info()
[all …]
Darm_regs.c41 int regno, char *name, size_t namelen, in arm_register_info() argument
48 if (regno < 0 || regno > 320 || namelen < 5) in arm_register_info()
61 namelen = 2; in arm_register_info()
68 namelen = 3; in arm_register_info()
75 namelen = 2; in arm_register_info()
87 namelen = 2; in arm_register_info()
100 namelen = 2; in arm_register_info()
110 namelen = 3; in arm_register_info()
118 name[namelen++] = '\0'; in arm_register_info()
119 return namelen; in arm_register_info()
Di386_regs.c41 int regno, char *name, size_t namelen, in i386_register_info() argument
48 if (regno < 0 || regno > 45 || namelen < 6) in i386_register_info()
100 namelen = 3; in i386_register_info()
112 namelen = 3; in i386_register_info()
120 namelen = 4; in i386_register_info()
127 namelen = 3; in i386_register_info()
142 namelen = 2; in i386_register_info()
150 name[namelen++] = '\0'; in i386_register_info()
151 return namelen; in i386_register_info()
Dsparc_regs.c41 int regno, char *name, size_t namelen, in sparc_register_info() argument
51 if (regno < 0 || regno >= 32 + nfp + nspec || namelen < 6) in sparc_register_info()
72 namelen) + 1 - name; in sparc_register_info()
80 namelen = 2; in sparc_register_info()
99 namelen = 2; in sparc_register_info()
105 namelen = 3; in sparc_register_info()
109 name[namelen++] = '\0'; in sparc_register_info()
110 return namelen; in sparc_register_info()
Dtilegx_regs.c42 int regno, char *name, size_t namelen, in tilegx_register_info() argument
49 if (regno < 0 || regno > 64 || namelen < 5) in tilegx_register_info()
62 namelen = 2; in tilegx_register_info()
70 namelen = 3; in tilegx_register_info()
127 name[namelen++] = '\0'; in tilegx_register_info()
128 return namelen; in tilegx_register_info()
Daarch64_regs.c45 char *name, size_t namelen, const char *fmt, ...) in do_regtype() argument
52 int s = vsnprintf (name, namelen, fmt, ap); in do_regtype()
55 if (s < 0 || (unsigned) s >= namelen) in do_regtype()
62 int regno, char *name, size_t namelen, in aarch64_register_info() argument
74 do_regtype(setname, type, setnamep, typep, name, namelen, __VA_ARGS__) in aarch64_register_info()
/external/curl/lib/
Dcurl_gethostname.c51 int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) { in Curl_gethostname() argument
57 (void) namelen; in Curl_gethostname()
69 strncpy(name, force_hostname, namelen); in Curl_gethostname()
74 err = gethostname(name, namelen); in Curl_gethostname()
83 err = gethostname(name, namelen); in Curl_gethostname()
87 name[namelen - 1] = '\0'; in Curl_gethostname()
/external/kmod/tools/
Dmodinfo.c44 int namelen; member
49 static struct param *add_param(const char *name, int namelen, const char *param, int paramlen, cons… in add_param() argument
54 if (it->namelen == namelen && in add_param()
55 memcmp(it->name, name, namelen) == 0) in add_param()
66 it->namelen = namelen; in add_param()
89 int namelen, paramlen, typelen; in process_parm() local
99 namelen = colon - value; in process_parm()
112 it = add_param(name, namelen, param, paramlen, type, typelen, params); in process_parm()
144 p->namelen, p->name, p->typelen, p->type, in modinfo_params_do()
148 p->namelen, p->name, in modinfo_params_do()
[all …]
/external/syslinux/core/lwip/src/api/
Dnetdb.c168 size_t namelen; in lwip_gethostbyname_r() local
189 namelen = strlen(name); in lwip_gethostbyname_r()
190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) { in lwip_gethostbyname_r()
208 MEMCPY(hostname, name, namelen); in lwip_gethostbyname_r()
209 hostname[namelen] = 0; in lwip_gethostbyname_r()
275 size_t namelen = 0; in lwip_getaddrinfo() local
307 namelen = strlen(nodename); in lwip_getaddrinfo()
308 LWIP_ASSERT("namelen is too long", (namelen + 1) <= (mem_size_t)-1); in lwip_getaddrinfo()
309 total_size += namelen + 1; in lwip_getaddrinfo()
336 MEMCPY(ai->ai_canonname, nodename, namelen); in lwip_getaddrinfo()
[all …]
/external/dtc/libfdt/
Dfdt_ro.c159 const char *name, int namelen) in fdt_subnode_offset_namelen() argument
169 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
183 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument
185 const char *end = path + namelen; in fdt_path_offset_namelen()
295 int namelen, int *lenp) in fdt_get_property_namelen() argument
307 name, namelen)) in fdt_get_property_namelen()
325 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument
329 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen()
373 const char *name, int namelen) in fdt_get_alias_namelen() argument
381 return fdt_getprop_namelen(fdt, aliasoffset, name, namelen, NULL); in fdt_get_alias_namelen()
[all …]
/external/syslinux/com32/lib/syslinux/
Dinitramfs_file.c110 int namelen = strlen(filename); in initramfs_mknod() local
119 hdr_sz = ((sizeof(struct cpio_header) + namelen + 1) + 3) & ~3; in initramfs_mknod()
131 0, 0, 1, 0, len, 0, 1, major, minor, namelen + 1, 0); in initramfs_mknod()
132 memcpy(bp, filename, namelen); in initramfs_mknod()
133 bp += namelen; in initramfs_mknod()
134 pad = hdr_sz - (sizeof(struct cpio_header) + namelen); in initramfs_mknod()
/external/elfutils/libdwfl/
Dlinux-kernel-modules.c291 check_suffix (const FTSENT *f, size_t namelen) in check_suffix() argument
294 if ((namelen ? f->fts_namelen == namelen + sizeof sfx - 1 \ in check_suffix()
672 const size_t namelen) in INTDEF()
674 const char *n = memchr (module_name, from, namelen); in INTDEF()
681 while ((p = memchr (n, from, namelen - (n - module_name))) != NULL) in INTDEF()
687 memcpy (a, n, namelen - (n - module_name) + 1); in INTDEF()
728 size_t namelen = strlen (module_name); in dwfl_linux_kernel_find_elf() local
741 char *alternate_name = malloc (namelen + 1); in dwfl_linux_kernel_find_elf()
747 if (!subst_name ('-', '_', module_name, alternate_name, namelen) && in dwfl_linux_kernel_find_elf()
748 !subst_name ('_', '-', module_name, alternate_name, namelen)) in dwfl_linux_kernel_find_elf()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig_winreg.c69 DWORD namelen, datalen, type; in wpa_config_read_blobs() local
71 namelen = TNAMELEN; in wpa_config_read_blobs()
73 ret = RegEnumValue(bhk, i, name, &namelen, NULL, &type, in wpa_config_read_blobs()
85 if (namelen >= TNAMELEN) in wpa_config_read_blobs()
86 namelen = TNAMELEN - 1; in wpa_config_read_blobs()
87 name[namelen] = TEXT('\0'); in wpa_config_read_blobs()
312 DWORD namelen, datalen, type; in wpa_config_read_network() local
314 namelen = 255; in wpa_config_read_network()
316 ret = RegEnumValue(nhk, i, name, &namelen, NULL, &type, in wpa_config_read_network()
328 if (namelen >= 255) in wpa_config_read_network()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Daddinterface.cpp120 DWORD namelen; in addRegistryInterface() local
122 namelen = 255; in addRegistryInterface()
123 ret = RegEnumKeyEx(hk, i, name, &namelen, NULL, NULL, NULL, in addRegistryInterface()
132 if (namelen >= 255) in addRegistryInterface()
133 namelen = 255 - 1; in addRegistryInterface()
134 name[namelen] = '\0'; in addRegistryInterface()
137 QString s((QChar *) name, namelen); in addRegistryInterface()
/external/ipsec-tools/src/racoon/
Ddnssec.c67 int namelen; local
72 namelen = id->l - sizeof(*id_b);
73 name = racoon_malloc(namelen + 1);
79 memcpy(name, id_b + 1, namelen);
80 name[namelen] = '\0';
/external/syslinux/core/fs/xfs/
Dxfs_readdir.c34 size_t namelen) in fill_dirent() argument
39 dirent, offset, ino, name, namelen); in fill_dirent()
43 dirent->d_reclen = offsetof(struct dirent, d_name) + namelen + 1; in fill_dirent()
58 memcpy(dirent->d_name, name, namelen); in fill_dirent()
59 dirent->d_name[namelen] = '\0'; in fill_dirent()
95 sf_entry->namelen + in xfs_readdir_dir2_local()
101 end_name = start_name + sf_entry->namelen; in xfs_readdir_dir2_local()
107 sf_entry->namelen)); in xfs_readdir_dir2_local()
173 p += xfs_dir2_data_entsize(dep->namelen); in xfs_readdir_dir2_block()
180 end_name = start_name + dep->namelen; in xfs_readdir_dir2_block()
[all …]
/external/iputils/ninfod/
Dninfod_name.c157 size_t namelen; in encode_dnsname() local
163 namelen = strlen(name); in encode_dnsname()
164 if (namelen == 0) in encode_dnsname()
166 if (namelen > 255 || buflen < namelen+1) in encode_dnsname()
170 while(i <= namelen) { in encode_dnsname()
176 e = name + namelen; in encode_dnsname()
261 static int nodeinfo_group(const char *dnsname, int namelen, in nodeinfo_group() argument
/external/dtc/tests/
Dpath_offset.c72 static void check_path_offset_namelen(void *fdt, char *path, int namelen, in check_path_offset_namelen() argument
78 " is %d...\n", path, namelen, offset); in check_path_offset_namelen()
80 rc = fdt_path_offset_namelen(fdt, path, namelen); in check_path_offset_namelen()
86 path, namelen, fdt_strerror(rc)); in check_path_offset_namelen()
89 " offset %d instead of %d", path, namelen, rc, offset); in check_path_offset_namelen()
/external/syslinux/core/lwip/src/core/
Ddns.c325 size_t namelen; in dns_init_local() local
329 namelen = strlen(init_entry->name); in dns_init_local()
330 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_init_local()
335 MEMCPY((char*)entry->name, init_entry->name, namelen); in dns_init_local()
336 ((char*)entry->name)[namelen] = 0; in dns_init_local()
422 size_t namelen; in dns_local_addhost() local
424 namelen = strlen(hostname); in dns_local_addhost()
425 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_local_addhost()
431 MEMCPY((char*)entry->name, hostname, namelen); in dns_local_addhost()
432 ((char*)entry->name)[namelen] = 0; in dns_local_addhost()
[all …]
/external/curl/tests/libtest/
Dsethostname.c30 int gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) in gethostname() argument
34 strncpy(name, force_hostname, namelen); in gethostname()
35 name[namelen-1] = '\0'; in gethostname()

123456