Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 68) sorted by relevance

123

/bionic/benchmarks/linker_relocation/regen/
Dgen_bench.py182 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/
Dcheck-symbols.py13 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/
Dmalloc_hooks_tests.cpp231 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/
Dsys_mman_test.cpp60 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 …]
Dgrp_pwd_file_test.cpp95 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()
Dsys_sendfile_test.cpp29 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()
Dclang_fortify_tests.cpp559 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()
Dsys_epoll_test.cpp72 ASSERT_EQ(1, write(fds[1], "\n", 1)); in TEST()
/bionic/libc/kernel/tools/
Dclean_header.py79 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)
Dutils.py11 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/
DScopedRWLock.h35 template <bool write> class ScopedRWLock {
38 (write ? pthread_rwlock_wrlock : pthread_rwlock_rdlock)(rwlock_); in ScopedRWLock()
DMallocXmlElem.h34 write(fd_, " ", 1); in fd_()
38 write(fd_, ">", 1); in fd_()
/bionic/libc/bionic/
Dbionic_systrace.cpp76 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()
Deventfd.cpp45 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1; in eventfd_write()
Dpthread_setname_np.cpp101 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); in pthread_setname_np()
/bionic/libc/include/bits/fortify/
Dunistd.h166 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/
Dfdsan.md21 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/
Dpreinit_syscall_test_helper.cpp29 g_result = write(-1, "", 1); in preinit_ctor()
/bionic/linker/
Dlinker_debug.cpp38 write(STDOUT_FILENO, "\n", 1); in linker_log_va_list()
/bionic/libc/upstream-freebsd/
DREADME.md5 TODO: write a script to make this process automated.
/bionic/libc/upstream-openbsd/
DREADME.md5 TODO: write a script to make this process automated.
/bionic/libc/upstream-netbsd/
DREADME.md5 TODO: write a script to make this process automated.
/bionic/tools/
Dgenerate-version-script.py25 fout.write(line)
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvdprintf.c47 return (write(*fdp, buf, n)); in __dwrite()
/bionic/libc/async_safe/
DREADME.md7 beneficial to have this lock-free and therefore async_safe mechanism to write to logd, connecting

123