/bionic/libc/upstream-netbsd/android/include/sys/ |
H A D | sha1.h | 21 u_char buffer[64]; member in struct:__anon1226
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
H A D | sha1.c | 150 void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]) argument 159 _DIAGASSERT(buffer != 0); 164 (void)memcpy(block, buffer, 64); 166 block = (CHAR64LONG16 *)(void *)buffer; 250 (void)memcpy(&context->buffer[j], data, (i = 64-j)); 251 SHA1Transform(context->state, context->buffer); 258 (void)memcpy(&context->buffer[j], &data[i], len - i);
|
/bionic/libdl/ |
H A D | libdl.cpp | 58 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/linker/ |
H A D | dlfcn.cpp | 61 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 D | linker.cpp | 1993 void do_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { 1995 // snprintf indirectly calls pthread_getspecific to get the size of a buffer. 2009 async_safe_fatal("android_get_LD_LIBRARY_PATH failed, buffer too small: " 2010 "buffer len %zu, required len %zu", buffer_size, required_size); 2013 char* end = buffer;
|
H A D | linker_logger.cpp | 71 static void GetAppSpecificProperty(char* buffer) { argument 84 __system_property_get(property_name.c_str(), buffer);
|
H A D | linker_sleb128.h | 42 sleb128_decoder(const uint8_t* buffer, size_t count) argument 43 : current_(buffer), end_(buffer+count) { }
|
/bionic/tests/ |
H A D | buffer_tests.cpp | 24 // 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 D | stdio_test.cpp | 182 char* buffer = NULL; local 192 ASSERT_EQ(getdelim(&buffer, NULL, ' ', fp), -1); 198 ASSERT_EQ(getdelim(&buffer, &buffer_length, ' ', fp), -1); 258 char* buffer = NULL; local 268 ASSERT_EQ(getline(&buffer, NULL, fp), -1); 274 ASSERT_EQ(getline(&buffer, &buffer_length, fp), -1); 826 // Make life (realistically) hard for ourselves by allocating our own buffer for the result. 1412 // We wrote to the buffer... 1433 // shall be written at the current position or at the end of the buffer, 1450 // advanced the current buffer siz 2012 char buffer[8192]; local [all...] |
H A D | string_test.cpp | 95 // 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...] |
H A D | sys_socket_test.cpp | 221 char buffer[100]; local 223 static_cast<size_t>(recv(fd_acc, buffer, sizeof(buffer), 0))); 224 ASSERT_STREQ(g_SendMsgs[i], buffer);
|
/bionic/tools/relocation_packer/src/ |
H A D | elf_file_unittest.cc | 50 unsigned char buffer[buffer_size]; local 54 bytes = fread(buffer, 1, sizeof(buffer), testfile); 55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary));
|
/bionic/benchmarks/tests/ |
H A D | interface_test.cpp | 117 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/libc/async_safe/ |
H A D | async_safe_log.cpp | 64 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/async_safe/include/async_safe/ |
H A D | log.h | 90 int async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, va_list args);
|
/bionic/libc/bionic/ |
H A D | getentropy.cpp | 34 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 D | grp_pwd.cpp | 367 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...] |
H A D | jemalloc_wrapper.cpp | 74 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 D | libgen.cpp | 39 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...] |
/bionic/libc/kernel/uapi/drm/ |
H A D | r128_drm.h | 208 unsigned int __user * buffer; member in struct:drm_r128_depth
|
H A D | vmwgfx_drm.h | 183 __u64 buffer; member in struct:drm_vmw_get_3d_cap_arg
|
/bionic/libc/kernel/uapi/linux/android/ |
H A D | binder.h | 69 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/kernel/uapi/linux/ |
H A D | atmdev.h | 89 void __user * buffer; member in struct:atm_iobuf
|
H A D | cdrom.h | 151 unsigned char __user * buffer; member in struct:cdrom_generic_command
|
/bionic/libc/kernel/uapi/linux/dvb/ |
H A D | frontend.h | 341 } buffer; member in union:dtv_property::__anon381
|