Searched refs:write (Results 1 - 25 of 47) sorted by relevance

12

/bionic/libc/bionic/
H A Deventfd_write.cpp33 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1;
H A Dbionic_systrace.cpp64 // If bionic tracing has been enabled, then write the message to the
71 // So the write is acceptable to fail. See b/20666100.
72 TEMP_FAILURE_RETRY(write(trace_marker_fd, buf, len));
85 TEMP_FAILURE_RETRY(write(trace_marker_fd, "E", 1));
H A Dpthread_internal.cpp45 template <bool write> class ScopedRWLock {
48 (write ? pthread_rwlock_wrlock : pthread_rwlock_rdlock)(rwlock_);
H A Dpthread_setname_np.cpp97 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len));
/bionic/libc/arch-arm/syscalls/
H A Dwrite.S5 ENTRY(write) function
16 END(write)
/bionic/libc/arch-arm64/syscalls/
H A Dwrite.S5 ENTRY(write) function
14 END(write)
/bionic/libc/arch-mips/syscalls/
H A Dwrite.S5 ENTRY(write) function
19 END(write)
/bionic/libc/arch-x86_64/syscalls/
H A Dwrite.S5 ENTRY(write) function
15 END(write)
/bionic/libc/arch-mips64/syscalls/
H A Dwrite.S5 ENTRY(write) function
25 END(write)
/bionic/tests/libs/
H A Dpreinit_syscall_test_helper.cpp29 g_result = write(-1, "", 1);
/bionic/libc/tools/
H A Dcheck-symbols.py13 sys.stderr.write('Checking symbols for arch "%s"...\n' % arch)
35 #sys.stdout.write('%d %s in %s for %s\n' % (len(symbols), functions_or_variables, library, arch))
70 sys.stderr.write('%d missing %s in %s for %s:\n' % (len(missing), functions_or_variables, library, arch))
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, arch))
78 sys.stderr.write(' %s\n' % s)
H A Dgenversion-scripts.py55 fout.write("# %s\n" % warning)
62 fout.write(line)
H A Dgensyscalls.py560 # and write out equivalent SYS_* constants for glibc source compatibility.
565 glibc_fp.write("/* %s */\n" % warning)
566 glibc_fp.write("#ifndef _BIONIC_BITS_GLIBC_SYSCALLS_H_\n")
567 glibc_fp.write("#define _BIONIC_BITS_GLIBC_SYSCALLS_H_\n")
593 glibc_fp.write("#if defined(%s)\n" % nr_name)
594 glibc_fp.write(" #define SYS_%s %s\n" % (syscall, nr_name))
595 glibc_fp.write("#endif\n")
597 glibc_fp.write("#endif /* _BIONIC_BITS_GLIBC_SYSCALLS_H_ */\n")
610 fp.write(syscall["asm-%s" % arch])
H A Dgenseccomp.py52 cpp.stdin.write("#include <asm/unistd.h>\n")
55 # with __ARM__NR_. These we must simply write out as is.
57 cpp.stdin.write(prefix + name + ", __NR_" + name + "\n")
59 cpp.stdin.write(prefix + name + ", " + name + "\n")
247 output_file.write(output)
/bionic/libc/arch-x86/syscalls/
H A Dwrite.S5 ENTRY(write) function
39 END(write)
/bionic/libc/kernel/tools/
H A Dclean_header.py79 sys.stderr.write("warning: " + msg)
121 out.write(kernel_disclaimer)
122 blocks.write(out)
151 sys.stderr.write("error: unrecognized option\n")
H A Dutils.py11 sys.stderr.write(os.path.basename(sys.argv[0]) + ": error: ")
12 sys.stderr.write(msg)
48 def write(self,msg): member in class:StringOutput
50 logging.debug("write '%s'" % msg)
135 f.write(self.new_data[dst])
/bionic/tests/
H A Dsys_mman_test.cpp60 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG)));
74 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG)));
103 ASSERT_EQ(STR_SSIZE(PAGE0_MSG), write(tf.fd, PAGE0_MSG, sizeof(PAGE0_MSG)));
105 ASSERT_EQ(STR_SSIZE(PAGE1_MSG), write(tf.fd, PAGE1_MSG, sizeof(PAGE1_MSG)));
107 ASSERT_EQ(STR_SSIZE(PAGE2_MSG), write(tf.fd, PAGE2_MSG, sizeof(PAGE2_MSG)));
109 ASSERT_EQ(STR_SSIZE(END_MSG), write(tf.fd, END_MSG, sizeof(END_MSG)));
139 ASSERT_EQ(STR_SSIZE(PAGE0_MSG), write(tf.fd, PAGE0_MSG, sizeof(PAGE0_MSG)));
141 ASSERT_EQ(STR_SSIZE(PAGE1_MSG), write(tf.fd, PAGE1_MSG, sizeof(PAGE1_MSG)));
143 ASSERT_EQ(STR_SSIZE(PAGE2_MSG), write(tf.fd, PAGE2_MSG, sizeof(PAGE2_MSG)));
145 ASSERT_EQ(STR_SSIZE(END_MSG), write(t
[all...]
H A Dsys_sendfile_test.cpp28 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5)));
47 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5)));
H A Dgrp_pwd_file_test.cpp95 write(file.fd, test_string, sizeof(test_string) - 1);
115 write(file.fd, test_string, sizeof(test_string) - 1);
151 write(file.fd, test_string, sizeof(test_string) - 1);
187 write(file.fd, test_string, sizeof(test_string) - 1);
211 write(file.fd, test_string, sizeof(test_string) - 1);
233 write(file.fd, test_string, sizeof(test_string) - 1);
/bionic/libc/malloc_hooks/tests/
H A Dmalloc_hooks_tests.cpp234 write(0, ptr, 0);
253 write(0, ptr, 0);
272 write(0, ptr, 0);
290 write(0, ptr, 0);
309 write(0, ptr, 0);
326 write(0, ptr, 0);
346 write(0, ptr, 0);
364 write(0, ptr, 0);
386 write(0, ptr, 0);
406 write(
[all...]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dvdprintf.c47 return (write(*fdp, buf, n));
/bionic/linker/
H A Dlinker_debug.h70 if (g_ld_debug_verbosity > (v)) { async_safe_format_fd(1, x); write(1, "\n", 1); } \
/bionic/libc/include/bits/fortify/
H A Dunistd.h163 ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count)
165 __error_if_overflows_ssizet(count, write)
166 __error_if_overflows_objectsize(count, __bos0(buf), write) {
170 return __call_bypassing_fortify(write)(fd, buf, count);
214 ssize_t __write_real(int, const void*, size_t) __RENAME(write); variable
229 __errordecl(__write_dest_size_error, "write called with size bigger than destination");
230 __errordecl(__write_count_toobig_error, "write called with count > SSIZE_MAX");
380 ssize_t write(int fd, const void* buf, size_t count) { function
/bionic/tools/versioner/current/bits/fortify/
H A Dunistd.h163 ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count)
165 __error_if_overflows_ssizet(count, write)
166 __error_if_overflows_objectsize(count, __bos0(buf), write) {
170 return __call_bypassing_fortify(write)(fd, buf, count);
214 ssize_t __write_real(int, const void*, size_t) __RENAME(write); variable
229 __errordecl(__write_dest_size_error, "write called with size bigger than destination");
230 __errordecl(__write_count_toobig_error, "write called with count > SSIZE_MAX");
380 ssize_t write(int fd, const void* buf, size_t count) { function

Completed in 407 milliseconds

12