/bionic/libc/private/ |
D | bionic_macros.h | 36 #define BIONIC_ALIGN(value, alignment) \ argument 37 (((value) + (alignment) - 1) & ~((alignment) - 1)) 39 #define BIONIC_ROUND_UP_POWER_OF_2(value) \ argument 40 (sizeof(value) == 8) \ 41 ? (1UL << (64 - __builtin_clzl(static_cast<unsigned long>(value)))) \ 42 : (1UL << (32 - __builtin_clz(static_cast<unsigned int>(value))))
|
D | kernel_sigset_t.h | 29 kernel_sigset_t(const sigset_t* value) { in kernel_sigset_t() argument 31 set(value); in kernel_sigset_t() 38 void set(const sigset_t* value) { in set() argument 39 bionic = *value; in set()
|
D | bionic_futex.h | 42 static inline __always_inline int __futex(volatile void* ftx, int op, int value, const struct times… in __futex() argument 45 int result = syscall(__NR_futex, ftx, op, value, timeout); in __futex() 61 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) { in __futex_wait() argument 62 return __futex(ftx, FUTEX_WAIT, value, timeout); in __futex_wait() 65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, const struct timespec… in __futex_wait_ex() argument 66 return __futex(ftx, shared ? FUTEX_WAIT : FUTEX_WAIT_PRIVATE, value, timeout); in __futex_wait_ex()
|
/bionic/libc/bionic/ |
D | eventfd_read.cpp | 32 int eventfd_read(int fd, eventfd_t* value) { in eventfd_read() argument 33 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1; in eventfd_read()
|
D | eventfd_write.cpp | 32 int eventfd_write(int fd, eventfd_t value) { in eventfd_write() argument 33 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1; in eventfd_write()
|
D | pthread_mutex.cpp | 268 mutex->value = MUTEX_TYPE_BITS_NORMAL; in pthread_mutex_init() 272 int value = 0; in pthread_mutex_init() local 274 value |= MUTEX_SHARED_MASK; in pthread_mutex_init() 279 value |= MUTEX_TYPE_BITS_NORMAL; in pthread_mutex_init() 282 value |= MUTEX_TYPE_BITS_RECURSIVE; in pthread_mutex_init() 285 value |= MUTEX_TYPE_BITS_ERRORCHECK; in pthread_mutex_init() 291 mutex->value = value; in pthread_mutex_init() 318 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) != 0) { in _normal_lock() 336 while (__bionic_swap(locked_contended, &mutex->value) != unlocked) { in _normal_lock() 337 __futex_wait_ex(&mutex->value, shared, locked_contended, NULL); in _normal_lock() [all …]
|
D | pthread_cond.cpp | 111 cond->value = (*attr & COND_FLAGS_MASK); in pthread_cond_init() 113 cond->value = 0; in pthread_cond_init() 120 cond->value = 0xdeadc04d; in pthread_cond_destroy() 128 int flags = (cond->value & COND_FLAGS_MASK); in __pthread_cond_pulse() 130 int old_value = cond->value; in __pthread_cond_pulse() 132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) { in __pthread_cond_pulse() 147 __futex_wake_ex(&cond->value, COND_IS_SHARED(cond->value), counter); in __pthread_cond_pulse() 153 int old_value = cond->value; in __pthread_cond_timedwait_relative() 156 int status = __futex_wait_ex(&cond->value, COND_IS_SHARED(cond->value), old_value, reltime); in __pthread_cond_timedwait_relative() 191 return __pthread_cond_timedwait(cond, mutex, NULL, COND_GET_CLOCK(cond->value)); in pthread_cond_wait() [all …]
|
D | system_properties.cpp | 124 char value[PROP_VALUE_MAX]; member 127 prop_info(const char *name, const uint8_t namelen, const char *value, in prop_info() 132 memcpy(this->value, value, valuelen); in prop_info() 133 this->value[valuelen] = '\0'; in prop_info() 325 const char *value, uint8_t valuelen, uint32_t *const off) in new_prop_info() argument 330 prop_info* info = new(offset) prop_info(name, namelen, value, valuelen); in new_prop_info() 418 uint8_t namelen, const char *value, uint8_t valuelen, in find_property() argument 465 prop_info* new_info = new_prop_info(name, namelen, value, valuelen, &new_info_offset); in find_property() 601 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read() argument 604 return __system_property_read_compat(pi, name, value); in __system_property_read() [all …]
|
D | libc_logging.cpp | 159 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument 164 while (value) { in format_unsigned() 165 unsigned d = value % base; in format_unsigned() 166 value /= base; in format_unsigned() 195 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument 206 if (is_signed && static_cast<int64_t>(value) < 0) { in format_integer() 210 value = static_cast<uint64_t>(-static_cast<int64_t>(value)); in format_integer() 212 format_unsigned(buf, buf_size, value, base, caps); in format_integer() 351 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() local 354 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat() [all …]
|
D | system_properties_compat.c | 64 char value[PROP_VALUE_MAX]; member 97 __LIBC_HIDDEN__ int __system_property_read_compat(const prop_info *_pi, char *name, char *value) in __system_property_read_compat() argument 109 memcpy(value, pi->value, len + 1); in __system_property_read_compat()
|
/bionic/tests/ |
D | eventfd_test.cpp | 42 eventfd_t value = 123; in TEST() local 43 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST() 44 ASSERT_EQ(initial_value, value); in TEST() 47 ASSERT_EQ(-1, eventfd_read(fd, &value)); in TEST() 55 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST() 56 ASSERT_EQ(3U, value); in TEST()
|
D | time_test.cpp | 205 volatile int value; member 210 Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) { in Counter() 241 volatile int current_value = value; in ValueUpdated() 243 while (current_value == value && (time(NULL) - start) < 5) { in ValueUpdated() 245 return current_value != value; in ValueUpdated() 248 static void CountNotifyFunction(sigval_t value) { in CountNotifyFunction() 249 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); in CountNotifyFunction() 250 ++cd->value; in CountNotifyFunction() 253 static void CountAndDisarmNotifyFunction(sigval_t value) { in CountAndDisarmNotifyFunction() 254 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); in CountAndDisarmNotifyFunction() [all …]
|
D | sstream_test.cpp | 26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument 27 std::stringstream ss(value); in CheckOverflow() 30 EXPECT_FALSE(ss.bad()) << value << ' ' << int64_t(result); in CheckOverflow() 31 EXPECT_EQ(should_overflow, ss.fail()) << value << ' ' << int64_t(result); in CheckOverflow() 33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
|
/bionic/libc/include/sys/ |
D | xattr.h | 38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); 39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags); 40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); 42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size); 43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size); 44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size);
|
D | system_properties.h | 47 int __system_property_get(const char *name, char *value); 51 int __system_property_set(const char *key, const char *value); 73 int __system_property_read(const prop_info *pi, char *name, char *value);
|
D | _system_properties.h | 57 char value[PROP_VALUE_MAX]; member 110 const char *value, unsigned int valuelen); 120 int __system_property_update(prop_info *pi, const char *value, unsigned int len); 138 int __system_property_read_compat(const prop_info *pi, char *name, char *value);
|
D | eventfd.h | 45 extern int eventfd_read(int fd, eventfd_t* value); 46 extern int eventfd_write(int fd, eventfd_t value);
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | ldexp.c | 27 double value; member 41 double value; member 56 ew_u.value = (d); \ 66 gh_u.value = (d); \ 75 sh_u.value = (d); \ 77 (d) = sh_u.value; \
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_cbrt.c | 41 double value; in cbrt() member 101 u.value=t; in cbrt() 103 t=u.value; in cbrt()
|
D | math_private.h | 55 double value; member 73 double value; member 92 ew_u.value = (d); \ 101 ew_u.value = (d); \ 110 gh_u.value = (d); \ 119 gl_u.value = (d); \ 130 (d) = iw_u.value; \ 138 (d) = iw_u.value; \ 146 sh_u.value = (d); \ 148 (d) = sh_u.value; \ [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 91 setenv(const char *name, const char *value, int rewrite) in setenv() argument 108 l_value = strlen(value); in setenv() 115 while ((*C++ = *value++)) in setenv() 146 for (*C++ = '='; (*C++ = *value++); ) in setenv()
|
/bionic/libc/kernel/uapi/linux/ |
D | reiserfs_xattr.h | 31 void *value; member
|
D | sw_sync.h | 24 __u32 value; member
|
/bionic/libc/upstream-netbsd/lib/libc/resolv/ |
D | mtctxres.c | 89 __res_destroy_ctx(void *value) { in __res_destroy_ctx() argument 91 mtctxres_t *mt = (mtctxres_t *)value; in __res_destroy_ctx()
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 74 self.value = None 81 self.value = val 83 self.value = id 88 self.value = src.value 94 return "(ident %s)" % self.value 96 return "(number %s)" % self.value 98 return "(string '%s')" % self.value 103 if self.id == tokSPACE and self.value == "\\": 111 return self.value 113 return self.value [all …]
|