Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 40) sorted by relevance

12

/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_addr.c67 struct in_addr val; in inet_addr() local
69 if (inet_aton(cp, &val)) in inet_addr()
70 return (val.s_addr); in inet_addr()
84 in_addr_t val; in inet_aton() local
99 val = 0; base = 10; in inet_aton()
110 val = (val * base) + (c - '0'); in inet_aton()
115 val = (val << 4) | in inet_aton()
130 *pp++ = val; in inet_aton()
155 if ((val > 0xffffff) || (parts[0] > 0xff)) in inet_aton()
157 val |= parts[0] << 24; in inet_aton()
[all …]
Dinet_network.c44 in_addr_t val, base, n; in inet_network() local
50 val = 0; base = 10; in inet_network()
57 val = (val * base) + (c - '0'); in inet_network()
62 val = (val << 4) + (c + 10 - (islower(c) ? 'a' : 'A')); in inet_network()
71 *pp++ = val, cp++; in inet_network()
76 *pp++ = val; in inet_network()
78 for (val = 0, i = 0; i < 4; i++) { in inet_network()
79 val <<= 8; in inet_network()
81 val |= parts[i] & 0xff; in inet_network()
83 return (val); in inet_network()
Dinet_pton.c131 u_int val; in inet_pton6() local
142 val = 0; in inet_pton6()
151 val <<= 4; in inet_pton6()
152 val |= (pch - xdigits); in inet_pton6()
153 if (val > 0xffff) in inet_pton6()
171 *tp++ = (u_char) (val >> 8) & 0xff; in inet_pton6()
172 *tp++ = (u_char) val & 0xff; in inet_pton6()
175 val = 0; in inet_pton6()
190 *tp++ = (u_char) (val >> 8) & 0xff; in inet_pton6()
191 *tp++ = (u_char) val & 0xff; in inet_pton6()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c165 _rs_random_u32(uint32_t *val) in _rs_random_u32() argument
169 _rs_stir_if_needed(sizeof(*val)); in _rs_random_u32()
170 if (rs->rs_have < sizeof(*val)) in _rs_random_u32()
173 memcpy(val, keystream, sizeof(*val)); in _rs_random_u32()
174 memset(keystream, 0, sizeof(*val)); in _rs_random_u32()
175 rs->rs_have -= sizeof(*val); in _rs_random_u32()
181 uint32_t val; in arc4random() local
184 _rs_random_u32(&val); in arc4random()
186 return val; in arc4random()
/bionic/libc/include/netinet/
Dip6.h281 #define IP6_EXTHDR_GET(val, typ, m, off, len) \ argument
286 (val) = (typ)(mtod((m), char *) + (off)); \
292 (val) = (typ)(mtod(_t, char *) + _tmp); \
294 (val) = (typ)NULL; \
300 #define IP6_EXTHDR_GET0(val, typ, m, off, len) \ argument
304 (val) = (typ)mtod((m), void *); \
310 (val) = (typ)mtod(_t, void *); \
312 (val) = (typ)NULL; \
/bionic/libc/bionic/
Dsemaphore.cpp72 #define SEMCOUNT_FROM_VALUE(val) (((val) << SEMCOUNT_VALUE_SHIFT) & SEMCOUNT_VALUE_MASK) argument
303 int val = SEMCOUNT_TO_VALUE(atomic_load(sem_count_ptr)); in sem_getvalue() local
304 if (val < 0) { in sem_getvalue()
305 val = 0; in sem_getvalue()
308 *sval = val; in sem_getvalue()
Dpthread_mutex.cpp137 #define FIELD_TO_BITS(val,shift,bits) (((val) & ((1 << (bits))-1)) << (shift)) argument
140 #define FIELD_FROM_BITS(val,shift,bits) (((val) >> (shift)) & ((1 << (bits))-1)) argument
/bionic/libc/kernel/uapi/asm-mips/asm/
Dposix_types.h27 long val[2]; member
/bionic/libc/kernel/uapi/linux/
Datm_he.h30 unsigned addr, val; member
Dvirtio_balloon.h44 __u64 val; member
Dselinux_netlink.h45 __s32 val; member
Dwil6210_uapi.h41 uint32_t val; member
Dconnector.h51 __u32 val; member
Dsem.h56 int val; member
Dppdev.h29 unsigned char val; member
/bionic/libc/kernel/uapi/linux/tc_ematch/
Dtc_em_cmp.h25 __u32 val; member
/bionic/libc/include/
Dgetopt.h57 int val; member
/bionic/tests/
Dmalloc_test.cpp347 int val; in TEST() local
350 ASSERT_EQ(tinyxml2::XML_SUCCESS, arena->QueryIntAttribute("nr", &val)); in TEST()
352 arena->FirstChildElement("allocated-large")->QueryIntText(&val)); in TEST()
354 arena->FirstChildElement("allocated-huge")->QueryIntText(&val)); in TEST()
356 arena->FirstChildElement("allocated-bins")->QueryIntText(&val)); in TEST()
358 arena->FirstChildElement("bins-total")->QueryIntText(&val)); in TEST()
363 ASSERT_EQ(tinyxml2::XML_SUCCESS, bin->QueryIntAttribute("nr", &val)); in TEST()
365 bin->FirstChildElement("allocated")->QueryIntText(&val)); in TEST()
367 bin->FirstChildElement("nmalloc")->QueryIntText(&val)); in TEST()
369 bin->FirstChildElement("ndalloc")->QueryIntText(&val)); in TEST()
/bionic/libc/kernel/uapi/linux/tc_act/
Dtc_pedit.h36 __u32 val; member
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dgetopt_long.c257 long_options[i].val != long_options[match].val) in parse_long_options()
286 optopt = long_options[match].val; in parse_long_options()
323 optopt = long_options[match].val; in parse_long_options()
346 *long_options[match].flag = long_options[match].val; in parse_long_options()
349 return (long_options[match].val); in parse_long_options()
/bionic/libc/kernel/uapi/asm-generic/
Dposix_types.h85 int val[2]; member
/bionic/libc/kernel/uapi/linux/dvb/
Dosd.h95 long val; member
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_osf.h47 __u32 val; member
/bionic/libc/arch-arm64/generic/bionic/
Dmemset.S53 #define val w1 macro
77 ands A_lw, val, #255
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvfwprintf.c404 #define APPEND_DIGIT(val, dig) do { \ in __vfwprintf() argument
405 if ((val) > INT_MAX / 10) \ in __vfwprintf()
407 (val) *= 10; \ in __vfwprintf()
408 if ((val) > INT_MAX - to_digit((dig))) \ in __vfwprintf()
410 (val) += to_digit((dig)); \ in __vfwprintf()
417 #define GETASTER(val) \ in __vfwprintf() argument
431 val = GETARG(int); \ in __vfwprintf()
435 val = GETARG(int); \ in __vfwprintf()

12