Home
last modified time | relevance | path

Searched refs:strerror (Results 1 – 25 of 102) sorted by relevance

12345

/bionic/tests/
Dsys_ptrace_test.cpp121 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -1, &address)) << strerror(errno); in set_watchpoint()
122 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -2, &control)) << strerror(errno); in set_watchpoint()
133 ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, child, NT_ARM_HW_WATCH, &iov)) << strerror(errno); in set_watchpoint()
136 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[0]), address)) << strerror(e… in set_watchpoint()
149 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[7]), data)) << strerror(errn… in set_watchpoint()
162 ASSERT_NE(-1, child) << strerror(errno); in run_watchpoint_test()
182 ASSERT_EQ(child, TEMP_FAILURE_RETRY(waitpid(child, &status, __WALL))) << strerror(errno); in run_watchpoint_test()
193 ASSERT_EQ(0, ptrace(PTRACE_CONT, child, nullptr, nullptr)) << strerror(errno); in run_watchpoint_test()
194 ASSERT_EQ(child, TEMP_FAILURE_RETRY(waitpid(child, &status, __WALL))) << strerror(errno); in run_watchpoint_test()
199 ASSERT_EQ(0, ptrace(PTRACE_GETSIGINFO, child, nullptr, &siginfo)) << strerror(errno); in run_watchpoint_test()
[all …]
Dsys_socket_test.cpp41 GTEST_LOG_(ERROR) << "socket call failed: " << strerror(errno); in ConnectFn()
52 GTEST_LOG_(ERROR) << "connect call failed: " << strerror(errno); in ConnectFn()
67 ASSERT_NE(fd, -1) << strerror(errno); in RunTest()
75 …ASSERT_NE(-1, bind(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr))) << strerror(errno… in RunTest()
77 ASSERT_NE(-1, listen(fd, 1)) << strerror(errno); in RunTest()
109 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestAccept4()
131 GTEST_LOG_(ERROR) << "send call failed: " << strerror(errno); in SendMultiple()
142 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestRecvMMsg()
164 << strerror(errno); in TestRecvMMsg()
204 GTEST_LOG_(ERROR) << "sendmmsg call failed: " << strerror(errno); in SendMMsg()
[all …]
Dpidfd_test.cpp49 ASSERT_NE(-1, pidfd.get()) << strerror(errno); in TEST()
68 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST()
72 ASSERT_NE(-1, dup.get()) << strerror(errno); in TEST()
86 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST_F()
90 ASSERT_EQ(0, rc) << strerror(errno); in TEST_F()
Dsys_epoll_test.cpp68 ASSERT_EQ(0, rc) << strerror(errno); in TEST()
98 ASSERT_EQ(0, rc) << strerror(errno); in TEST()
116 ASSERT_EQ(0, rc) << strerror(errno); in TEST()
130 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
Dsys_uio_test.cpp84 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2()
88 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
91 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2()
93 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
Dpthread_dlfcn_test.cpp61 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
78 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
104 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
Ddlfcn_symlink_support.cpp72 ASSERT_TRUE(symlink(source_file_path.c_str(), link_path.c_str()) == 0) << strerror(errno); in create_dlfcn_test_symlink()
77 ASSERT_TRUE(unlink(path.c_str()) == 0) << strerror(errno); in remove_dlfcn_test_symlink()
Dfdtrack_test.cpp203 ASSERT_NE(-1, fd) << strerror(errno); \
239 ASSERT_NE(-1, rc) << strerror(errno);
247 ASSERT_NE(-1, pidfd_self) << strerror(errno);
253 ASSERT_NE(-1, rc) << strerror(errno);
310 CHECK_NE(-1, bind(listener, reinterpret_cast<sockaddr*>(&addr), addrlen)) << strerror(errno); in CreateListener()
Dsys_signalfd_test.cpp42 ASSERT_NE(-1, fd) << strerror(errno); in TestSignalFd()
/bionic/benchmarks/spawn/
Dspawn_benchmark.cpp47 "posix_spawn of %s failed: %s", argv[0], strerror(spawn_err)).c_str()); in BM_spawn_test()
56 static_cast<int>(child), argv[0], strerror(errno)).c_str()); in BM_spawn_test()
/bionic/benchmarks/
Dunistd_benchmark.cpp52 std::string err = android::base::StringPrintf("Fork failed: %s", strerror(errno)); in BM_unistd_fork_call()
58 std::string err = android::base::StringPrintf("waitpid call failed: %s", strerror(errno)); in BM_unistd_fork_call()
Dsyscall_mm_benchmark.cpp54 state.SkipWithError(android::base::StringPrintf("mmap failed: %s", strerror(errno)).c_str()); in MmapBenchmarkImpl()
68 android::base::StringPrintf("munmap failed: %s", strerror(errno)).c_str()); in MmapBenchmarkImpl()
91 state.SkipWithError(android::base::StringPrintf("mmap failed: %s", strerror(errno)).c_str()); in MmapFixedBenchmark()
98 state.SkipWithError(android::base::StringPrintf("munmap failed: %s", strerror(errno)).c_str()); in MmapFixedBenchmark()
109 android::base::StringPrintf("failed to create a temporary file: %s", strerror(errno)) in MmapFileBenchmark()
116 android::base::StringPrintf("ftruncate failed: %s", strerror(errno)).c_str()); in MmapFileBenchmark()
269 state.SkipWithError(android::base::StringPrintf("mmap failed: %s", strerror(errno)).c_str()); in MadviseBenchmark()
283 state.SkipWithError(android::base::StringPrintf("munmap failed: %s", strerror(errno)).c_str()); in MadviseBenchmark()
/bionic/linker/
Dlinker_crt_pad_segment_test.cpp59 EXPECT_GE(fd.get(), 0) << "Failed to open " << path << ": " << strerror(errno); in GetPadSegment()
63 << "Failed to stat " << path << ": " << strerror(errno); in GetPadSegment()
/bionic/libc/tzcode/
Dbionic.cpp145 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
157 …fprintf(stderr, "%s: couldn't seek to index in \"%s\": %s\n", __FUNCTION__, path, strerror(errno)); in __bionic_open_tzdata_path()
183 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
229 __FUNCTION__, specific_zone_offset, path, strerror(errno)); in __bionic_open_tzdata_path()
/bionic/libc/malloc_debug/
DRecordData.cpp144 error_log("Cannot create record alloc file %s: %s", dump_file_.c_str(), strerror(errno)); in WriteEntries()
150 error_log("Failed to write record alloc information: %s", strerror(errno)); in WriteEntries()
170 error_log("Unable to set up record dump signal function: %s", strerror(errno)); in Initialize()
Ddebug_disable.cpp47 error_log("pthread_key_create failed: %s", strerror(error)); in DebugDisableInitialize()
DLogAllocatorStats.cpp61 error_log("Unable to set up log allocator stats signal function: %s", strerror(errno)); in Initialize()
DUnreachable.cpp70 error_log("Unable to set up check unreachable signal function: %s", strerror(errno)); in Initialize()
/bionic/libc/bionic/
Dstring_l.cpp37 return strerror(error); in strerror_l()
Dstrerror.cpp93 char* strerror(int error_number) { in strerror() function
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dvwarn.c49 (void)fprintf(stderr, "%s\n", strerror(sverrno)); in vwarn()
Dverr.c49 (void)fprintf(stderr, "%s\n", strerror(sverrno)); in verr()
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h40 async_safe_fatal("getentropy failed: %s", strerror(errno)); in _getentropy_fail()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_150.S30 CALL(strerror)
/bionic/libc/private/
DWriteProtected.h93 async_safe_fatal("WriteProtected mprotect %x failed: %s", prot, strerror(errno)); in set_protection()

12345