Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 37) sorted by relevance

12

/bionic/tests/
Dwctype_test.cpp27 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
43 EXPECT_TRUE(fn_l(*p, l.l)) << *p; in TestIsWideFn()
51 EXPECT_FALSE(fn_l(*p, l.l)) << *p; in TestIsWideFn()
119 UtfLocale l; in TEST() local
121 EXPECT_EQ(wint_t('!'), towlower_l(L'!', l.l)); in TEST()
122 EXPECT_EQ(wint_t('a'), towlower_l(L'a', l.l)); in TEST()
123 EXPECT_EQ(wint_t('a'), towlower_l(L'A', l.l)); in TEST()
[all …]
Dstrings_test.cpp90 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 …]
Dlocale_test.cpp94 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local
95 ASSERT_TRUE(l != nullptr); in TEST()
96 freelocale(l); in TEST()
Dpthread_test.cpp868 pthread_rwlock_t l; in TEST() local
869 ASSERT_EQ(0, pthread_rwlock_init(&l, nullptr)); in TEST()
872 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
873 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
876 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
877 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
878 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
879 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
882 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
883 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
[all …]
Dstdarg_test.cpp34 va_list l __attribute__((__unused__)); in TEST() local
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c69 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/benchmarks/
Dstdlib_benchmark.cpp177 size_t i, j, k, l; in BM_stdlib_mbstowcs() local
178 l = 0; in BM_stdlib_mbstowcs()
181 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbstowcs()
185 buf[l++] = i, buf[l++] = j, buf[l++] = k; in BM_stdlib_mbstowcs()
189 buf[l++] = i, buf[l++] = j, buf[l++] = 0x80, buf[l++] = k; in BM_stdlib_mbstowcs()
190 buf[l++] = 0; in BM_stdlib_mbstowcs()
217 size_t i, j, k, l; in BM_stdlib_mbrtowc() local
218 l = 0; in BM_stdlib_mbrtowc()
221 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbrtowc()
225 buf[l++] = i, buf[l++] = j, buf[l++] = k; in BM_stdlib_mbrtowc()
[all …]
/bionic/libc/dns/nameser/
Dns_name.c104 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/arch-arm/generic/bionic/
Dstrlen.c47 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/system_properties/
Dcontexts_split.cpp242 contexts_, [context](ContextListNode* l) { return !strcmp(l->context(), context); }); in InitializePropertiesFromFile() argument
309 ListForEach(contexts_, [&fsetxattr_failed, &open_failed](ContextListNode* l) { in Initialize() argument
310 if (!l->Open(true, fsetxattr_failed)) { in Initialize()
328 auto entry = ListFind(prefixes_, [name](PrefixNode* l) { in GetPropAreaForName() argument
329 return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); in GetPropAreaForName()
346 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) { in ForEach() argument
347 if (l->CheckAccessAndOpen()) { in ForEach()
348 l->pa()->foreach (propfn, cookie); in ForEach()
354 ListForEach(contexts_, [](ContextListNode* l) { l->ResetAccess(); }); in ResetAccess() argument
/bionic/libc/bionic/
Dlocale.cpp73 locale_t l = uselocale(nullptr); 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()
Dmemmem.cpp45 size_t k = 1, l = 2; in memmem() local
49 l = 1; in memmem()
56 j += l; in memmem()
Drealpath.cpp66 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/private/
Dthread_private.h24 #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/kernel/uapi/linux/
Dromfs_fs.h28 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument
29 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
Datm.h43 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t)) argument
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c39 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()
Dopen_wmemstream.c41 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/
Dinet_ntop.c75 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/
Dtgmath_h.c54 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/
Dsha1.c56 # 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/
Ds_logl.c432 #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/
De_hypotl.c24 #define GET_LDBL_MAN(h, l, v) do { \ argument
29 l = uv.bits.manl; \
/bionic/libc/arch-arm64/generic/bionic/
Dmemcpy_base.S86 #define L(l) .L ## l argument
/bionic/libc/include/arpa/
Dnameser.h490 #define NS_GET32(l, cp) do { \ argument
492 (l) = ((uint32_t)t_cp[0] << 24) \
508 #define NS_PUT32(l, cp) do { \ argument
509 uint32_t t_l = (uint32_t)(l); \

12