/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_addr.c | 67 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 …]
|
D | inet_network.c | 44 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()
|
D | inet_pton.c | 131 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/ |
D | arc4random.c | 165 _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/ |
D | ip6.h | 281 #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/ |
D | semaphore.cpp | 72 #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()
|
D | pthread_mutex.cpp | 137 #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/ |
D | posix_types.h | 27 long val[2]; member
|
/bionic/libc/kernel/uapi/linux/ |
D | atm_he.h | 30 unsigned addr, val; member
|
D | virtio_balloon.h | 44 __u64 val; member
|
D | selinux_netlink.h | 45 __s32 val; member
|
D | wil6210_uapi.h | 41 uint32_t val; member
|
D | connector.h | 51 __u32 val; member
|
D | sem.h | 56 int val; member
|
D | ppdev.h | 29 unsigned char val; member
|
/bionic/libc/kernel/uapi/linux/tc_ematch/ |
D | tc_em_cmp.h | 25 __u32 val; member
|
/bionic/libc/include/ |
D | getopt.h | 57 int val; member
|
/bionic/tests/ |
D | malloc_test.cpp | 347 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/ |
D | tc_pedit.h | 36 __u32 val; member
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | getopt_long.c | 257 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/ |
D | posix_types.h | 85 int val[2]; member
|
/bionic/libc/kernel/uapi/linux/dvb/ |
D | osd.h | 95 long val; member
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | xt_osf.h | 47 __u32 val; member
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | memset.S | 53 #define val w1 macro 77 ands A_lw, val, #255
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vfwprintf.c | 404 #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()
|