Searched refs:value (Results 1 - 25 of 171) sorted by relevance

1234567

/bionic/libc/bionic/
H A Deventfd_read.cpp32 int eventfd_read(int fd, eventfd_t* value) { argument
33 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1;
H A Deventfd_write.cpp32 int eventfd_write(int fd, eventfd_t value) { argument
33 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1;
H A Dsetjmp_cookie.cpp43 long value; local
44 __libc_safe_arc4random_buf(&value, sizeof(value), args);
47 globals->setjmp_cookie = value & ~1;
52 __libc_fatal("unexpected sigflag value: %ld", sigflag);
H A Dfgetxattr.cpp38 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) { argument
40 ssize_t result = ___fgetxattr(fd, name, value, size);
58 return getxattr(buf, name, value, size);
H A Dfsetxattr.cpp38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) { argument
40 int result = ___fsetxattr(fd, name, value, size, flags);
58 return setxattr(buf, name, value, size, flags);
/bionic/libc/private/
H A Dkernel_sigset_t.h31 kernel_sigset_t(const sigset_t* value) { argument
33 set(value);
40 void set(const sigset_t* value) { argument
41 bionic = *value;
H A Dbionic_futex.h43 static inline __always_inline int __futex(volatile void* ftx, int op, int value, argument
48 int result = syscall(__NR_futex, ftx, op, value, timeout, NULL, bitset);
64 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) { argument
65 return __futex(ftx, FUTEX_WAIT, value, timeout, 0);
68 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, argument
71 (use_realtime_clock ? FUTEX_CLOCK_REALTIME : 0), value, abs_timeout,
H A Dbionic_macros.h43 #define BIONIC_ALIGN(value, alignment) \
44 (((value) + (alignment) - 1) & ~((alignment) - 1))
46 #define BIONIC_ROUND_UP_POWER_OF_2(value) \
47 ((sizeof(value) == 8) \
48 ? (1UL << (64 - __builtin_clzl(static_cast<unsigned long>(value)))) \
49 : (1UL << (32 - __builtin_clz(static_cast<unsigned int>(value)))))
/bionic/linker/
H A Dlinker_dlwarning.h32 void add_dlwarning(const char* sopath, const char* message, const char* value = nullptr);
H A Dlinker_sleb128.h45 size_t value = 0; local
46 static const size_t size = CHAR_BIT * sizeof(value);
56 value |= (static_cast<size_t>(byte & 127) << shift);
61 value |= -(static_cast<size_t>(1) << shift);
64 return value;
H A Dlinker_dlwarning.cpp37 void add_dlwarning(const char* sopath, const char* message, const char* value) { argument
44 if (value != nullptr) {
45 current_msg = current_msg + " \"" + value + "\"";
/bionic/tools/relocation_packer/src/
H A Dsleb128.cc41 // Add a single value to the encoding. Values are encoded with variable
44 // value is sign extended up to a multiple of 7 bits (ensuring that the
48 void Sleb128Encoder<uint_t>::Enqueue(uint_t value) { argument
50 static const size_t size = CHAR_BIT * sizeof(value);
53 const bool negative = static_cast<int_t>(value) < 0;
56 uint8_t byte = value & 127;
57 value >>= 7;
59 // Sign extend if encoding a -ve value.
61 value |= -(static_cast<uint_t>(1) << (size - 7));
65 if ((value
97 uint_t value = 0; local
[all...]
/bionic/tests/
H A Deventfd_test.cpp42 eventfd_t value = 123; local
43 ASSERT_EQ(0, eventfd_read(fd, &value));
44 ASSERT_EQ(initial_value, value);
47 ASSERT_EQ(-1, eventfd_read(fd, &value));
55 ASSERT_EQ(0, eventfd_read(fd, &value));
56 ASSERT_EQ(3U, value);
H A Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { argument
27 std::stringstream ss(value);
30 EXPECT_FALSE(ss.bad()) << value << ' ' << int64_t(result);
31 EXPECT_EQ(should_overflow, ss.fail()) << value << ' ' << int64_t(result);
33 ASSERT_EQ(expected, result) << value;
H A Dsetjmp_test.cpp23 int value; local
25 if ((value = setjmp(jb)) == 0) {
29 ASSERT_EQ(123, value);
34 int value; local
36 if ((value = _setjmp(jb)) == 0) {
40 ASSERT_EQ(456, value);
45 int value; local
47 if ((value = sigsetjmp(jb, 0)) == 0) {
51 ASSERT_EQ(789, value);
56 int value; local
203 int value; local
232 int value = setjmp(jb); local
253 int value = setjmp(jb); local
[all...]
/bionic/libc/include/sys/
H A Deventfd.h45 int eventfd_read(int fd, eventfd_t* value);
46 int eventfd_write(int fd, eventfd_t value);
H A Dsystem_properties.h44 * Sets system property `key` to `value`, creating the system property if it doesn't already exist.
46 int __system_property_set(const char* key, const char* value) __INTRODUCED_IN(12);
50 * Use __system_property_read_callback to query the current value.
57 * Calls `callback` with a consistent trio of name, value, and serial number for property `pi`.
60 void (*callback)(void* cookie, const char *name, const char *value, uint32_t serial),
65 * callback. Use __system_property_read_callback() to read the value.
94 int __system_property_read(const prop_info* pi, char* name, char* value);
96 int __system_property_get(const char* name, char* value);
H A Dxattr.h38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags)
40 int setxattr(const char* path, const char* name, const void* value, size_t size, int flags)
42 int lsetxattr(const char* path, const char* name, const void* value, size_t size, int flags)
45 ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
46 ssize_t getxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
47 ssize_t lgetxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
/bionic/tools/versioner/current/sys/
H A Deventfd.h45 int eventfd_read(int fd, eventfd_t* value);
46 int eventfd_write(int fd, eventfd_t value);
H A Dsystem_properties.h44 * Sets system property `key` to `value`, creating the system property if it doesn't already exist.
46 int __system_property_set(const char* key, const char* value) __INTRODUCED_IN(12);
50 * Use __system_property_read_callback to query the current value.
57 * Calls `callback` with a consistent trio of name, value, and serial number for property `pi`.
60 void (*callback)(void* cookie, const char *name, const char *value, uint32_t serial),
65 * callback. Use __system_property_read_callback() to read the value.
94 int __system_property_read(const prop_info* pi, char* name, char* value);
96 int __system_property_get(const char* name, char* value);
H A Dxattr.h38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags)
40 int setxattr(const char* path, const char* name, const void* value, size_t size, int flags)
42 int lsetxattr(const char* path, const char* name, const void* value, size_t size, int flags)
45 ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
46 ssize_t getxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
47 ssize_t lgetxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16);
/bionic/libc/malloc_debug/
H A DDebugData.h57 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
58 return reinterpret_cast<void*>(value + pointer_offset_);
62 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); local
63 return reinterpret_cast<Header*>(value - pointer_offset_);
67 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
68 return reinterpret_cast<BacktraceHeader*>(value + backtrace->alloc_offset());
72 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
73 return reinterpret_cast<uint8_t*>(value + front_guard->offset());
77 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); local
78 return reinterpret_cast<uint8_t*>(value
[all...]
/bionic/libc/kernel/uapi/linux/
H A Dreiserfs_xattr.h31 void * value; member in struct:reiserfs_security_handle
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dreiserfs_xattr.h31 void * value; member in struct:reiserfs_security_handle
/bionic/tools/versioner/src/
H A DCompilationType.h60 int32_t value; local
61 memcpy(&value, &packed, sizeof(value));
62 return std::hash<int32_t>()(value);

Completed in 942 milliseconds

1234567