Searched refs:buffer (Results 1 - 25 of 58) sorted by relevance

123

/bionic/libc/bionic/
H A Dgetentropy.cpp34 static int getentropy_urandom(void* buffer, size_t buffer_size, int saved_errno) { argument
40 ssize_t count = TEMP_FAILURE_RETRY(read(fd, static_cast<char*>(buffer) + collected,
54 int getentropy(void* buffer, size_t buffer_size) { argument
64 long count = TEMP_FAILURE_RETRY(getrandom(static_cast<char*>(buffer) + collected,
69 // EFAULT: `buffer` is invalid.
73 return getentropy_urandom(buffer, buffer_size, saved_errno);
H A Dlibgen.cpp39 static int __basename_r(const char* path, char* buffer, size_t buffer_size) { argument
75 if (buffer == NULL) {
85 memcpy(buffer, startp, len);
86 buffer[len] = 0;
92 __LIBC32_LEGACY_PUBLIC__ int basename_r(const char* path, char* buffer, size_t buffer_size) { argument
93 return __basename_r(path, buffer, buffer_size);
96 static int __dirname_r(const char* path, char* buffer, size_t buffer_size) { argument
138 if (buffer == NULL) {
149 memcpy(buffer, path, len);
150 buffer[le
156 dirname_r(const char* path, char* buffer, size_t buffer_size) argument
[all...]
H A Djemalloc_wrapper.cpp74 char buffer[100]; local
76 snprintf(buffer, sizeof(buffer), "arena.%d.decay_time", i);
77 if (je_mallctl(buffer, nullptr, nullptr, &decay_time, sizeof(decay_time)) != 0) {
H A Dgrp_pwd.cpp367 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { argument
371 snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START);
375 snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name);
380 snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP_START);
384 static void print_app_name_from_gid(const gid_t gid, char* buffer, const int bufferlen) { argument
388 snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START);
390 snprintf(buffer, bufferlen, "all_a%u", appid - AID_SHARED_GID_START);
392 snprintf(buffer, bufferlen, "u%u_a%u_cache", userid, appid - AID_CACHE_GID_START);
396 snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name);
401 snprintf(buffer, bufferle
[all...]
/bionic/linker/
H A Dlinker_sleb128.h42 sleb128_decoder(const uint8_t* buffer, size_t count) argument
43 : current_(buffer), end_(buffer+count) { }
H A Ddlfcn.cpp61 void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) __LINKER_PUBLIC__;
106 char* buffer = __get_thread()->dlerror_buffer; local
107 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE);
109 strlcat(buffer, ": ", __BIONIC_DLERROR_BUFFER_SIZE);
110 strlcat(buffer, detail, __BIONIC_DLERROR_BUFFER_SIZE);
113 __bionic_set_dlerror(buffer);
121 void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { argument
123 do_android_get_LD_LIBRARY_PATH(buffer, buffer_size);
H A Dlinker_logger.cpp71 static void GetAppSpecificProperty(char* buffer) { argument
84 __system_property_get(property_name.c_str(), buffer);
/bionic/libc/upstream-netbsd/android/include/sys/
H A Dsha1.h21 u_char buffer[64]; member in struct:__anon1226
/bionic/libc/async_safe/
H A Dasync_safe_log.cpp64 BufferOutputStream(char* buffer, size_t size) : total(0), pos_(buffer), avail_(size) { argument
150 // Writes number 'value' in base 'base' into buffer 'buf' of size 'buf_size' bytes.
238 char buffer[32]; /* temporary buffer used to format numbers */ local
325 const char* str = buffer;
335 buffer[0] = static_cast<char>(va_arg(args, int));
336 buffer[1] = '\0';
339 buffer[0] = '0';
340 buffer[
405 async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, va_list args) argument
412 async_safe_format_buffer(char* buffer, size_t buffer_size, const char* format, ...) argument
513 char buffer[1024]; local
[all...]
/bionic/libc/malloc_debug/
H A DMapData.cpp119 std::vector<char> buffer(1024);
120 while (fgets(buffer.data(), buffer.size(), fp) != nullptr) {
121 MapEntry* entry = parse_line(buffer.data());
/bionic/tests/
H A Dbuffer_tests.cpp24 // For the comparison buffer tests, the maximum length to test for the
63 // Set of multiple buffer alignment combinations to be used for string/memory
194 // Return a pointer into the current buffer with the specified alignment.
208 static void SetFencepost(uint8_t *buffer) { argument
210 buffer[i] = 0xde;
211 buffer[i+1] = 0xad;
215 static void VerifyFencepost(uint8_t *buffer) { argument
217 if (buffer[i] != 0xde || buffer[i+1] != 0xad) {
219 if (buffer[
[all...]
H A Dsys_socket_test.cpp221 char buffer[100]; local
223 static_cast<size_t>(recv(fd_acc, buffer, sizeof(buffer), 0)));
224 ASSERT_STREQ(g_SendMsgs[i], buffer);
H A Dstring_test.cpp95 // Note that glibc doesn't necessarily write into the buffer.
680 // Choose a random size for our src buffer.
717 // Choose a random size for our src buffer.
800 uint8_t* buffer; local
801 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&buffer), 64, 64));
802 memset(buffer, 10, 64);
803 ASSERT_TRUE(NULL == memchr(buffer, 5, 0));
804 ASSERT_TRUE(NULL == memchr(buffer, 10, 0));
968 char* buffer = reinterpret_cast<char*>(malloc(MEMMOVE_DATA_SIZE)); local
969 ASSERT_TRUE(buffer !
1515 DoMemcpySameTest(uint8_t* buffer, size_t len) argument
[all...]
/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp339 // Create a buffer for doing comparisons.
340 std::vector<uint8_t> buffer(32);
341 memset(buffer.data(), 0xaa, buffer.size());
345 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0)
346 << ShowDiffs(buffer.data(), &pointer[-buffer.size()], buffer
[all...]
/bionic/benchmarks/tests/
H A Dinterface_test.cpp117 char buffer[4097]; local
118 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1));
126 buffer[bytes] = '\0';
127 raw_output_ += buffer;
/bionic/libdl/
H A Dlibdl.cpp58 void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size);
152 void android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { argument
153 __loader_android_get_LD_LIBRARY_PATH(buffer, buffer_size);
/bionic/libc/async_safe/include/async_safe/
H A Dlog.h90 int async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, va_list args);
/bionic/libc/system_properties/
H A Dcontexts_split.cpp219 char* buffer = nullptr; local
224 while (getline(&buffer, &line_len, file) > 0) {
225 int items = read_spec_entries(buffer, 2, &prop_prefix, &context);
255 free(buffer);
/bionic/tools/relocation_packer/src/
H A Delf_file_unittest.cc50 unsigned char buffer[buffer_size]; local
54 bytes = fread(buffer, 1, sizeof(buffer), testfile);
55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary));
/bionic/libc/kernel/uapi/linux/android/
H A Dbinder.h69 binder_uintptr_t buffer; member in struct:binder_buffer_object
134 binder_uintptr_t buffer; member in struct:binder_transaction_data::__anon246::__anon247
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/android/
H A Dbinder.h69 binder_uintptr_t buffer; member in struct:binder_buffer_object
134 binder_uintptr_t buffer; member in struct:binder_transaction_data::__anon1393::__anon1394
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/android/
H A Dbinder.h69 binder_uintptr_t buffer; member in struct:binder_buffer_object
134 binder_uintptr_t buffer; member in struct:binder_transaction_data::__anon2663::__anon2664
/bionic/libc/kernel/uapi/sound/
H A Dcompress_offload.h30 struct snd_compressed_buffer buffer; member in struct:snd_compr_params
/bionic/libc/versioner-dependencies/common/kernel_uapi/sound/
H A Dcompress_offload.h30 struct snd_compressed_buffer buffer; member in struct:snd_compr_params
/bionic/tools/versioner/dependencies/common/kernel_uapi/sound/
H A Dcompress_offload.h30 struct snd_compressed_buffer buffer; member in struct:snd_compr_params

Completed in 313 milliseconds

123