/bionic/tests/ |
D | wctype_test.cpp | 25 UtfLocale() : l(newlocale(LC_ALL, "C.UTF-8", 0)) {} in UtfLocale() 26 ~UtfLocale() { freelocale(l); } in ~UtfLocale() 27 locale_t l; member in UtfLocale 40 UtfLocale l; in TestIsWideFn() local 47 EXPECT_TRUE(fn_l(*p, l.l)) << *p; in TestIsWideFn() 55 EXPECT_FALSE(fn_l(*p, l.l)) << *p; 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 | 48 locale_t l = newlocale(LC_ALL, "C", 0); in TEST() local 49 ASSERT_EQ(0, strcasecmp_l("hello", "HELLO", l)); in TEST() 50 ASSERT_LT(strcasecmp_l("hello1", "hello2", l), 0); in TEST() 51 ASSERT_GT(strcasecmp_l("hello2", "hello1", l), 0); in TEST() 52 freelocale(l); in TEST() 63 locale_t l = newlocale(LC_ALL, "C", 0); in TEST() local 64 ASSERT_EQ(0, strncasecmp_l("hello", "HELLO", 3, l)); in TEST() 65 ASSERT_EQ(0, strncasecmp_l("abcXX", "ABCYY", 3, l)); in TEST() 66 ASSERT_LT(strncasecmp_l("hello1", "hello2", 6, l), 0); in TEST() 67 ASSERT_GT(strncasecmp_l("hello2", "hello1", 6, l), 0); in TEST() [all …]
|
D | qsort_test.cpp | 26 static int cmp_long(const void *l, const void *r) in cmp_long() argument 29 return (*(long *)l - *(long *)r); in cmp_long() 32 static int cmp_int(const void *l, const void *r) in cmp_int() argument 35 return (*(int *)l - *(int *)r); in cmp_int()
|
D | locale_test.cpp | 94 locale_t l = newlocale(LC_ALL, "C", 0); in TEST() local 95 ASSERT_TRUE(l != NULL); in TEST() 96 freelocale(l); in TEST()
|
D | pthread_test.cpp | 754 pthread_rwlock_t l; in TEST() local 755 ASSERT_EQ(0, pthread_rwlock_init(&l, NULL)); in TEST() 758 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 759 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 762 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 763 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 764 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 765 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 768 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST() 769 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() [all …]
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 47 size_t l = 0; in strlen() local 55 l++; in strlen() 122 : [l]"=&r"(l), [v]"=&r"(v), [t]"=&r"(t), [s]"=&r"(u.b) in strlen() 123 : "%[l]"(l), "%[s]"(u.b), [mask]"r"(0x80808080UL) in strlen() 128 return l; in strlen()
|
/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/private/ |
D | thread_private.h | 37 #define _MUTEX_LOCK(l) pthread_mutex_lock((pthread_mutex_t*) l) argument 38 #define _MUTEX_UNLOCK(l) pthread_mutex_unlock((pthread_mutex_t*) l) argument
|
/bionic/libc/kernel/uapi/linux/ |
D | romfs_fs.h | 28 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument 29 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
|
D | atm.h | 43 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t)) argument
|
/bionic/libc/bionic/ |
D | memmem.cpp | 45 size_t k = 1, l = 2; in memmem() local 49 l = 1; in memmem() 56 j += l; in memmem()
|
D | locale.cpp | 73 locale_t l = uselocale(NULL); in __ctype_get_mb_cur_max() local 74 if (l == LC_GLOBAL_LOCALE) { in __ctype_get_mb_cur_max() 77 return l->mb_cur_max; in __ctype_get_mb_cur_max() 135 locale_t duplocale(locale_t l) { in duplocale() argument 136 return new __locale_t(l); in duplocale() 139 void freelocale(locale_t l) { in freelocale() argument 140 delete l; in freelocale()
|
D | system_properties.cpp | 887 auto entry = list_find(prefixes, [name](prefix_node* l) { in get_prop_area_for_name() argument 888 return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); in get_prop_area_for_name() 1024 list_find(contexts, [context](context_node* l) { return !strcmp(l->context(), context); }); in initialize_properties_from_file() argument 1090 list_foreach(contexts, [](context_node* l) { l->reset_access(); }); in __system_properties_init() argument 1129 list_foreach(contexts, [&fsetxattr_failed, &open_failed](context_node* l) { in __system_property_area_init() argument 1130 if (!l->open(true, &fsetxattr_failed)) { in __system_property_area_init() 1465 list_foreach(contexts, [propfn, cookie](context_node* l) { in __system_property_foreach() argument 1466 if (l->check_access_and_open()) { in __system_property_foreach() 1467 l->pa()->foreach(propfn, cookie); in __system_property_foreach()
|
/bionic/libc/arch-mips64/bionic/ |
D | setjmp.S | 380 l.d $f24, SC_FPREGS+0*REGSZ_FP(a0) 381 l.d $f25, SC_FPREGS+1*REGSZ_FP(a0) 382 l.d $f26, SC_FPREGS+2*REGSZ_FP(a0) 383 l.d $f27, SC_FPREGS+3*REGSZ_FP(a0) 384 l.d $f28, SC_FPREGS+4*REGSZ_FP(a0) 385 l.d $f29, SC_FPREGS+5*REGSZ_FP(a0) 386 l.d $f30, SC_FPREGS+6*REGSZ_FP(a0) 387 l.d $f31, SC_FPREGS+7*REGSZ_FP(a0) 391 l.d $f20, SC_FPREGS+0*REGSZ_FP(a0) 392 l.d $f22, SC_FPREGS+1*REGSZ_FP(a0) [all …]
|
/bionic/libc/arch-mips/bionic/ |
D | setjmp.S | 380 l.d $f24, SC_FPREGS+0*REGSZ_FP(a0) 381 l.d $f25, SC_FPREGS+1*REGSZ_FP(a0) 382 l.d $f26, SC_FPREGS+2*REGSZ_FP(a0) 383 l.d $f27, SC_FPREGS+3*REGSZ_FP(a0) 384 l.d $f28, SC_FPREGS+4*REGSZ_FP(a0) 385 l.d $f29, SC_FPREGS+5*REGSZ_FP(a0) 386 l.d $f30, SC_FPREGS+6*REGSZ_FP(a0) 387 l.d $f31, SC_FPREGS+7*REGSZ_FP(a0) 391 l.d $f20, SC_FPREGS+0*REGSZ_FP(a0) 392 l.d $f22, SC_FPREGS+1*REGSZ_FP(a0) [all …]
|
/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() 61 for (i = 0; i < l; i++) in memstream_write() 63 st->pos += l; in memstream_write()
|
D | fmemopen.c | 36 fmemopen_read(void *v, char *b, int l) in fmemopen_read() argument 41 for (i = 0; i < l && i + st->pos < st->len; i++) in fmemopen_read() 49 fmemopen_write(void *v, const char *b, int l) in fmemopen_write() argument 54 for (i = 0; i < l && i + st->pos < st->size; i++) in fmemopen_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() 64 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/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_logl.c | 430 #define RETURN2(rp, h, l) do { \ argument 432 (rp)->lo = (l); \ 444 #define RETURN2(rp, h, l) RETURNI((h) + (l)) argument
|
/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/src/ |
D | e_hypotl.c | 24 #define GET_LDBL_MAN(h, l, v) do { \ argument 29 l = uv.bits.manl; \
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | strlen.S | 54 #define L(l) .L ## l argument
|
D | memcpy_base.S | 86 #define L(l) .L ## l argument
|
/bionic/libc/include/arpa/ |
D | nameser.h | 489 #define NS_GET32(l, cp) do { \ argument 491 (l) = ((uint32_t)t_cp[0] << 24) \ 507 #define NS_PUT32(l, cp) do { \ argument 508 uint32_t t_l = (uint32_t)(l); \
|