Home
last modified time | relevance | path

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

12345678910>>...32

/external/mesa3d/src/gallium/targets/d3dadapter9/
Ddescription.c242 strncpy(drvid->Description, fallback_name, sizeof(drvid->Description)); in d3d_match_vendor_id()
251 strncpy(drvid->Driver, "igdumd32.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
256 strncpy(drvid->Driver, "vm3dum.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
261 strncpy(drvid->Driver, "atiumdag.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
266 strncpy(drvid->Driver, "nvd3dum.dll", sizeof(drvid->Driver)); in d3d_fill_driver_version()
280 strncpy(drvid->Description, cards_intel[i].d3d9name, sizeof(drvid->Description)); in d3d_fill_cardname()
286 strncpy(drvid->Description, cards_intel[0].d3d9name, sizeof(drvid->Description)); in d3d_fill_cardname()
291 strncpy(drvid->Description, cards_vmware[i].d3d9name, sizeof(drvid->Description)); in d3d_fill_cardname()
297 strncpy(drvid->Description, cards_vmware[0].d3d9name, sizeof(drvid->Description)); in d3d_fill_cardname()
302 strncpy(drvid->Description, cards_amd[i].d3d9name, sizeof(drvid->Description)); in d3d_fill_cardname()
[all …]
/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/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/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DStrNCpy.ll3 ; RUN: not grep {call.*strncpy}
13 declare i8* @strncpy(i8*, i8*, i32)
22 %rslt1 = call i8* @strncpy( i8* %arg1, i8* %arg2, i32 6 ) ; <i8*> [#uses=1]
24 %rslt2 = call i8* @strncpy( i8* %rslt1, i8* %arg3, i32 42 ) ; <i8*> [#uses=1]
26 %rslt3 = call i8* @strncpy( i8* %rslt2, i8* %arg4, i32 42 ) ; <i8*> [#uses=1]
/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/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/libmtp/util/
Dmtp-probe.c80 strncpy(pbuf + len, "type", FILENAME_MAX - len); in get_ep_type()
101 strncpy(pbuf + len, "direction", FILENAME_MAX - len); in get_ep_type()
143 strncpy(pbuf + len, "bNumEndpoints", FILENAME_MAX - len); in has_3_ep()
200 strncpy(dirbuf + len, dent->d_name, FILENAME_MAX - len); in check_interface()
265 strncpy(dirbuf + len, dent->d_name, FILENAME_MAX - len); in check_sysfs()
/external/curl/lib/
Dstrerror.c623 strncpy(buf, p, len); in get_winsock_error()
677 strncpy(buf, strerror(err), max); in Curl_strerror()
708 strncpy(buf, msg, max); in Curl_strerror()
720 strncpy(buf, buffer, max); in Curl_strerror()
728 strncpy(buf, msg, max); in Curl_strerror()
1029 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
1076 strncpy(outbuf, str, outmax); in Curl_sspi_strerror()
1086 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
/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/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/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.c145 strncpy(eeprom.board_name, name, length); in tricorder_eeprom_write()
148 strncpy(eeprom.board_version, version, length); in tricorder_eeprom_write()
151 strncpy(eeprom.board_serial, serial, length); in tricorder_eeprom_write()
156 strncpy(eeprom.interface_version, interface, length); in tricorder_eeprom_write()
/external/libpcap/
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()
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()
/external/libxcam/tests/
Dtest-image-stitching.cpp68 strncpy (intrinsic_path, "./calib_params/intrinsic_camera_front.txt", 1023); in parse_calibration_params()
69 strncpy (extrinsic_path, "./calib_params/extrinsic_camera_front.txt", 1023); in parse_calibration_params()
72 strncpy (intrinsic_path, "./calib_params/intrinsic_camera_right.txt", 1023); in parse_calibration_params()
73 strncpy (extrinsic_path, "./calib_params/extrinsic_camera_right.txt", 1023); in parse_calibration_params()
76 strncpy (intrinsic_path, "./calib_params/intrinsic_camera_rear.txt", 1023); in parse_calibration_params()
77 strncpy (extrinsic_path, "./calib_params/extrinsic_camera_rear.txt", 1023); in parse_calibration_params()
80 strncpy (intrinsic_path, "./calib_params/intrinsic_camera_left.txt", 1023); in parse_calibration_params()
81 strncpy (extrinsic_path, "./calib_params/extrinsic_camera_left.txt", 1023); in parse_calibration_params()
/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>>...32