/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_debug.cpp | 24 char* buffer = reinterpret_cast<char*>(::malloc(buffer_size)); in LogArgs() local 27 ret = vsnprintf(buffer, buffer_size, fmt, args); in LogArgs() 32 strlcat(buffer, ": ", buffer_size); in LogArgs() 33 strlcat(buffer, strerror(error), buffer_size); in LogArgs() 37 fprintf(stderr, "%.*s", ret, buffer); in LogArgs() 41 __android_log_write(ANDROID_LOG_INFO, "crazy_linker", buffer); in LogArgs() 44 ::free(buffer); in LogArgs()
|
D | crazy_linker_system_mock.cpp | 170 bool GetString(char* buffer, size_t buffer_size) { in GetString() argument 179 *buffer++ = ch; in GetString() 184 *buffer = '\0'; in GetString() 188 int Read(void* buffer, size_t buffer_size) { in Read() argument 202 ::memcpy(buffer, data + offset_, buffer_size); in Read() 323 int FileDescriptor::Read(void* buffer, size_t buffer_size) { in Read() argument 329 return handle->Read(buffer, buffer_size); in Read()
|
D | crazy_linker_system.cpp | 33 int FileDescriptor::Read(void* buffer, size_t buffer_size) { in Read() argument 34 return TEMP_FAILURE_RETRY(::read(fd_, buffer, buffer_size)); in Read()
|
/ndk/sources/host-tools/make-3.81/ |
D | amiga.c | 33 char * buffer, * ptr; in MyExecute() local 43 buffer = AllocMem (len, MEMF_ANY); in MyExecute() 45 if (!buffer) in MyExecute() 48 ptr = buffer; in MyExecute() 75 status = SystemTags (buffer, in MyExecute() 79 FreeMem (buffer, len); in MyExecute()
|
D | strcache.c | 36 char buffer[1]; /* The buffer comes after this. */ member 47 new->end = new->buffer; in new_cache() 140 if (str >= sp->buffer && str < sp->end) in strcache_iscached() 193 int sz = (sp->end - sp->buffer) + bf; in strcache_print_stats()
|
D | function.c | 1394 fold_newlines (char *buffer, unsigned int *length) in fold_newlines() argument 1396 char *dst = buffer; in fold_newlines() 1397 char *src = buffer; in fold_newlines() 1398 char *last_nonnl = buffer -1; in fold_newlines() 1415 *length = last_nonnl - buffer; in fold_newlines() 1674 char *buffer; in func_shell() local 1694 buffer = (char *) xmalloc (maxlen + 1); in func_shell() 1702 buffer = (char *) xrealloc (buffer, maxlen + 1); in func_shell() 1705 EINTRLOOP (cc, read (pipedes[0], &buffer[i], maxlen - i)); in func_shell() 1709 buffer[i] = '\0'; in func_shell() [all …]
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
D | utils.h | 43 struct buffer *init_buffer P_((void)); 44 char *get_buffer P_((struct buffer *b)); 45 size_t size_buffer P_((struct buffer *b)); 46 char *add_buffer P_((struct buffer *b, const char *p, size_t n)); 47 char *add1_buffer P_((struct buffer *b, int ch)); 48 void free_buffer P_((struct buffer *b));
|
D | utils.c | 513 struct buffer struct 522 struct buffer * argument 525 struct buffer *b = MALLOC(1, struct buffer); in init_buffer() 534 struct buffer *b; in get_buffer() 541 struct buffer *b; in size_buffer() 546 static void resize_buffer P_((struct buffer *b, size_t newlen)); 549 struct buffer *b; in resize_buffer() 571 struct buffer *b; in add_buffer() 585 struct buffer *b; in add1_buffer() 609 struct buffer *b; in free_buffer()
|
D | compile.c | 122 static struct buffer *pending_text = NULL; 293 static int add_then_next P_((struct buffer *b, int ch)); 296 struct buffer *b; in add_then_next() 351 static struct buffer *read_filename P_((void)); 352 static struct buffer * 355 struct buffer *b; in read_filename() 383 struct buffer *b; 450 static int snarf_char_class P_((struct buffer *b, mbstate_t *cur_stat)); 453 struct buffer *b; in snarf_char_class() 531 static struct buffer *match_slash P_((int slash, int regex)); [all …]
|
/ndk/sources/android/support/src/stdio/ |
D | stdio_impl.c | 14 void fake_file_init_buffer(FakeFILE* file, char* buffer, size_t buffer_size) { in fake_file_init_buffer() argument 16 file->buffer = (void*)buffer; in fake_file_init_buffer() 22 wchar_t* buffer, in fake_file_init_wbuffer() argument 24 fake_file_init_buffer(file, (char*)buffer, buffer_size * sizeof(wchar_t)); in fake_file_init_wbuffer() 39 memcpy((char*)(file->buffer + file->buffer_pos), in fake_file_out() 65 memcpy((char*)(file->buffer + file->buffer_pos), in fake_file_outw() 117 file->buffer[file->buffer_pos++] = ch; in fake_fputc() 126 *(wchar_t*)(&file->buffer[file->buffer_pos]) = wc; in fake_fputwc()
|
D | stdio_impl.h | 17 unsigned char* buffer; member 26 void fake_file_init_buffer(FakeFILE* file, char* buffer, size_t buffer_size) 31 void fake_file_init_wbuffer(FakeFILE* file, wchar_t* buffer, size_t buffer_size)
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
D | abort_message.cpp | 39 char* buffer; in abort_message() local 42 vasprintf(&buffer, format, list2); in abort_message() 44 CRSetCrashLogMessage(buffer); in abort_message()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | istmit_test.cpp | 60 char buffer[100]; in istmit1() local 68 (i < sizeof(buffer) / sizeof(buffer[0]))) { //*TY 07/28/98 - added index check in istmit1() 69 buffer[i++] = *s++; in istmit1() 71 buffer[i] = '\0'; // Null terminate buffer. in istmit1() 73 CPPUNIT_ASSERT(!strcmp(buffer, buff)); in istmit1()
|
/ndk/tests/device/test-stlport/unit/ |
D | istmit_test.cpp | 60 char buffer[100]; in istmit1() local 68 (i < sizeof(buffer) / sizeof(buffer[0]))) { //*TY 07/28/98 - added index check in istmit1() 69 buffer[i++] = *s++; in istmit1() 71 buffer[i] = '\0'; // Null terminate buffer. in istmit1() 73 CPPUNIT_ASSERT(!strcmp(buffer, buff)); in istmit1()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/storage.iterator/ |
D | raw_storag_iterator.pass.cpp | 34 Storage buffer; in main() local 35 std::raw_storage_iterator<A*, A> it((A*)&buffer); in main() 40 A* ap = (A*)&buffer + i; in main()
|
/ndk/sources/android/crazy_linker/tests/ |
D | test_util.h | 236 char buffer[8192]; in CopyFile() local 238 size_t read = fread(buffer, 1, sizeof buffer, src_file.file()); in CopyFile() 240 size_t written = fwrite(buffer, 1, read, dst_file.file()); in CopyFile() 247 if (read < sizeof buffer) in CopyFile() 257 char buffer[1]; in SendFd() local 258 buffer[0] = 0; in SendFd() 260 iov.iov_base = buffer; in SendFd() 292 char buffer[1]; in ReceiveFd() local 295 iov.iov_base = buffer; in ReceiveFd()
|
/ndk/sources/cxx-stl/stlport/src/ |
D | ios.cpp | 212 char buffer[256]; in _M_throw_failure() 214 strcpy(buffer, "ios failure: rdstate = 0x"); in _M_throw_failure() 215 …ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_iostate… in _M_throw_failure() 217 …ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_excepti… in _M_throw_failure() 219 arg = buffer; in _M_throw_failure()
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest-port.cc | 433 char* buffer = static_cast<char*>(malloc(len + 3)); in Init() local 434 full_pattern_ = buffer; in Init() 437 *buffer++ = '^'; // Makes sure full_pattern_ starts with '^'. in Init() 441 memcpy(buffer, regex, len); in Init() 442 buffer += len; in Init() 445 *buffer++ = '$'; // Makes sure full_pattern_ ends with '$'. in Init() 447 *buffer = '\0'; in Init() 607 char* const buffer = new char[file_size]; in ReadEntireFile() local 617 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); in ReadEntireFile() 621 const std::string content(buffer, bytes_read); in ReadEntireFile() [all …]
|
D | gtest-death-test.cc | 314 char buffer[256]; in FailFromInternalError() local 318 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { in FailFromInternalError() 319 buffer[num_read] = '\0'; in FailFromInternalError() 320 error << buffer; in FailFromInternalError() 537 Message buffer; in Passed() local 539 buffer << "Death test: " << statement() << "\n"; in Passed() 542 buffer << " Result: failed to die.\n" in Passed() 546 buffer << " Result: threw an exception.\n" in Passed() 550 buffer << " Result: illegal return in test statement.\n" in Passed() 559 buffer << " Result: died but not with expected error.\n" in Passed() [all …]
|
/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
D | bug-regex8.c | 51 free (regex.buffer); in main() 63 free (regex.buffer); in main()
|
/ndk/sources/android/cpufeatures/ |
D | cpu-features.c | 127 char buffer[256]; in get_file_size() local 136 int ret = read(fd, buffer, sizeof buffer); in get_file_size() 158 read_file(const char* pathname, char* buffer, size_t buffsize) in read_file() argument 169 int ret = read(fd, buffer + count, buffsize - count); in read_file() 193 extract_cpuinfo_field(const char* buffer, int buflen, const char* field) in extract_cpuinfo_field() argument 196 const char* bufend = buffer + buflen; in extract_cpuinfo_field() 202 p = buffer; in extract_cpuinfo_field() 208 if (p == buffer || p[-1] == '\n') in extract_cpuinfo_field()
|
/ndk/sources/host-tools/make-3.81/tests/scripts/misc/ |
D | general1 | 22 display.o : display.c defs.h buffer.h 24 insert.o : insert.c defs.h buffer.h 34 "$workdir${pathsep}buffer.h","$workdir${pathsep}insert.c",
|
D | general2 | 23 display.o : display.c defs.h buffer.h 25 insert.o : insert.c defs.h buffer.h 35 "$workdir${pathsep}buffer.h","$workdir${pathsep}insert.c",
|
/ndk/sources/android/support/tests/ |
D | wchar_unittest.cc | 10 static char buffer[256]; in to_cstr() local 12 for (n = 0; n + 1U < sizeof(buffer); ++n) { in to_cstr() 16 buffer[n] = (ch < 128) ? ch : '@'; in to_cstr() 18 buffer[n] = '\0'; in to_cstr() 19 return buffer; in to_cstr()
|
/ndk/sources/host-tools/sed-4.2.1/m4/ |
D | gettimeofday.m4 | 44 dnl See if gettimeofday clobbers the static buffer that localtime uses 55 AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer], 84 [Define if gettimeofday clobbers the localtime buffer.])
|