Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 30) sorted by relevance

12

/bionic/libc/bionic/
Dlibgen.cpp39 __LIBC64_HIDDEN__ int basename_r(const char* path, char* buffer, size_t buffer_size) { in basename_r() argument
75 if (buffer == NULL) { in basename_r()
85 memcpy(buffer, startp, len); in basename_r()
86 buffer[len] = 0; in basename_r()
91 __LIBC64_HIDDEN__ int dirname_r(const char* path, char* buffer, size_t buffer_size) { in dirname_r() argument
133 if (buffer == NULL) { in dirname_r()
144 memcpy(buffer, path, len); in dirname_r()
145 buffer[len] = 0; in dirname_r()
Dlibc_logging.cpp63 BufferOutputStream(char* buffer, size_t size) : total(0) { in BufferOutputStream()
64 buffer_ = buffer; in BufferOutputStream()
65 end_ = buffer + size - 1; in BufferOutputStream()
245 char buffer[32]; /* temporary buffer used to format numbers */ in out_vformat() local
338 const char* str = buffer; in out_vformat()
348 buffer[0] = static_cast<char>(va_arg(args, int)); in out_vformat()
349 buffer[1] = '\0'; in out_vformat()
352 buffer[0] = '0'; in out_vformat()
353 buffer[1] = 'x'; in out_vformat()
354 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat()
[all …]
Dmalloc_debug_leak.cpp218 void* buffer = g_malloc_dispatch->malloc(bytes); in fill_malloc() local
219 if (buffer) { in fill_malloc()
220 memset(buffer, CHK_SENTINEL_VALUE, bytes); in fill_malloc()
222 return buffer; in fill_malloc()
245 void* buffer = g_malloc_dispatch->memalign(alignment, bytes); in fill_memalign() local
246 if (buffer) { in fill_memalign()
247 memset(buffer, CHK_SENTINEL_VALUE, bytes); in fill_memalign()
249 return buffer; in fill_memalign()
Dstubs.cpp267 const uid_t userid, char* buffer, const int bufferlen) { in print_app_name_from_appid_userid() argument
269 snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START); in print_app_name_from_appid_userid()
271 snprintf(buffer, bufferlen, "all_a%u", appid - AID_SHARED_GID_START); in print_app_name_from_appid_userid()
275 snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name); in print_app_name_from_appid_userid()
280 snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP); in print_app_name_from_appid_userid()
284 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { in print_app_name_from_uid() argument
287 return print_app_name_from_appid_userid(appid, userid, buffer, bufferlen); in print_app_name_from_uid()
/bionic/linker/
Ddlfcn.cpp43 char* buffer = __get_thread()->dlerror_buffer; in __bionic_format_dlerror() local
44 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror()
46 strlcat(buffer, ": ", __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror()
47 strlcat(buffer, detail, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror()
50 __bionic_set_dlerror(buffer); in __bionic_format_dlerror()
58 void android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { in android_get_LD_LIBRARY_PATH() argument
60 do_android_get_LD_LIBRARY_PATH(buffer, buffer_size); in android_get_LD_LIBRARY_PATH()
/bionic/libc/private/
DThreadLocalBuffer.h44 static void __bionic_tls_ ## name ## _key_destroy(void* buffer) { \
45 free(buffer); \
Dlibc_logging.h92 __LIBC_HIDDEN__ int __libc_format_buffer(char* buffer, size_t buffer_size, const char* format, ...)
/bionic/tests/
Dbuffer_tests.cpp208 static void SetFencepost(uint8_t *buffer) { in SetFencepost() argument
210 buffer[i] = 0xde; in SetFencepost()
211 buffer[i+1] = 0xad; in SetFencepost()
215 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost() argument
217 if (buffer[i] != 0xde || buffer[i+1] != 0xad) { in VerifyFencepost()
219 if (buffer[i] == 0xde) { in VerifyFencepost()
225 ASSERT_EQ(expected_value, buffer[i]); in VerifyFencepost()
Dsys_socket_test.cpp251 char buffer[100]; in TestSendMMsg() local
253 static_cast<size_t>(recv(fd_acc, buffer, sizeof(buffer), 0))); in TestSendMMsg()
254 ASSERT_STREQ(g_SendMsgs[i], buffer); in TestSendMMsg()
Dstdio_test.cpp114 char* buffer = NULL; in TEST() local
124 ASSERT_EQ(getdelim(&buffer, NULL, ' ', fp), -1); in TEST()
130 ASSERT_EQ(getdelim(&buffer, &buffer_length, ' ', fp), -1); in TEST()
181 char* buffer = NULL; in TEST() local
191 ASSERT_EQ(getline(&buffer, NULL, fp), -1); in TEST()
197 ASSERT_EQ(getline(&buffer, &buffer_length, fp), -1); in TEST()
Dstring_test.cpp767 uint8_t* buffer; in TEST() local
768 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&buffer), 64, 64)); in TEST()
769 memset(buffer, 10, 64); in TEST()
770 ASSERT_TRUE(NULL == memchr(buffer, 5, 0)); in TEST()
771 ASSERT_TRUE(NULL == memchr(buffer, 10, 0)); in TEST()
947 char* buffer = reinterpret_cast<char*>(malloc(MEMMOVE_DATA_SIZE)); in TEST() local
948 ASSERT_TRUE(buffer != NULL); in TEST()
959 char* src = buffer; in TEST()
961 char* dst = buffer + 256 + i; in TEST()
973 char* dst = buffer + 256; in TEST()
[all …]
Dlibc_logging_test.cpp21 extern int __libc_format_buffer(char* buffer, size_t buffer_size, const char* format, ...);
/bionic/libc/upstream-netbsd/android/include/sys/
Dsha1.h21 u_char buffer[64]; member
/bionic/libdl/
Dlibdl.c37 void android_get_LD_LIBRARY_PATH(char* buffer __unused, size_t buffer_size __unused) { } in android_get_LD_LIBRARY_PATH()
/bionic/libc/kernel/uapi/sound/
Dcompress_offload.h32 struct snd_compressed_buffer buffer; member
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/
Dsha1.c150 void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]) in SHA1Transform()
159 _DIAGASSERT(buffer != 0); in SHA1Transform()
164 (void)memcpy(block, buffer, 64); in SHA1Transform()
166 block = (CHAR64LONG16 *)(void *)buffer; in SHA1Transform()
250 (void)memcpy(&context->buffer[j], data, (i = 64-j)); in SHA1Update()
251 SHA1Transform(context->state, context->buffer); in SHA1Update()
258 (void)memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update()
/bionic/libc/kernel/uapi/linux/
Dusbdevice_fs.h89 void __user *buffer; member
Datmdev.h106 void __user *buffer; member
Dbinder.h112 binder_uintptr_t buffer; member
Domapfb.h190 void __user *buffer; member
Dpkt_sched.h130 __u32 buffer; member
302 __u32 buffer; member
/bionic/libc/kernel/uapi/linux/dvb/
Dfrontend.h444 __u32 buffer:1; member
484 } buffer; member
/bionic/libc/kernel/uapi/drm/
Dr128_drm.h251 unsigned int __user *buffer; member
Dvmwgfx_drm.h206 uint64_t buffer; member
/bionic/libc/arch-mips/string/
Dmemset.S193 # 96 bytes left. The value "96" is calculated as needed buffer for

12