/bionic/libc/bionic/ |
H A D | eventfd_read.cpp | 32 int eventfd_read(int fd, eventfd_t* value) { argument 33 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1;
|
H A D | eventfd_write.cpp | 32 int eventfd_write(int fd, eventfd_t value) { argument 33 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1;
|
H A D | fgetxattr.cpp | 38 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 D | fsetxattr.cpp | 38 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 D | setjmp_cookie.cpp | 44 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 D | sigqueue.cpp | 36 int sigqueue(pid_t pid, int signo, const sigval value) { argument 43 info.si_value = value;
|
/bionic/libc/private/ |
H A D | bionic_macros.h | 41 #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 D | kernel_sigset_t.h | 31 kernel_sigset_t(const sigset_t* value) { argument 33 set(value); 40 void set(const sigset_t* value) { argument 41 bionic = *value;
|
H A D | bionic_futex.h | 43 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 D | WriteProtected.h | 32 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 D | property_fake.cpp | 26 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 D | linker_dlwarning.h | 20 void add_dlwarning(const char* sopath, const char* message, const char* value = nullptr);
|
H A D | linker_sleb128.h | 31 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 D | linker_dlwarning.cpp | 25 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 D | DebugData.h | 56 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 D | sleb128.cc | 41 // 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 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);
|
H A D | system_properties.h | 41 /* 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 D | eventfd.h | 45 extern int eventfd_read(int fd, eventfd_t* value); 46 extern int eventfd_write(int fd, eventfd_t value);
|
H A D | _system_properties.h | 58 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 D | eventfd_test.cpp | 42 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 D | sstream_test.cpp | 26 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 D | setjmp_test.cpp | 23 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 D | reiserfs_xattr.h | 31 void * value; member in struct:reiserfs_security_handle
|
H A D | sw_sync.h | 24 __u32 value; member in struct:sw_sync_create_fence_data
|