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

12345

/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 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);
H A Dsetjmp_cookie.cpp44 long value = *reinterpret_cast<long*>(random_data + 8); local
47 globals->setjmp_cookie = value & ~1;
52 __libc_fatal("unexpected sigflag value: %ld", sigflag);
H A Dsigqueue.cpp36 int sigqueue(pid_t pid, int signo, const sigval value) { argument
43 info.si_value = value;
/bionic/libc/private/
H A Dbionic_macros.h41 #define BIONIC_ALIGN(value, alignment) \
42 (((value) + (alignment) - 1) & ~((alignment) - 1))
44 #define BIONIC_ROUND_UP_POWER_OF_2(value) \
45 ((sizeof(value) == 8) \
46 ? (1UL << (64 - __builtin_clzl(static_cast<unsigned long>(value)))) \
47 : (1UL << (32 - __builtin_clz(static_cast<unsigned int>(value)))))
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 DWriteProtected.h32 T value; member in union:WriteProtectedContents
65 return &contents.value;
69 return contents.value;
78 mutator(&contents.value);
/bionic/libc/malloc_debug/tests/
H A Dproperty_fake.cpp26 extern "C" int property_set(const char* name, const char* value) { argument
30 g_properties[name] = value;
34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument
39 strncpy(value, default_value, PROP_VALUE_MAX-1);
41 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
43 value[PROP_VALUE_MAX-1] = '\0';
44 return strlen(value);
47 extern "C" int __system_property_get(const char* key, char* value) { argument
51 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
53 value[PROP_VALUE_MA
[all...]
/bionic/linker/
H A Dlinker_dlwarning.h20 void add_dlwarning(const char* sopath, const char* message, const char* value = nullptr);
H A Dlinker_sleb128.h31 size_t value = 0; local
32 static const size_t size = CHAR_BIT * sizeof(value);
42 value |= (static_cast<size_t>(byte & 127) << shift);
47 value |= -(static_cast<size_t>(1) << shift);
50 return value;
H A Dlinker_dlwarning.cpp25 void add_dlwarning(const char* sopath, const char* message, const char* value) { argument
32 if (value != nullptr) {
33 current_msg = current_msg + " \"" + value + "\"";
/bionic/libc/malloc_debug/
H A DDebugData.h56 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
57 return reinterpret_cast<void*>(value + pointer_offset_);
61 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); local
62 return reinterpret_cast<Header*>(value - pointer_offset_);
66 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
67 return reinterpret_cast<BacktraceHeader*>(value + backtrace->alloc_offset());
71 uintptr_t value = reinterpret_cast<uintptr_t>(header); local
72 return reinterpret_cast<uint8_t*>(value + front_guard->offset());
76 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); local
77 return reinterpret_cast<uint8_t*>(value
[all...]
/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/libc/include/sys/
H A Dxattr.h38 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);
H A Dsystem_properties.h41 /* Look up a system property by name, copying its value and a
44 ** the string length of the value. A property that is not
45 ** defined is identical to a property with a length 0 value.
47 int __system_property_get(const char *name, char *value);
51 int __system_property_set(const char *key, const char *value);
55 ** __system_property_read() to obtain the string value from
64 /* Read the value of a system property. Returns the length
65 ** of the value. Copies the value and \0 terminator into
66 ** the provided value pointe
[all...]
H A Deventfd.h45 extern int eventfd_read(int fd, eventfd_t* value);
46 extern int eventfd_write(int fd, eventfd_t value);
H A D_system_properties.h58 char value[PROP_VALUE_MAX]; member in struct:prop_msg
67 ** - prop_area.count will never decrease in value
70 ** - reading a value requires the following steps
73 ** 3. memcpy(local, pi->value, SERIAL_VALUE_LEN(serial) + 1)
76 ** - writing a value requires the following steps
78 ** 2. memcpy(pi->value, local_value, value_len)
116 ** value than the first call. Beware of race conditions as changes to the
117 ** properties are not atomic, the main value of this call is to determine
134 const char *value, unsigned int valuelen);
136 /* Update the value o
[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/kernel/uapi/linux/
H A Dreiserfs_xattr.h31 void * value; member in struct:reiserfs_security_handle
H A Dsw_sync.h24 __u32 value; member in struct:sw_sync_create_fence_data

Completed in 819 milliseconds

12345