Home
last modified time | relevance | path

Searched refs:saved_errno (Results 1 – 24 of 24) 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()
DVintfFm.cpp78 int saved_errno = errno; in write() local
80 *error = "Can't write to " + path + ": " + strerror(saved_errno); in write()
82 return saved_errno == 0 ? UNKNOWN_ERROR : -saved_errno; in write()
88 int saved_errno = errno; in deleteFile() local
90 *error = "Can't unlink " + path + ": " + strerror(saved_errno); in deleteFile()
92 return saved_errno == 0 ? UNKNOWN_ERROR : -saved_errno; in deleteFile()
/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()
Dashmem-dev.cpp217 int saved_errno = errno; in __ashmem_open_locked() local
223 ashmem_device_path.c_str(), strerror(saved_errno), strerror(errno)); in __ashmem_open_locked()
/system/extras/multinetwork/
Dhttpurl.cpp212 const int saved_errno = errno; in doHttpQuery() local
213 std::cerr << "Failed to recv; errno=" << saved_errno in doHttpQuery()
214 << " [" << 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.cpp729 int saved_errno = errno; in SetStdioToDevNull() local
731 errno = saved_errno; in SetStdioToDevNull()
/system/apex/apexd/
Dapexd_loop.cpp193 int saved_errno = errno; in ConfigureLoopDevice() local
199 return Error(saved_errno) << "Failed to open " << target; in ConfigureLoopDevice()
Dapexservice_test.cpp382 int saved_errno = errno; in Prepare() local
383 ASSERT_EQ(saved_errno, EEXIST) << trg << ":" << strerror(saved_errno); in Prepare()
3057 int saved_errno = errno; in SetUp() local
3058 ASSERT_EQ(saved_errno, EEXIST) in SetUp()
3059 << kTempPrebuiltDir << ":" << strerror(saved_errno); in SetUp()
/system/bpf/libbpf_android/
DLoader.cpp542 int saved_errno; in createMaps() local
546 saved_errno = errno; in createMaps()
573 saved_errno = errno; in createMaps()
577 if (fd < 0) return -saved_errno; in createMaps()
/system/extras/partition_tools/
Dlpadd.cc75 int saved_errno = errno; in GetTemporaryDir() local
78 << strerror(saved_errno) << std::endl; in GetTemporaryDir()
/system/core/libprocessgroup/
Dprocessgroup.cpp263 int saved_errno = errno; in MkdirAndChown()
265 errno = saved_errno; in MkdirAndChown()
/system/bt/btif/src/
Dbtif_sock_l2cap.cc813 int saved_errno = errno; in flush_incoming_que_on_wr_signal_l() local
825 return saved_errno == EWOULDBLOCK || saved_errno == EAGAIN; in flush_incoming_que_on_wr_signal_l()
/system/iorap/src/perfetto/
Drx_producer.cc572 int saved_errno = errno; in CleanUpAfterFailedWrite() local
574 errno = saved_errno; in CleanUpAfterFailedWrite()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp139 auto saved_errno = errno; in fs_mgr_is_dsu_running() local
141 errno = saved_errno; in fs_mgr_is_dsu_running()
Dfs_mgr.cpp2270 auto saved_errno = errno; in fs_mgr_create_canonical_mount_point() local
2285 errno = saved_errno; in fs_mgr_create_canonical_mount_point()
/system/core/debuggerd/
Ddebuggerd_test.cpp90 int saved_errno = errno; \
95 errno = saved_errno; \