/bionic/tests/ |
D | wctype_test.cpp | 27 UtfLocale() : l(newlocale(LC_ALL, "C.UTF-8", nullptr)) {} in UtfLocale() 28 ~UtfLocale() { freelocale(l); } in ~UtfLocale() 29 locale_t l; member in UtfLocale 36 UtfLocale l; in TestIsWideFn() local 45 EXPECT_TRUE(fn_l(val_ch, l.l)) << val_int; in TestIsWideFn() 55 EXPECT_FALSE(fn_l(val_ch, l.l)) << val_int; in TestIsWideFn() 123 UtfLocale l; in TEST() local 125 EXPECT_EQ(wint_t('!'), towlower_l(L'!', l.l)); in TEST() 126 EXPECT_EQ(wint_t('a'), towlower_l(L'a', l.l)); in TEST() 127 EXPECT_EQ(wint_t('a'), towlower_l(L'A', l.l)); in TEST() [all …]
|
D | strings_test.cpp | 90 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 91 ASSERT_EQ(0, strcasecmp_l("hello", "HELLO", l)); in TEST() 92 ASSERT_LT(strcasecmp_l("hello1", "hello2", l), 0); in TEST() 93 ASSERT_GT(strcasecmp_l("hello2", "hello1", l), 0); in TEST() 94 freelocale(l); in TEST() 105 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 106 ASSERT_EQ(0, strncasecmp_l("hello", "HELLO", 3, l)); in TEST() 107 ASSERT_EQ(0, strncasecmp_l("abcXX", "ABCYY", 3, l)); in TEST() 108 ASSERT_LT(strncasecmp_l("hello1", "hello2", 6, l), 0); in TEST() 109 ASSERT_GT(strncasecmp_l("hello2", "hello1", 6, l), 0); in TEST() [all …]
|
D | locale_test.cpp | 99 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 100 ASSERT_TRUE(l != nullptr); in TEST() 101 freelocale(l); in TEST()
|
D | stdarg_test.cpp | 34 va_list l __attribute__((__unused__)); in TEST() local
|
D | unistd_test.cpp | 772 long l; in TEST() local 776 l = pathconf(tf.path, _PC_ALLOC_SIZE_MIN); in TEST() 777 ASSERT_TRUE(l > 0 && powerof2(l)); in TEST() 778 l = pathconf(tf.path, _PC_REC_MIN_XFER_SIZE); in TEST() 779 ASSERT_TRUE(l > 0 && powerof2(l)); in TEST() 780 l = pathconf(tf.path, _PC_REC_XFER_ALIGN); in TEST() 781 ASSERT_TRUE(l > 0 && powerof2(l)); in TEST() 783 l = fpathconf(tf.fd, _PC_ALLOC_SIZE_MIN); in TEST() 784 ASSERT_TRUE(l > 0 && powerof2(l)); in TEST() 785 l = fpathconf(tf.fd, _PC_REC_MIN_XFER_SIZE); in TEST() [all …]
|
D | pthread_test.cpp | 897 pthread_rwlock_t l; in TEST() local 898 ASSERT_EQ(0, pthread_rwlock_init(&l, nullptr)); in TEST() 901 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 902 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 905 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 906 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 907 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 908 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 911 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST() 912 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memmem.c | 70 const unsigned char *n, size_t l) in twoway_memmem() argument 77 for (i=0; i<l; i++) in twoway_memmem() 82 while (jp+k<l) { in twoway_memmem() 102 while (jp+k<l) { in twoway_memmem() 123 p = MAX(ms, l-ms-1) + 1; in twoway_memmem() 124 } else mem0 = l-p; in twoway_memmem() 130 if (z-h < l) return 0; in twoway_memmem() 133 if (BITOP(byteset, h[l-1], &)) { in twoway_memmem() 134 k = l-shift[h[l-1]]; in twoway_memmem() 142 h += l; in twoway_memmem() [all …]
|
D | strstr.c | 69 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local 74 for (l=0; n[l] && h[l]; l++) in twoway_strstr() 75 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr() 76 if (n[l]) return 0; /* hit the end of h */ in twoway_strstr() 80 while (jp+k<l) { in twoway_strstr() 100 while (jp+k<l) { in twoway_strstr() 121 p = MAX(ms, l-ms-1) + 1; in twoway_strstr() 122 } else mem0 = l-p; in twoway_strstr() 131 if (z-h < l) { in twoway_strstr() 133 size_t grow = l | 63; in twoway_strstr() [all …]
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 47 size_t l = 0; in strlen_generic() local 55 l++; in strlen_generic() 122 : [l]"=&r"(l), [v]"=&r"(v), [t]"=&r"(t), [s]"=&r"(u.b) in strlen_generic() 123 : "%[l]"(l), "%[s]"(u.b), [mask]"r"(0x80808080UL) in strlen_generic() 128 return l; in strlen_generic()
|
/bionic/libc/dns/nameser/ |
D | ns_name.c | 104 int l; in ns_name_ntop() local 123 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop() 127 if (dn + l >= eom) { in ns_name_ntop() 147 for (; l > 0; l--) { in ns_name_ntop() 363 int l; in ns_name_ntol() local 380 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntol() 384 if (dn + l >= eom) { in ns_name_ntol() 388 for (; l > 0; l--) { in ns_name_ntol() 428 int n, len, checked, l; in ns_name_unpack2() local 446 if ((l = labellen(srcp - 1)) < 0) { in ns_name_unpack2() [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | bits.h | 9 #define __GENMASK(h,l) (((~_UL(0)) - (_UL(1) << (l)) + 1) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))… argument 10 #define __GENMASK_ULL(h,l) (((~_ULL(0)) - (_ULL(1) << (l)) + 1) & (~_ULL(0) >> (__BITS_PER_LONG_LON… argument
|
D | romfs_fs.h | 16 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument 17 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
|
D | atm.h | 31 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t)) argument
|
D | map_to_14segment.h | 33 …l,m,n) __cpu_to_be16(a << BIT_SEG14_A | b << BIT_SEG14_B | c << BIT_SEG14_C | d << BIT_SEG14_D | e… argument
|
/bionic/libc/system_properties/ |
D | contexts_split.cpp | 236 contexts_, [context](ContextListNode* l) { return !strcmp(l->context(), context); }); in InitializePropertiesFromFile() argument 297 ListForEach(contexts_, [&fsetxattr_failed, &open_failed](ContextListNode* l) { in Initialize() argument 298 if (!l->Open(true, fsetxattr_failed)) { in Initialize() 316 auto entry = ListFind(prefixes_, [name](PrefixNode* l) { in GetPrefixNodeForName() argument 317 return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); in GetPrefixNodeForName() 340 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) { in ForEach() argument 341 if (l->CheckAccessAndOpen()) { in ForEach() 342 l->pa()->foreach (propfn, cookie); in ForEach() 348 ListForEach(contexts_, [](ContextListNode* l) { l->ResetAccess(); }); in ResetAccess() argument
|
/bionic/libc/private/ |
D | thread_private.h | 24 #define _MUTEX_LOCK(l) pthread_mutex_lock((pthread_mutex_t*) l) argument 25 #define _MUTEX_UNLOCK(l) pthread_mutex_unlock((pthread_mutex_t*) l) argument
|
/bionic/libc/bionic/ |
D | locale.cpp | 73 static inline size_t get_locale_mb_cur_max(locale_t l) { in get_locale_mb_cur_max() argument 74 if (l == LC_GLOBAL_LOCALE) { in get_locale_mb_cur_max() 77 return l->mb_cur_max; in get_locale_mb_cur_max() 139 locale_t duplocale(locale_t l) { in duplocale() argument 140 return __alloc_locale(get_locale_mb_cur_max(l)); in duplocale() 143 void freelocale(locale_t l) { in freelocale() argument 144 free(l); in freelocale()
|
D | realpath.cpp | 66 ssize_t l = readlink(fd_path.c_str(), dst, sizeof(dst) - 1); in realpath() local 67 if (l == -1) return nullptr; in realpath() 68 dst[l] = '\0'; in realpath()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_memstream.c | 39 memstream_write(void *v, const char *b, int l) in memstream_write() argument 45 end = (st->pos + l); in memstream_write() 60 for (i = 0; i < l; i++) in memstream_write() 62 st->pos += l; in memstream_write()
|
D | open_wmemstream.c | 41 wmemstream_write(void *v, const char *b, int l) in wmemstream_write() argument 47 end = (st->pos + l); in wmemstream_write() 63 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_ntop.c | 75 int l; in inet_ntop4() local 77 l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u", in inet_ntop4() 79 if (l <= 0 || l >= size) { in inet_ntop4()
|
/bionic/tests/headers/posix/ |
D | tgmath_h.c | 54 long l = 0; in tgmath_h() local 108 scalbln(f1, l); scalbln(d1, l); scalbln(ld1, l); in tgmath_h()
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 56 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ 57 |(rol(block->l[i],8)&0x00FF00FF)) 59 # define blk0(i) block->l[i] 61 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ 62 ^block->l[(i+2)&15]^block->l[i&15],1)) 85 uint32_t l[16]; member
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_logl.c | 432 #define RETURN2(rp, h, l) do { \ argument 434 (rp)->lo = (l); \ 446 #define RETURN2(rp, h, l) RETURNI((h) + (l)) argument
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_hypotl.c | 24 #define GET_LDBL_MAN(h, l, v) do { \ argument 29 l = uv.bits.manl; \
|