Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/external/syslinux/com32/gpllib/disk/
Dlabels.c21 strlcpy(buffer, "DOS 12-bit fat", buffer_size); in get_label()
24 strlcpy(buffer, "XENIX root", buffer_size); in get_label()
27 strlcpy(buffer, "XENIX /usr", buffer_size); in get_label()
30 strlcpy(buffer, "DOS 3.0+ 16-bit FAT (up to 32M)", buffer_size); in get_label()
33 strlcpy(buffer, "DOS 3.3+ Extended Partition", buffer_size); in get_label()
36 strlcpy(buffer, "DOS 3.31+ 16-bit FAT (over 32M)", buffer_size); in get_label()
39 strlcpy(buffer, "NTFS/exFAT/HPFS", buffer_size); in get_label()
45 strlcpy(buffer, "AIX", buffer_size); in get_label()
53 strlcpy(buffer, "AIX bootable partition", buffer_size); in get_label()
58 strlcpy(buffer, "OS/2 Boot Manager", buffer_size); in get_label()
[all …]
Dmbrs.c31 strlcpy(buffer, "No bootloader", buffer_size - 1); in get_mbr_string()
34 strlcpy(buffer, "ThinkPad", buffer_size - 1); in get_mbr_string()
37 strlcpy(buffer, "Acer 3", buffer_size - 1); in get_mbr_string()
42 strlcpy(buffer, "Windows", buffer_size - 1); in get_mbr_string()
44 strlcpy(buffer, "DiskCryptor", buffer_size - 1); in get_mbr_string()
46 strlcpy(buffer, "Syslinux", buffer_size - 1); in get_mbr_string()
48 strlcpy(buffer, "Unknown mbr", buffer_size - 1); in get_mbr_string()
51 strlcpy(buffer, "Syslinux ISOhybrid", buffer_size - 1); in get_mbr_string()
54 strlcpy(buffer, "HP/Gateway", buffer_size - 1); in get_mbr_string()
57 strlcpy(buffer, "PloP", buffer_size - 1); in get_mbr_string()
[all …]
Dbootloaders.c34 strlcpy(buffer, "SYSLINUX", buffer_size - 1); in get_bootloader_string()
36 strlcpy(buffer, "EXTLINUX", buffer_size - 1); in get_bootloader_string()
38 strlcpy(buffer, "MSWIN4.1", buffer_size - 1); in get_bootloader_string()
/external/syslinux/com32/gpllib/dmi/
Ddmi.c76 strlcpy(dmi->base_board.devices_information[i].type, in dmi_on_board_devices()
80 strlcpy(dmi->base_board.devices_information[i].description, in dmi_on_board_devices()
106 strlcpy(array, "Unknown", sizeof array); in dmi_system_reset_count()
114 strlcpy(array, "Unknown", sizeof array); in dmi_system_reset_timer()
182 strlcpy(array, status[code], SYSTEM_BOOT_STATUS_SIZE); in dmi_system_boot_status()
184 strlcpy(array, "OEM-specific", SYSTEM_BOOT_STATUS_SIZE); in dmi_system_boot_status()
186 strlcpy(array, "Product-specific", SYSTEM_BOOT_STATUS_SIZE); in dmi_system_boot_status()
193 strlcpy(dmi->bios.runtime_size_unit, "bytes", in dmi_bios_runtime_size()
197 strlcpy(dmi->bios.runtime_size_unit, "KB", in dmi_bios_runtime_size()
282 strlcpy(dmi->system.wakeup_type, type[code], in dmi_system_wake_up_type()
[all …]
/external/syslinux/com32/lib/pci/
Dscan.c90 strlcpy(dev->dev_info->linux_kernel_module[i], "unknown",7); in get_module_name_from_pcimap()
193 strlcpy(dev->dev_info->class_name, "unknown", 7); in get_class_name_from_pci_ids()
212 strlcpy(class_name, "unknown", 7); in get_class_name_from_pci_ids()
217 strlcpy(class_id_str, &line[2], 2); in get_class_name_from_pci_ids()
221 strlcpy(class_name, skipspace(strstr(line, " ")), in get_class_name_from_pci_ids()
229 strlcpy(dev->dev_info->class_name, class_name, in get_class_name_from_pci_ids()
232 strlcpy(dev->dev_info->category_name, class_name + 4, in get_class_name_from_pci_ids()
240 strlcpy(sub_class_name, skipspace(strstr(line, " ")), in get_class_name_from_pci_ids()
245 strlcpy(sub_class_id_str, &line[1], 2); in get_class_name_from_pci_ids()
254 strlcpy(dev->dev_info->class_name, sub_class_name, in get_class_name_from_pci_ids()
[all …]
/external/clang/test/Sema/
Dwarn-strlcpycat-size.c4 size_t strlcpy (char * restrict dst, const char * restrict src, size_t size);
21 strlcpy(s1, s2, sizeof(s1)); // no warning in f()
22strlcpy(s1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be s… in f()
23strlcpy(s1, s3, strlen(s3)+1); // expected-warning {{size argument in 'strlcpy' call appears to be… in f()
25strlcpy(s4.f1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to b… in f()
26strlcpy((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appea… in f()
27strlcpy(s1+3, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be… in f()
38strlcpy(s->x, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to… in flexible_arrays()
46strlcpy(z, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to be… in size_1()
54strlcpy(z, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to be … in vlas()
/external/syslinux/com32/lua/src/
Dpci.c109 strlcpy(vendor_id,line,4); in pci_getidlist()
113 strlcpy(vendor,skipspace(strstr(line," ")),255); in pci_getidlist()
127 strlcpy(product,skipspace(strstr(line," ")),255); in pci_getidlist()
131 strlcpy(productvendor,vendor_id,4); in pci_getidlist()
133 strlcpy(productvendor+4,&line[1],4); in pci_getidlist()
144 strlcpy(product,skipspace(strstr(line," ")),255); in pci_getidlist()
145 strlcpy(product,skipspace(strstr(product," ")),255); in pci_getidlist()
148 strlcpy(productvendorsub, productvendor,8); in pci_getidlist()
149 strlcpy(productvendorsub+8, &line[2],4); in pci_getidlist()
150 strlcpy(productvendorsub+12, &line[7],4); in pci_getidlist()
/external/syslinux/com32/hdt/
Dhdt-util.c57 strlcpy(unit, "KB", 2); in sectors_to_size_dec()
58 strlcpy(previous_unit, unit, 2); in sectors_to_size_dec()
62 strlcpy(unit, "MB", 2); in sectors_to_size_dec()
66 strlcpy(previous_unit, unit, 2); in sectors_to_size_dec()
67 strlcpy(unit, "GB", 2); in sectors_to_size_dec()
71 strlcpy(previous_unit, unit, 2); in sectors_to_size_dec()
72 strlcpy(unit, "TB", 2); in sectors_to_size_dec()
Dhdt-common.c86 strlcpy(hardware->modules_pcimap_path, argv[i] + 15, in detect_parameters()
90 strlcpy(hardware->pciids_path, argv[i] + 7, in detect_parameters()
94 strlcpy(hardware->modules_alias_path, argv[i] + 14, in detect_parameters()
98 strlcpy(hardware->memtest_label, argv[i] + 8, in detect_parameters()
106 strlcpy(hardware->vesa_background, argv[i] + 5, in detect_parameters()
115 strlcpy(hardware->dump_filename, argv[i] + 14, in detect_parameters()
118 strlcpy(hardware->dump_path, argv[i] + 10, in detect_parameters()
121 strlcpy(hardware->tftp_ip, argv[i] + 8, in detect_parameters()
175 strlcpy(hardware->syslinux_fs, "SYSlinux", 9); in detect_syslinux()
178 strlcpy(hardware->syslinux_fs, "PXElinux", 9); in detect_syslinux()
[all …]
Dhdt-cli.c90 strlcpy(new->autocomplete_token, token, sizeof(new->autocomplete_token)); in autocomplete_add_token_to_list()
276 strlcpy(argv[0], *command, sizeof(*command) + 1); in expand_aliases()
279 strlcpy(*command, CLI_SET, sizeof(CLI_SET)); /* set */ in expand_aliases()
282 strlcpy(*module, CLI_MODE, sizeof(CLI_MODE)); /* mode */ in expand_aliases()
294 strlcpy(*command, hdt_aliases[i].command, in expand_aliases()
366 strlcpy(*command, pch, token_len); in parse_command_line()
373 strlcpy(*module, pch, token_len); in parse_command_line()
395 strlcpy(argv[argc_iter], pch, strlen(pch)); in parse_command_line()
656 strlcpy(new_argv[argc_iter+1], argv[argc_iter], strlen(argv[argc_iter])); in exec_command()
660 strlcpy(new_argv[0], module, strlen(module)); in exec_command()
[all …]
/external/syslinux/com32/gpllib/vpd/
Dvpd.c84 strlcpy(vpd->bios_build_id, q + 0x0D, 9); in vpd_decode()
85 strlcpy(vpd->box_serial_number, q + 0x16, 7); in vpd_decode()
86 strlcpy(vpd->motherboard_serial_number, q + 0x1D, 11); in vpd_decode()
87 strlcpy(vpd->machine_type_model, q + 0x28, 7); in vpd_decode()
92 strlcpy(vpd->bios_release_date, q + 0x30, 8); in vpd_decode()
93 strlcpy(vpd->default_flash_filename, q + 0x38, 12); in vpd_decode()
96 strlcpy(vpd->bios_version, q + 0x44, 255); in vpd_decode()
/external/libcups/cups/
Dppd-localize.c88 strlcpy(group->text, locattr->text, sizeof(group->text)); in ppdLocalize()
94 strlcpy(option->text, locattr->text, sizeof(option->text)); in ppdLocalize()
112 strlcpy(choice->text, locattr->text, sizeof(choice->text)); in ppdLocalize()
133 strlcpy(cparam->text, locattr->text, sizeof(cparam->text)); in ppdLocalize()
145 strlcpy(attr->text, locattr->text, sizeof(attr->text)); in ppdLocalize()
156 strlcpy(attr->text, locattr->text, sizeof(attr->text)); in ppdLocalize()
173 strlcpy(attr->text, locattr->text, sizeof(attr->text)); in ppdLocalize()
340 strlcpy(buffer, _cupsLangString(lang, message), bufsize); in ppdLocalizeIPPReason()
361 strlcpy(buffer, locattr->text, bufsize); in ppdLocalizeIPPReason()
751 strlcpy(ll_CC, "en_US", ll_CC_size); in ppd_ll_CC()
[all …]
Dhttp-addr.c343 strlcpy(name, addr->un.sun_path, (size_t)namelen); in httpAddrLookup()
354 strlcpy(name, "localhost", (size_t)namelen); in httpAddrLookup()
425 strlcpy(name, host->h_name, (size_t)namelen); in httpAddrLookup()
521 strlcpy(s, addr->un.sun_path, (size_t)slen); in httpAddrString()
523 strlcpy(s, "localhost", (size_t)slen); in httpAddrString()
619 strlcpy(temps, "::", sizeof(temps)); in httpAddrString()
627 strlcpy(sptr, "::", sizeof(temps) - (size_t)(sptr - temps)); in httpAddrString()
640 strlcpy(s, "UNKNOWN", (size_t)slen); in httpAddrString()
806 strlcpy(s, "localhost", (size_t)slen); in httpGetHostname()
808 strlcpy(s, http->hostname, (size_t)slen); in httpGetHostname()
[all …]
Dlanguage.c190 strlcpy(language, "en", langsize); in _cupsAppleLanguage()
194 strlcpy(language, locale, langsize); in _cupsAppleLanguage()
198 strlcpy(language, locale, langsize); in _cupsAppleLanguage()
219 strlcpy(language, apple_language_locale[i].language, sizeof(language)); in _cupsAppleLanguage()
299 strlcpy(locale, apple_language_locale[i].locale, localesize); in _cupsAppleLocale()
516 strlcpy(charset, "UTF8", sizeof(charset)); in cupsLangGet()
595 strlcpy(locale, ptr, sizeof(locale)); in cupsLangGet()
652 strlcpy(charset, "UTF8", sizeof(charset)); in cupsLangGet()
667 strlcpy(langname, "C", sizeof(langname)); in cupsLangGet()
701 strlcpy(country, "CN", sizeof(country)); in cupsLangGet()
[all …]
Dppd.c591 strlcpy(ll_CC, "zh_TW.", sizeof(ll_CC)); in _ppdOpen()
592 strlcpy(ll, "zh_", sizeof(ll)); in _ppdOpen()
595 strlcpy(ll, "zh_", sizeof(ll)); /* Any Chinese variant */ in _ppdOpen()
598 strlcpy(ll_CC, "ja", sizeof(ll_CC)); in _ppdOpen()
599 strlcpy(ll, "jp", sizeof(ll)); in _ppdOpen()
603 strlcpy(ll_CC, "nb", sizeof(ll_CC)); in _ppdOpen()
604 strlcpy(ll, "no", sizeof(ll)); in _ppdOpen()
826 strlcpy(option->defchoice, ppd->attrs[j]->value, in _ppdOpen()
832 strlcpy(option->text, _("Media Size"), sizeof(option->text)); in _ppdOpen()
834 strlcpy(option->text, _("Media Type"), sizeof(option->text)); in _ppdOpen()
[all …]
Dusersys.c379 strlcpy(cg->server, server, sizeof(cg->server)); in cupsSetServer()
411 strlcpy(cg->servername, "localhost", sizeof(cg->servername)); in cupsSetServer()
413 strlcpy(cg->servername, cg->server, sizeof(cg->servername)); in cupsSetServer()
473 strlcpy(cg->user, user, sizeof(cg->user)); in cupsSetUser()
503 strlcpy(cg->user_agent, user_agent, sizeof(cg->user_agent)); in cupsSetUserAgent()
942 strlcpy(cg->user, cc.user, sizeof(cg->user)); in _cupsSetDefaults()
946 strlcpy(cg->gss_service_name, cc.gss_service_name, sizeof(cg->gss_service_name)); in _cupsSetDefaults()
1138 strlcpy(cc->user, pw->pw_name, sizeof(cc->user)); in cups_finalize_client_conf()
1146 strlcpy(cc->user, "unknown", sizeof(cc->user)); in cups_finalize_client_conf()
1313 strlcpy(cc->gss_service_name, value, sizeof(cc->gss_service_name)); in cups_set_gss_service_name()
[all …]
Ddir.c129 strlcpy(dp->directory, directory, sizeof(dp->directory)); in cupsDirOpen()
179 strlcpy(dp->entry.filename, entry.cFileName, sizeof(dp->entry.filename)); in cupsDirRead()
320 strlcpy(dp->directory, directory, sizeof(dp->directory)); in cupsDirOpen()
381 strlcpy(dp->entry.filename, entry->d_name, sizeof(dp->entry.filename)); in cupsDirRead()
/external/openssh/
Dlogintest.c101 strlcpy(username, pw->pw_name, sizeof(username)); in testAPI()
109 strlcpy(li1->progname, "OpenSSH-logintest", sizeof(li1->progname)); in testAPI()
123 strlcpy(li1->hostname, "localhost", sizeof(li1->hostname)); in testAPI()
144 strlcpy(s_t0, ctime(&t0), sizeof(s_t0)); in testAPI()
146 strlcpy(s_t1, ctime(&t1), sizeof(s_t1)); in testAPI()
155 strlcpy(s_logintime, ctime(&logintime), sizeof(s_logintime)); in testAPI()
171 strlcpy(s_logouttime, ctime(&logouttime), sizeof(s_logouttime)); in testAPI()
186 strlcpy(s_t2, ctime(&t2), sizeof(s_t2)); in testAPI()
/external/valgrind/memcheck/tests/solaris/
Dstrlcpy.c25 copied = strlcpy(dst, src, 10); in main()
30 copied = strlcpy(dst, src, strlen(src) + 1); in main()
36 copied = strlcpy(NULL, src, 0); in main()
41 strlcpy(src + 9, src, strlen(src) + 1); in main()
Dstrlcpy.stderr.exp2 at 0x........: strlcpy (vg_replace_strmem.c:...)
8 Source and destination overlap in strlcpy(0x........, 0x........, 11)
9 at 0x........: strlcpy (vg_replace_strmem.c:...)
/external/libcups/filter/
Drastertopwg.c208 strlcpy(outheader.OutputType, "Automatic", in main()
211 strlcpy(outheader.OutputType, "Graphics", sizeof(outheader.OutputType)); in main()
213 strlcpy(outheader.OutputType, "Photo", sizeof(outheader.OutputType)); in main()
215 strlcpy(outheader.OutputType, "Text", sizeof(outheader.OutputType)); in main()
217 strlcpy(outheader.OutputType, "TextAndGraphics", in main()
243 strlcpy(outheader.cupsRenderingIntent, "Absolute", in main()
246 strlcpy(outheader.cupsRenderingIntent, "Automatic", in main()
249 strlcpy(outheader.cupsRenderingIntent, "Perceptual", in main()
252 strlcpy(outheader.cupsRenderingIntent, "Relative", in main()
255 strlcpy(outheader.cupsRenderingIntent, "RelativeBpc", in main()
[all …]
/external/google-breakpad/src/client/mac/crash_generation/
DInspector.h67 strlcpy(key, inEntry.key, sizeof(key) ); in KeyValueMessageData()
68 strlcpy(value, inEntry.value, sizeof(value) ); in KeyValueMessageData()
90 strlcpy(minidump_dir_path_, [minidumpDir fileSystemRepresentation], in MinidumpLocation()
100 strlcpy(minidump_id_, next_minidump_id.c_str(), sizeof(minidump_id_)); in MinidumpLocation()
/external/dhcpcd-6.8.2/
Dif.c132 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in if_carrier()
141 strlcpy(ifmr.ifm_name, iface->name, sizeof(ifmr.ifm_name)); in if_carrier()
163 strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name)); in if_setflag()
330 strlcpy(ifn, argv[i], intf_len + 1); in if_discover()
332 strlcpy(alias, argv[i], intf_len + 1); in if_discover()
344 strlcpy(ifn, ifa->ifa_name, sizeof(ifn)); in if_discover()
346 strlcpy(alias, ifa->ifa_name, sizeof(alias)); in if_discover()
391 strlcpy(ifp->alias, alias, sizeof(ifp->alias)); in if_discover()
393 strlcpy(ifp->name, p, sizeof(ifp->name)); in if_discover()
395 strlcpy(ifp->lease_identifier, lease_identifier, in if_discover()
[all …]
/external/openssh/openbsd-compat/
Drealpath.c92 left_len = strlcpy(left, path + 1, sizeof(left)); in realpath()
98 strlcpy(resolved, ".", PATH_MAX); in realpath()
102 left_len = strlcpy(left, path, sizeof(left)); in realpath()
212 left_len = strlcpy(left, symlink, sizeof(left)); in realpath()
/external/libpcap/
Dpcap-new.c306 strlcpy(dev->name, tmpstring, stringlen); in pcap_findalldevs_ex()
325 strlcpy(dev->description, tmpstring, stringlen + 1); in pcap_findalldevs_ex()
515 strlcpy(dev->name, tmpstring2, stringlen + 1); in pcap_findalldevs_ex()
550 strlcpy(dev->description, tmpstring2, stringlen + 1); in pcap_findalldevs_ex()
678 strlcpy(source, PCAP_SRC_FILE_STRING, PCAP_BUF_SIZE); in pcap_createsrcstr()
693 strlcpy(source, PCAP_SRC_IF_STRING, PCAP_BUF_SIZE); in pcap_createsrcstr()
729 strlcpy(source, PCAP_SRC_IF_STRING, PCAP_BUF_SIZE); in pcap_createsrcstr()
810 strlcpy(tmpname, ptr, PCAP_BUF_SIZE); in pcap_parsesrcstr()
824 strlcpy(host, tmphost, PCAP_BUF_SIZE); in pcap_parsesrcstr()
826 strlcpy(port, tmpport, PCAP_BUF_SIZE); in pcap_parsesrcstr()
[all …]

12345678910>>...12