/bionic/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 182 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n') 183 out.write(f'#include "{g_benchmark_name}_asm.h"\n') 184 out.write('.data\n') 185 out.write('.p2align 4\n') 188 out.write('.text\n' 'MAIN\n') 195 out.write('.text\n' 201 out.write('.data\n' 208 out.write('.text\n') 212 if r.is_weak: out.write(f'.weak {sym}\n') 213 out.write(f'CALL({sym})\n') [all …]
|
/bionic/libc/tools/ |
D | check-symbols.py | 13 sys.stderr.write('Checking symbols for arch "%s"...\n' % arch) 70 …sys.stderr.write('%d missing %s in %s for %s:\n' % (len(missing), functions_or_variables, library,… 72 sys.stderr.write(' %s\n' % miss) 76 …sys.stderr.write('%d extra %s in %s for %s:\n' % (len(extra), functions_or_variables, library, arc… 78 sys.stderr.write(' %s\n' % s)
|
/bionic/libc/malloc_hooks/tests/ |
D | malloc_hooks_tests.cpp | 231 write(0, ptr, 0); in TEST_F() 250 write(0, ptr, 0); in TEST_F() 269 write(0, ptr, 0); in TEST_F() 287 write(0, ptr, 0); in TEST_F() 306 write(0, ptr, 0); in TEST_F() 323 write(0, ptr, 0); in TEST_F() 343 write(0, ptr, 0); in TEST_F() 361 write(0, ptr, 0); in TEST_F() 383 write(0, ptr, 0); in TEST_F() 403 write(0, ptr, 0); in TEST_F()
|
/bionic/tests/ |
D | sys_mman_test.cpp | 60 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG))); in TEST() 74 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG))); in TEST() 103 ASSERT_EQ(STR_SSIZE(PAGE0_MSG), write(tf.fd, PAGE0_MSG, sizeof(PAGE0_MSG))); in TEST() 105 ASSERT_EQ(STR_SSIZE(PAGE1_MSG), write(tf.fd, PAGE1_MSG, sizeof(PAGE1_MSG))); in TEST() 107 ASSERT_EQ(STR_SSIZE(PAGE2_MSG), write(tf.fd, PAGE2_MSG, sizeof(PAGE2_MSG))); in TEST() 109 ASSERT_EQ(STR_SSIZE(END_MSG), write(tf.fd, END_MSG, sizeof(END_MSG))); in TEST() 139 ASSERT_EQ(STR_SSIZE(PAGE0_MSG), write(tf.fd, PAGE0_MSG, sizeof(PAGE0_MSG))); in TEST() 141 ASSERT_EQ(STR_SSIZE(PAGE1_MSG), write(tf.fd, PAGE1_MSG, sizeof(PAGE1_MSG))); in TEST() 143 ASSERT_EQ(STR_SSIZE(PAGE2_MSG), write(tf.fd, PAGE2_MSG, sizeof(PAGE2_MSG))); in TEST() 145 ASSERT_EQ(STR_SSIZE(END_MSG), write(tf.fd, END_MSG, sizeof(END_MSG))); in TEST() [all …]
|
D | grp_pwd_file_test.cpp | 95 write(file.fd, test_string, sizeof(test_string) - 1); in TEST() 115 write(file.fd, test_string, sizeof(test_string) - 1); in TEST() 151 write(file.fd, test_string, sizeof(test_string) - 1); in TEST() 187 write(file.fd, test_string, sizeof(test_string) - 1); in TEST() 211 write(file.fd, test_string, sizeof(test_string) - 1); in TEST() 233 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
|
D | sys_sendfile_test.cpp | 29 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); in TEST() 48 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); in TEST()
|
D | clang_fortify_tests.cpp | 559 EXPECT_FORTIFY_DEATH(write(kBogusFD, small_buffer, sizeof(small_buffer) + 1)); in FORTIFY_TEST() 593 EXPECT_NO_DEATH(write(kBogusFD, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST() 616 EXPECT_FORTIFY_DEATH(write(kBogusFD, unknown, count)); in FORTIFY_TEST()
|
D | sys_epoll_test.cpp | 72 ASSERT_EQ(1, write(fds[1], "\n", 1)); in TEST()
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 79 sys.stderr.write("warning: " + msg) 122 out.write(kernel_disclaimer) 123 blocks.write(out) 152 sys.stderr.write("error: unrecognized option\n") 190 sys.stdout.write(new_data)
|
D | utils.py | 11 sys.stderr.write(os.path.basename(sys.argv[0]) + ": error: ") 12 sys.stderr.write(msg) 48 def write(self,msg): member in StringOutput 135 f.write(self.new_data[dst])
|
/bionic/libc/private/ |
D | ScopedRWLock.h | 35 template <bool write> class ScopedRWLock { 38 (write ? pthread_rwlock_wrlock : pthread_rwlock_rdlock)(rwlock_); in ScopedRWLock()
|
D | MallocXmlElem.h | 34 write(fd_, " ", 1); in fd_() 38 write(fd_, ">", 1); in fd_()
|
/bionic/libc/bionic/ |
D | bionic_systrace.cpp | 76 TEMP_FAILURE_RETRY(write(trace_marker_fd, buf, len)); in bionic_trace_begin() 89 TEMP_FAILURE_RETRY(write(trace_marker_fd, "E|", 2)); in bionic_trace_end()
|
D | eventfd.cpp | 45 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1; in eventfd_write()
|
D | pthread_setname_np.cpp | 101 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); in pthread_setname_np()
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 166 ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count) in write() function 168 __error_if_overflows_ssizet(count, write) in write() 169 __error_if_overflows_objectsize(count, __bos0(buf), write) { in write() 177 return __call_bypassing_fortify(write)(fd, buf, count); in write()
|
/bionic/docs/ |
D | fdsan.md | 21 if (write(fd, "foo", 3) != 3) { 22 err(1, "write failed!"); 34 write(123, "foo", 3) = -1 (EBADF) 35 err(1, "write failed!") 87 ssize_t rc = write(fd, "good\n", 5); 89 err(1, "good failed to write?!"); 129 write(3, "good\n") = ; 134 fdsan_test: good failed to write?!: Bad file descriptor 148 ssize_t rc = write(fd, "good\n", 5); 150 err(1, "good failed to write?!");
|
/bionic/tests/libs/ |
D | preinit_syscall_test_helper.cpp | 29 g_result = write(-1, "", 1); in preinit_ctor()
|
/bionic/linker/ |
D | linker_debug.cpp | 38 write(STDOUT_FILENO, "\n", 1); in linker_log_va_list()
|
/bionic/libc/upstream-freebsd/ |
D | README.md | 5 TODO: write a script to make this process automated.
|
/bionic/libc/upstream-openbsd/ |
D | README.md | 5 TODO: write a script to make this process automated.
|
/bionic/libc/upstream-netbsd/ |
D | README.md | 5 TODO: write a script to make this process automated.
|
/bionic/tools/ |
D | generate-version-script.py | 25 fout.write(line)
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vdprintf.c | 47 return (write(*fdp, buf, n)); in __dwrite()
|
/bionic/libc/async_safe/ |
D | README.md | 7 beneficial to have this lock-free and therefore async_safe mechanism to write to logd, connecting
|