/external/clang/test/Analysis/ |
H A D | string-fail.c | 38 // strnlen() 41 #define strnlen BUILTIN(strnlen) macro 42 size_t strnlen(const char *s, size_t maxlen); 45 if (strnlen(x, 10) < 5) 47 clang_analyzer_eval(strnlen(x, 10) < 5); // expected-warning{{FALSE}} 57 size_t a = strnlen(z.a, 10); 59 size_t b = strnlen(z.a, 10); 65 size_t c = strnlen(z.a, 10); 72 size_t a = strnlen( [all...] |
H A D | string.c | 158 // strnlen() 161 size_t strnlen(const char *s, size_t maxlen); 164 clang_analyzer_eval(strnlen("123", 10) == 3); // expected-warning{{TRUE}} 169 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}} 174 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}} 176 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{UNKNOWN}} 180 clang_analyzer_eval(strnlen("123456", 3) == 3); // expected-warning{{TRUE}} 185 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}} 190 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}} 192 clang_analyzer_eval(strnlen( [all...] |
/external/bison/lib/ |
H A D | strnlen.c | 26 strnlen (const char *string, size_t maxlen) function
|
H A D | strndup.c | 28 size_t len = strnlen (s, n);
|
H A D | string.in.h | 428 # undef strnlen macro 429 # define strnlen rpl_strnlen macro 431 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 434 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 437 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 441 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 443 _GL_CXXALIASWARN (strnlen); variable 445 # undef strnlen macro 447 _GL_WARN_ON_USE (strnlen, "strnlen i [all...] |
/external/clang/test/Sema/ |
H A D | enable_if.c | 22 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} 27 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} function 35 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'maxlen' is known to be less than or equal to the buffer size}} 43 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explicitly made unavailable}} 54 strnlen(s, i); 56 strnlen(s, 999); 58 strnlen(c, 1); 60 strnlen(c, i); 63 strnlen(c, 999); // expected-error{{call to unavailable function 'strnlen' [all...] |
/external/elfutils/0.153/lib/ |
H A D | xstrndup.c | 41 size_t len = strnlen (string, n);
|
H A D | eu-config.h | 149 ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
|
/external/libedit/src/ |
H A D | strlcat.c | 81 size_t dlen = strnlen(dst, siz);
|
/external/chromium_org/sandbox/mac/ |
H A D | os_compatibility.cc | 62 // TODO(rsesek): Libc provides strnlen() starting in 10.7. 63 size_t strnlen(const char* str, size_t maxlen) { function in namespace:sandbox::__anon10590 83 strnlen(request->servicename, BOOTSTRAP_MAX_NAME_LEN);
|
/external/chromium_org/native_client_sdk/src/libraries/xray/ |
H A D | stringpool.c | 13 * so that strnlen is available with glibc */ 51 /* Add +1 to strnlen result to account for string termination */ 52 int n = strnlen(src, XRAY_STRING_POOL_NODE_SIZE + 1) + 1;
|
/external/compiler-rt/lib/asan/ |
H A D | asan_interceptors.h | 91 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
|
H A D | asan_interceptors.cc | 79 if (REAL(strnlen) != 0) { 80 return REAL(strnlen)(s, maxlen); 568 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) { 570 uptr length = REAL(strnlen)(s, maxlen); 764 ASAN_INTERCEPT_FUNC(strnlen);
|
H A D | asan_dll_thunk.cc | 325 INTERCEPT_LIBRARY_FUNCTION(strnlen); variable
|
/external/elfutils/0.153/host-darwin-fixup/ |
H A D | AndroidFixup.h | 40 static inline size_t strnlen (const char *__string, size_t __maxlen) function
|
/external/e2fsprogs/misc/ |
H A D | e4defrag.c | 1114 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { 1293 strnlen(frag_rank[j - 1].msg_buffer, 1307 strnlen(file, PATH_MAX)); 1477 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { 1580 (int)strnlen(file, PATH_MAX), file); 1801 strncpy(dev_name, argv[i], strnlen(argv[i], PATH_MAX)); 1820 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); 1874 mount_dir_len = strnlen(lost_found_dir, PATH_MAX); 1877 PATH_MAX - strnlen(lost_found_dir, PATH_MAX)); 1886 strnlen(lost_found_di [all...] |
/external/compiler-rt/lib/asan/tests/ |
H A D | asan_str_test.cc | 84 // Normal strnlen calls. 85 Ident(strnlen(str - 1, 0)); 86 Ident(strnlen(str, size)); 87 Ident(strnlen(str + size - 1, 1)); 89 Ident(strnlen(str, 2 * size)); 91 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); 92 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); 95 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0));
|
/external/bison/darwin-lib/ |
H A D | string.h | 740 # undef strnlen 741 # define strnlen rpl_strnlen 743 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 746 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 749 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 753 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 755 _GL_CXXALIASWARN (strnlen); variable 757 # undef strnlen macro 759 _GL_WARN_ON_USE (strnlen, "strnlen i [all...] |
/external/bison/linux-lib/ |
H A D | string.h | 740 # undef strnlen 741 # define strnlen rpl_strnlen 743 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 746 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 749 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 753 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 755 _GL_CXXALIASWARN (strnlen); variable 757 # undef strnlen macro 759 _GL_WARN_ON_USE (strnlen, "strnlen i [all...] |
/external/llvm/include/llvm/Target/ |
H A D | TargetLibraryInfo.h | 589 /// size_t strnlen(const char *s, size_t maxlen); 590 strnlen, enumerator in enum:llvm::LibFunc::Func 746 case LibFunc::stpcpy: case LibFunc::strlen: case LibFunc::strnlen:
|
/external/bison/ |
H A D | Android.mk | 125 lib/strnlen.c \
|
/external/compiler-rt/lib/msan/ |
H A D | msan_interceptors.cc | 238 INTERCEPTOR(SIZE_T, strnlen, const char *s, SIZE_T n) { 240 SIZE_T res = REAL(strnlen)(s, n); 261 SIZE_T copy_size = REAL(strnlen)(src, n); 299 SIZE_T copy_size = REAL(strnlen)(src, n); 309 SIZE_T copy_size = REAL(strnlen)(src, n); 341 SIZE_T copy_size = REAL(strnlen)(src, n); 761 SIZE_T real_len = REAL(strnlen)(name, len); 1513 INTERCEPT_FUNCTION(strnlen);
|
/external/iptables/extensions/ |
H A D | libxt_string.c | 23 #define _GNU_SOURCE 1 /* strnlen for older glibcs */ 85 info->patlen = strnlen(s, XT_STRING_MAX_PATTERN_SIZE);
|
/external/valgrind/main/exp-sgcheck/ |
H A D | h_intercepts.c | 111 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
|
/external/e2fsprogs/e2fsck/ |
H A D | e2fsck.h | 382 #define strnlen(str, x) e2fsck_strnlen((str),(x)) macro
|