Searched defs:value (Results 1 - 25 of 90) sorted by relevance

1234

/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 Dsigqueue.cpp36 int sigqueue(pid_t pid, int signo, const sigval value) { argument
43 info.si_value = value;
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 Dbionic_systrace.cpp45 // debug.atrace.tags.enableflags is set to a safe non-tracing value during property
57 // the value of tags accordingly. If the value of the property changes,
65 char value[PROP_VALUE_MAX]; local
66 __system_property_read(g_pinfo, 0, value);
67 g_tags = strtoull(value, nullptr, 0);
H A Dsystem_properties_compat.c64 char value[PROP_VALUE_MAX]; member in struct:prop_info_compat
97 __LIBC_HIDDEN__ int __system_property_read_compat(const prop_info *_pi, char *name, char *value) argument
109 memcpy(value, pi->value, len + 1);
/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;
/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
H A Dhidraw.h26 __u8 value[HID_MAX_DESCRIPTOR_SIZE]; member in struct:hidraw_report_descriptor
/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/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 DWriteProtected.h32 T value; member in union:WriteProtectedContents
65 return &contents.value;
69 return contents.value;
78 mutator(&contents.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,
/bionic/linker/
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 + "\"";
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;
/bionic/libc/upstream-netbsd/lib/libc/resolv/
H A Dmtctxres.c89 __res_destroy_ctx(void *value) { argument
91 mtctxres_t *mt = (mtctxres_t *)value;
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dsetenv.c36 static char **lastenv; /* last value of environ */
40 * Add a name=value string directly to the environmental, replacing
41 * any current value.
86 * Set the value of the environmental variable "name" to be
87 * "value". If rewrite is set, replace any current value.
90 setenv(const char *name, const char *value, int rewrite) argument
107 l_value = strlen(value);
114 while ((*C++ = *value++))
140 if (!(environ[offset] = /* name + `=' + value */
[all...]
/bionic/libc/include/sys/
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/libm/upstream-freebsd/lib/msun/src/
H A Ds_cbrt.c41 double value; member in union:__anon1074
62 * ordinary integer divison of the value in bits magically gives
101 u.value=t;
103 t=u.value;
/bionic/linker/tests/
H A Dlinker_block_allocator_test.cpp31 ssize_t value; member in struct:__anon1080::test_struct_nominal
63 ptr1->value = 42;
/bionic/benchmarks/
H A Dproperty_benchmark.cpp86 // the value from the possible values.
93 // Make sure the value contains at least 1 character.
151 char value[PROP_VALUE_MAX]; local
152 __system_property_get(pa.names[random() % nprops], value);

Completed in 5630 milliseconds

1234