Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 831) sorted by relevance

12345678910>>...34

/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dstrncpy-1.ll1 ; Test that the strncpy library call simplifier works correctly.
13 declare i8* @strncpy(i8*, i8*, i32)
16 ; Check a bunch of strncpy invocations together.
20 ; CHECK-NOT: call i8* @strncpy
27 %rslt1 = call i8* @strncpy(i8* %arg1, i8* %arg2, i32 6)
30 %rslt2 = call i8* @strncpy(i8* %rslt1, i8* %arg3, i32 42)
33 %rslt3 = call i8* @strncpy(i8* %rslt2, i8* %arg4, i32 42)
39 ; Check strncpy(x, "", y) -> memset(x, '\0', y, 1).
46 call i8* @strncpy(i8* %dst, i8* %src, i32 32)
51 ; Check strncpy(x, y, 0) -> x.
[all …]
Dstrncpy-2.ll1 ; Test that the strncpy library call simplifier works correctly.
10 declare i16* @strncpy(i8*, i8*, i32)
12 ; Check that 'strncpy' functions with the wrong prototype aren't simplified.
19 call i16* @strncpy(i8* %dst, i8* %src, i32 6)
20 ; CHECK: call i16* @strncpy
/external/llvm/test/Transforms/InstCombine/
Dstrncpy-1.ll1 ; Test that the strncpy library call simplifier works correctly.
13 declare i8* @strncpy(i8*, i8*, i32)
16 ; Check a bunch of strncpy invocations together.
20 ; CHECK-NOT: call i8* @strncpy
27 %rslt1 = call i8* @strncpy(i8* %arg1, i8* %arg2, i32 6)
30 %rslt2 = call i8* @strncpy(i8* %rslt1, i8* %arg3, i32 42)
33 %rslt3 = call i8* @strncpy(i8* %rslt2, i8* %arg4, i32 42)
39 ; Check strncpy(x, "", y) -> memset(x, '\0', y, 1).
46 call i8* @strncpy(i8* %dst, i8* %src, i32 32)
51 ; Check strncpy(x, y, 0) -> x.
[all …]
Dstrncpy-2.ll1 ; Test that the strncpy library call simplifier works correctly.
10 declare i16* @strncpy(i8*, i8*, i32)
12 ; Check that 'strncpy' functions with the wrong prototype aren't simplified.
19 call i16* @strncpy(i8* %dst, i8* %src, i32 6)
20 ; CHECK: call i16* @strncpy
/external/python/cpython2/Modules/
Dgetpath.c206 strncpy(buffer+n, stuff, k); in joinpath()
253 strncpy(prefix, home, MAXPATHLEN); in search_for_prefix()
289 strncpy(prefix, PREFIX, MAXPATHLEN); in search_for_prefix()
313 strncpy(exec_prefix, delim+1, MAXPATHLEN); in search_for_exec_prefix()
315 strncpy(exec_prefix, home, MAXPATHLEN); in search_for_exec_prefix()
355 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); in search_for_exec_prefix()
402 strncpy(progpath, prog, MAXPATHLEN); in calculate_path()
425 strncpy(progpath, path, len); in calculate_path()
429 strncpy(progpath, path, MAXPATHLEN); in calculate_path()
446 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
[all …]
/external/libexif/libexif/olympus/
Dmnote-olympus-entry.c388 strncpy (v, _("No manual focus selection"), maxlen); in mnote_olympus_entry_get_value()
417 case 0: strncpy (v, _("AF position: center"), maxlen); break; in mnote_olympus_entry_get_value()
418 case 1: strncpy (v, _("AF position: top"), maxlen); break; in mnote_olympus_entry_get_value()
419 case 2: strncpy (v, _("AF position: bottom"), maxlen); break; in mnote_olympus_entry_get_value()
420 case 3: strncpy (v, _("AF position: left"), maxlen); break; in mnote_olympus_entry_get_value()
421 case 4: strncpy (v, _("AF position: right"), maxlen); break; in mnote_olympus_entry_get_value()
422 case 5: strncpy (v, _("AF position: upper-left"), maxlen); break; in mnote_olympus_entry_get_value()
423 case 6: strncpy (v, _("AF position: upper-right"), maxlen); break; in mnote_olympus_entry_get_value()
424 case 7: strncpy (v, _("AF position: lower-left"), maxlen); break; in mnote_olympus_entry_get_value()
425 case 8: strncpy (v, _("AF position: lower-right"), maxlen); break; in mnote_olympus_entry_get_value()
[all …]
/external/u-boot/drivers/misc/
Dmisc_sandbox.c55 strncpy(rx_msg, "Zero", rx_size); in misc_sandbox_call()
58 strncpy(rx_msg, "One", rx_size); in misc_sandbox_call()
61 strncpy(rx_msg, "Two", rx_size); in misc_sandbox_call()
73 strncpy(rx_msg, "Forty", rx_size); in misc_sandbox_call()
76 strncpy(rx_msg, "Forty-one", rx_size); in misc_sandbox_call()
79 strncpy(rx_msg, "Forty-two", rx_size); in misc_sandbox_call()
/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc180 strncpy(to, from, 0); in TEST()
181 strncpy(to - 1, from - 1, 0); in TEST()
183 strncpy(to, from, from_size); in TEST()
184 strncpy(to, from, to_size); in TEST()
185 strncpy(to, from + from_size - 1, to_size); in TEST()
186 strncpy(to + to_size - 1, from, 1); in TEST()
188 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
190 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)), in TEST()
192 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)), in TEST()
194 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST()
[all …]
/external/cpuinfo/test/name/
Dandroid-properties-interface.c20 strncpy(properties.proc_cpuinfo_hardware, proc_cpuinfo_hardware, CPUINFO_HARDWARE_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
21 strncpy(properties.ro_product_board, ro_product_board, CPUINFO_BUILD_PROP_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
22 strncpy(properties.ro_board_platform, ro_board_platform, CPUINFO_BUILD_PROP_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
23 strncpy(properties.ro_mediatek_platform, ro_mediatek_platform, CPUINFO_BUILD_PROP_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
24 strncpy(properties.ro_arch, ro_arch, CPUINFO_BUILD_PROP_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
25 strncpy(properties.ro_chipname, ro_chipname, CPUINFO_BUILD_PROP_VALUE_MAX); in cpuinfo_arm_android_parse_chipset_properties()
/external/iproute2/ip/
Dtunnel.c77 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
102 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl()
104 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
128 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl()
130 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
155 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
/external/python/cpython2/PC/os2emx/
Dgetpathp.c161 strncpy(buffer+n, stuff, k); in join()
223 strncpy(progpath, prog, MAXPATHLEN); in get_progpath()
236 strncpy(progpath, path, len); in get_progpath()
240 strncpy(progpath, path, MAXPATHLEN); in get_progpath()
280 strncpy(prefix, pythonhome, MAXPATHLEN); in calculate_path()
286 strncpy(zip_path, progpath, MAXPATHLEN); in calculate_path()
371 strncpy(buf, p, n); in calculate_path()
/external/clang/test/Analysis/
Dstring.c451 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
455 #define strncpy BUILTIN(strncpy) macro
456 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
462 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_dst()
466 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_src()
470strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
476 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects()
484strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_overflow()
490strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow()
499strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow2()
[all …]
/external/nanopb-c/tests/map/
Dencode_map.c17 strncpy(msg.numbers[0].key, "one", sizeof(msg.numbers[0].key)); in main()
18 strncpy(msg.numbers[1].key, "two", sizeof(msg.numbers[1].key)); in main()
19 strncpy(msg.numbers[2].key, "seven", sizeof(msg.numbers[2].key)); in main()
/external/ipsec-tools/src/racoon/
Dvar.h82 strncpy((y), "(invalid)", sizeof(y)); \
84 strncpy((z), "(invalid)", sizeof(z)); \
93 strncpy((y), "(invalid)", sizeof(y)); \
/external/python/cpython2/PC/
Dgetpathp.c167 strncpy(buffer+n, stuff, k); in join()
431 strncpy(progpath, prog, MAXPATHLEN); in get_progpath()
440 strncpy(progpath, path, len); in get_progpath()
444 strncpy(progpath, path, MAXPATHLEN); in get_progpath()
490 strncpy(prefix, pythonhome, MAXPATHLEN); in calculate_path()
499 strncpy(zip_path, dllpath, MAXPATHLEN); in calculate_path()
501 strncpy(zip_path, progpath, MAXPATHLEN); in calculate_path()
633 strncpy(buf, p, n); in calculate_path()
668 strncpy(lookBuf, look+1, nchars); in calculate_path()
/external/mesa3d/src/gallium/targets/d3dadapter9/
Ddescription.c252 strncpy(drvid->Driver, "igdumd32.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
257 strncpy(drvid->Driver, "vm3dum.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
262 strncpy(drvid->Driver, "atiumdag.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
267 strncpy(drvid->Driver, "nvd3dum.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
/external/webrtc/webrtc/tools/
Dsimple_command_line_parser_unittest.cc28 strncpy(test_flags_[0], "tools_unittest", flag_size); in SetUp()
29 strncpy(test_flags_[1], "--foo", flag_size); in SetUp()
30 strncpy(test_flags_[2], "--bar=1", flag_size); in SetUp()
/external/curl/lib/
Dstrerror.c626 strncpy(buf, p, len); in get_winsock_error()
680 strncpy(buf, strerror(err), max); in Curl_strerror()
711 strncpy(buf, msg, max); in Curl_strerror()
723 strncpy(buf, buffer, max); in Curl_strerror()
731 strncpy(buf, msg, max); in Curl_strerror()
1032 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
1079 strncpy(outbuf, str, outmax); in Curl_sspi_strerror()
1089 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
/external/mdnsresponder/mDNSWindows/
Dloclibrary.c70 strncpy(isoLangCode, langStr, codeLen); in _getISOCode()
92 strncpy(isoLangCode, DEFAULT_LANG_CODE, LANG_CODE_LEN+1); in _setLanguageIfNeeded()
205 strncpy(locFile, tmpBuffer, locFileLen); in PathForResourceWithPathA()
217 strncpy(locFile, tmpBuffer, locFileLen); in PathForResourceWithPathA()
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYCAP.c116 strncpy((char *)cap2.driver, (char *)cap.driver, in test_VIDIOC_QUERYCAP()
118 strncpy((char *)cap2.card, (char *)cap.card, sizeof(cap2.card)); in test_VIDIOC_QUERYCAP()
119 strncpy((char *)cap2.bus_info, (char *)cap.bus_info, in test_VIDIOC_QUERYCAP()
/external/u-boot/board/corscience/tricorder/
Dtricorder-eeprom.c147 strncpy(eeprom.board_name, name, length); in tricorder_eeprom_write()
150 strncpy(eeprom.board_version, version, length); in tricorder_eeprom_write()
153 strncpy(eeprom.board_serial, serial, length); in tricorder_eeprom_write()
158 strncpy(eeprom.interface_version, interface, length); in tricorder_eeprom_write()
/external/libpcap/
Dfad-glifc.c196 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
212 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
239 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
274 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
Dfad-gifc.c268 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
284 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
314 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
353 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
/external/webrtc/webrtc/modules/audio_device/dummy/
Dfile_audio_device_factory.cc41 strncpy(_inputAudioFilename, inputAudioFilename, MAX_FILENAME_LEN); in SetFilenamesToUse()
42 strncpy(_outputAudioFilename, outputAudioFilename, MAX_FILENAME_LEN); in SetFilenamesToUse()
/external/selinux/libsepol/src/
Dibendport_record.c65 strncpy(tmp_key->ibdev_name, ibdev_name, IB_DEVICE_NAME_MAX); in sepol_ibendport_key_create()
173 strncpy(tmp_ibdev_name, ibendport->ibdev_name, IB_DEVICE_NAME_MAX); in hidden_def()
194 strncpy(tmp, ibdev_name, IB_DEVICE_NAME_MAX); in hidden_def()
240 strncpy(new_ibendport->ibdev_name, ibendport->ibdev_name, IB_DEVICE_NAME_MAX); in hidden_def()

12345678910>>...34