Home
last modified time | relevance | path

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

12345678910>>...28

/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/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.c202 strncpy(buffer+n, stuff, k); in joinpath()
249 strncpy(prefix, home, MAXPATHLEN); in search_for_prefix()
285 strncpy(prefix, PREFIX, MAXPATHLEN); in search_for_prefix()
309 strncpy(exec_prefix, delim+1, MAXPATHLEN); in search_for_exec_prefix()
311 strncpy(exec_prefix, home, MAXPATHLEN); in search_for_exec_prefix()
351 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); in search_for_exec_prefix()
398 strncpy(progpath, prog, MAXPATHLEN); in calculate_path()
421 strncpy(progpath, path, len); in calculate_path()
425 strncpy(progpath, path, MAXPATHLEN); in calculate_path()
442 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
[all …]
/external/valgrind/memcheck/tests/
Doverlap.c44 strncpy(x+20, x, 20); // ok in main()
45 strncpy(x+20, x, 21); // overlap in main()
46 strncpy(x, x+20, 20); // ok in main()
47 strncpy(x, x+20, 21); // overlap in main()
74 strncpy(b, a, 25); in main()
78 strncpy(b, a, 26); in main()
82 strncpy(b, a, 27); in main()
121 strncpy( dest, src, 20 ); in main()
Doverlap.stderr.exp9 Source and destination overlap in strncpy(0x........, 0x........, 21)
10 at 0x........: strncpy (vg_replace_strmem.c:...)
13 Source and destination overlap in strncpy(0x........, 0x........, 21)
14 at 0x........: strncpy (vg_replace_strmem.c:...)
/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.c74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
99 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl()
101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
125 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl()
127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
152 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/iproute2/lib/
Dinet_proto.c38 strncpy(ncache, pe->p_name, 16); in inet_proto_n2a()
39 strncpy(buf, pe->p_name, len); in inet_proto_n2a()
65 strncpy(ncache, pe->p_name, 16); in inet_proto_a2n()
/external/ImageMagick/coders/
Dfits.c669 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
674 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
678 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
682 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
686 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
692 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
696 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
700 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
704 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
707 (void) strncpy(fits_info+offset,header,strlen(header)); in WriteFITSImage()
[all …]
/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/curl/lib/
Dstrerror.c612 strncpy (buf, p, len); in get_winsock_error()
656 strncpy(buf, strerror(err), max); in Curl_strerror()
687 strncpy(buf, msg, max); in Curl_strerror()
699 strncpy(buf, buffer, max); in Curl_strerror()
707 strncpy(buf, msg, max); in Curl_strerror()
1002 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
1047 strncpy(outbuf, str, outmax); in Curl_sspi_strerror()
1060 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
/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/netperf/src/
Dnetsh.c379 strncpy(temp,family_string,10); in parse_address_family()
419 strncpy(temp,socket_string,10); in parse_socket_type()
496 strncpy(temp,protocol_string,10); in parse_protocol()
704 strncpy(local_fill_file,arg1,sizeof(local_fill_file)); in scan_cmd_line()
716 strncpy(remote_fill_file,arg2,sizeof(remote_fill_file)); in scan_cmd_line()
843 strncpy(test_name,optarg,sizeof(test_name)-1); in scan_cmd_line()
917 strncpy(passphrase, in scan_cmd_line()
944 strncpy(test_port,arg1,PORTBUFSIZE); in scan_cmd_line()
946 strncpy(local_test_port,arg2,PORTBUFSIZE); in scan_cmd_line()
954 strncpy(host_name,arg1,sizeof(host_name)); in scan_cmd_line()
[all …]
/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/syslinux/com32/rosh/
Drosh.h110 strncpy(dest, slv->version_string, n); in rosh_get_env_ver()
131 strncpy(dest, env.sysname, n); in rosh_get_env_ver()
133 strncpy(dest + len, " ", (n - len)); in rosh_get_env_ver()
135 strncpy(dest + len, env.release, (n - len)); in rosh_get_env_ver()
/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/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/libpcap/
Dfad-gifc.c253 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
270 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
300 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
339 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()

12345678910>>...28