Home
last modified time | relevance | path

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

12345

/bionic/tests/
Dsys_ptrace_test.cpp119 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -1, &address)) << strerror(errno); in set_watchpoint()
120 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -2, &control)) << strerror(errno); in set_watchpoint()
131 ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, child, NT_ARM_HW_WATCH, &iov)) << strerror(errno); in set_watchpoint()
134 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[0]), address)) << strerror(e… in set_watchpoint()
147 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[7]), data)) << strerror(errn… in set_watchpoint()
160 ASSERT_NE(-1, child) << strerror(errno); in run_watchpoint_test()
180 ASSERT_EQ(child, TEMP_FAILURE_RETRY(waitpid(child, &status, __WALL))) << strerror(errno); in run_watchpoint_test()
191 ASSERT_EQ(0, ptrace(PTRACE_CONT, child, nullptr, nullptr)) << strerror(errno); in run_watchpoint_test()
192 ASSERT_EQ(child, TEMP_FAILURE_RETRY(waitpid(child, &status, __WALL))) << strerror(errno); in run_watchpoint_test()
197 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()
201 GTEST_LOG_(ERROR) << "sendmmsg call failed: " << strerror(errno); in SendMMsg()
[all …]
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()
Dsys_epoll_test.cpp29 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
58 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
Difaddrs_test.cpp125 ASSERT_EQ(0, ioctl(fd, SIOCGIFFLAGS, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet()
129 ASSERT_EQ(0, ioctl(fd, request, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet()
282 ASSERT_EQ(0, getifaddrs(&addrs)) << strerror(errno); in TEST()
Dsys_signalfd_test.cpp42 ASSERT_NE(-1, fd) << strerror(errno); in TestSignalFd()
/bionic/libc/bionic/
Dandroid_profiling_dynamic.cpp130 … async_safe_format_log(ANDROID_LOG_ERROR, "libc", "failed to create socket: %s", strerror(errno)); in HandleTracedPerfSignal()
138 strerror(errno)); in HandleTracedPerfSignal()
145 strerror(errno)); in HandleTracedPerfSignal()
151 strerror(errno)); in HandleTracedPerfSignal()
175 async_safe_format_log(ANDROID_LOG_ERROR, "libc", "failed to sendmsg: %s", strerror(errno)); in HandleTracedPerfSignal()
Dpthread_create.cpp160 "pthread_create sched_getscheduler failed: %s", strerror(errno)); in __init_thread()
165 "pthread_create sched_getparam failed: %s", strerror(errno)); in __init_thread()
182 param.sched_priority, strerror(errno)); in __init_thread()
221 mmap_size, strerror(errno)); in __allocate_thread_mapping()
230 writable_size, strerror(errno)); in __allocate_thread_mapping()
424 strerror(clone_errno)); in pthread_create()
Dpthread_attr.cpp160 async_safe_fatal("couldn't open /proc/self/stat: %s", strerror(errno)); in __get_main_stack_startstack()
165 async_safe_fatal("couldn't read /proc/self/stat: %s", strerror(errno)); in __get_main_stack_startstack()
207 async_safe_fatal("couldn't open /proc/self/maps: %s", strerror(errno)); in __pthread_attr_getstack_main_thread()
Dsystem_property_set.cpp278 errno, strerror(errno)); in __system_property_set()
287 key, value, errno, strerror(errno)); in __system_property_set()
296 key, value, errno, strerror(errno)); in __system_property_set()
Dlibc_init_common.cpp306 async_safe_fatal("error getting old personality value: %s", strerror(errno)); in __initialize_personality()
310 async_safe_fatal("error setting PER_LINUX32 personality: %s", strerror(errno)); in __initialize_personality()
Dstring_l.cpp37 return strerror(error); in strerror_l()
Datexit.cpp164 async_safe_fatal("mprotect failed on atexit array: %s", strerror(errno)); in set_writable()
183 new_capacity_bytes, strerror(errno)); in expand_capacity()
/bionic/libc/tzcode/
Dbionic.cpp126 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
138 …fprintf(stderr, "%s: couldn't seek to index in \"%s\": %s\n", __FUNCTION__, path, strerror(errno)); in __bionic_open_tzdata_path()
164 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
198 __FUNCTION__, specific_zone_offset, path, strerror(errno)); in __bionic_open_tzdata_path()
/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()
/bionic/libc/malloc_debug/
DRecordData.cpp144 error_log("Failed to write record alloc information: %s", strerror(errno)); in Dump()
161 error_log("Cannot create record alloc file %s: %s", dump_file_.c_str(), strerror(errno)); in Dump()
179 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()
/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/linker/
Dlinker_phdr.cpp189 DL_ERR("can't read file \"%s\": %s", name_.c_str(), strerror(errno)); in ReadElfHeader()
331 DL_ERR("\"%s\" phdr mmap failed: %s", name_.c_str(), strerror(errno)); in ReadProgramHeaders()
357 DL_ERR("\"%s\" shdr mmap failed: %s", name_.c_str(), strerror(errno)); in ReadSectionHeaders()
450 DL_ERR("\"%s\" dynamic section mmap failed: %s", name_.c_str(), strerror(errno)); in ReadDynamicSection()
463 DL_ERR("\"%s\" strtab section mmap failed: %s", name_.c_str(), strerror(errno)); in ReadDynamicSection()
698 DL_ERR("couldn't map \"%s\" segment %zd: %s", name_.c_str(), i, strerror(errno)); in LoadSegments()
724 DL_ERR("couldn't zero fill \"%s\" gap: %s", name_.c_str(), strerror(errno)); in LoadSegments()
Dlinker_utils.cpp220 DL_WARN("Warning: cannot stat file \"%s\": %s (ignoring)", resolved_path, strerror(errno)); in resolve_path()
240 zip_path.c_str(), strerror(errno)); in resolve_path()
/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)

12345