Home
last modified time | relevance | path

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

/system/libvintf/
DFileSystem.cpp31 int saved_errno = errno; in fetch() local
33 *error = "Cannot read " + path + ": " + strerror(saved_errno); in fetch()
35 return saved_errno == 0 ? UNKNOWN_ERROR : -saved_errno; in fetch()
44 int saved_errno = errno; in listFiles() local
46 *error = "Cannot open " + path + ": " + strerror(saved_errno); in listFiles()
48 return saved_errno == 0 ? UNKNOWN_ERROR : -saved_errno; in listFiles()
57 int saved_errno = errno; in listFiles() local
58 if (saved_errno != 0) { in listFiles()
60 *error = "Failed while reading directory " + path + ": " + strerror(saved_errno); in listFiles()
63 return -saved_errno; in listFiles()
/system/core/libcutils/
Dnative_handle.cpp88 int saved_errno = errno; in native_handle_close() local
93 errno = saved_errno; in native_handle_close()
Dproperties.cpp61 int saved_errno = errno; in property_get_int() local
69 errno = saved_errno; in property_get_int()
Dstr_parms.cpp215 int saved_errno = errno; in str_parms_add_str() local
250 errno = saved_errno; in str_parms_add_str()
/system/apex/apexd/
Dapexd_prepostinstall.cpp124 int saved_errno = errno; in StageFnInstall() local
125 if (saved_errno != EEXIST) { in StageFnInstall()
127 << strerror(saved_errno); in StageFnInstall()
Dapexd_loop.cpp156 int saved_errno = errno; in createLoopDevice() local
160 return Error(saved_errno) << "Failed to open " << target; in createLoopDevice()
Dapexservice_test.cpp379 int saved_errno = errno; in Prepare() local
380 ASSERT_EQ(saved_errno, EEXIST) << trg << ":" << strerror(saved_errno); in Prepare()
/system/extras/multinetwork/
Dhttpurl.cpp201 const int saved_errno = errno; in doHttpQuery() local
202 std::cerr << "Failed to recv; errno=" << saved_errno in doHttpQuery()
203 << " [" << strerror(saved_errno) << "]" in doHttpQuery()
/system/libbase/
Dutf8.cpp138 const int saved_errno = errno; in UTF8ToWide() local
143 errno = saved_errno; in UTF8ToWide()
Dfile.cpp263 int saved_errno = errno; in CleanUpAfterFailedWrite() local
265 errno = saved_errno; in CleanUpAfterFailedWrite()
/system/extras/simpleperf/
Dworkload.cpp143 int saved_errno = errno; in ChildProcessFn() local
147 errno = saved_errno; in ChildProcessFn()
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp704 int saved_errno = errno; in Open() local
707 return FiemapStatus::FromErrno(saved_errno); in Open()
720 int saved_errno = errno; in Open() local
723 return FiemapStatus::FromErrno(saved_errno); in Open()
728 int saved_errno = errno; in Open() local
731 return FiemapStatus::FromErrno(saved_errno); in Open()
/system/core/libnetutils/
Difc_utils.c264 int saved_errno; in ifc_act_on_address() local
341 saved_errno = errno; in ifc_act_on_address()
343 return -saved_errno; in ifc_act_on_address()
348 saved_errno = errno; in ifc_act_on_address()
351 return -saved_errno; in ifc_act_on_address()
/system/core/init/
Dpersistent_properties.cpp191 int saved_errno = errno; in WritePersistentPropertyFile() local
193 return Error(saved_errno) << "Unable to rename persistent property file"; in WritePersistentPropertyFile()
Dutil.cpp707 int saved_errno = errno; in SetStdioToDevNull() local
709 errno = saved_errno; in SetStdioToDevNull()
/system/core/adb/
Dadb_utils.cpp148 const int saved_errno = errno; in mkdirs() local
154 errno = saved_errno; in mkdirs()
Dsysdeps_win32.cpp225 const int saved_errno = errno; in operator ()() local
227 errno = saved_errno; in operator ()()
2492 const int saved_errno = errno; in _console_write_utf8() local
2546 errno = saved_errno; in _console_write_utf8()
2558 const int saved_errno = errno; in _console_vfprintf() local
2568 errno = saved_errno; in _console_vfprintf()
Dadb.cpp936 int saved_errno = errno; in launch_server()
939 fprintf(stderr, "could not read ok from ADB Server, errno = %d\n", saved_errno); in launch_server()
/system/core/adb/client/
Dusb_linux.cpp375 int saved_errno = errno; in usb_bulk_read() local
384 if (saved_errno == EINTR) { in usb_bulk_read()
388 errno = saved_errno; in usb_bulk_read()
/system/core/adb/daemon/
Dshell_service.cpp525 int saved_errno = errno; in OpenPtyChildFd() local
527 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd()
533 int saved_errno = errno; in OpenPtyChildFd() local
535 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd()
/system/core/libprocessgroup/
Dprocessgroup.cpp221 int saved_errno = errno; in MkdirAndChown() local
223 errno = saved_errno; in MkdirAndChown()
/system/extras/partition_tools/
Dlpadd.cc75 int saved_errno = errno; in GetTemporaryDir() local
78 << strerror(saved_errno) << std::endl; in GetTemporaryDir()
/system/iorap/src/perfetto/
Drx_producer.cc549 int saved_errno = errno; in CleanUpAfterFailedWrite() local
551 errno = saved_errno; in CleanUpAfterFailedWrite()
/system/bt/btif/src/
Dbtif_sock_l2cap.cc976 int saved_errno = errno; in flush_incoming_que_on_wr_signal_l() local
988 return saved_errno == EWOULDBLOCK || saved_errno == EAGAIN; in flush_incoming_que_on_wr_signal_l()
/system/core/debuggerd/
Ddebuggerd_test.cpp84 int saved_errno = errno; \
89 errno = saved_errno; \