/base/startup/init/services/init/standard/ |
H A D | device.c | 18 #include <errno.h> 35 INIT_LOGE("Mount tmpfs failed. %s", strerror(errno)); in MountBasicFs() 41 INIT_LOGE("Mount tmpfs failed. %s", strerror(errno)); in MountBasicFs() 44 INIT_LOGE("Mount tmpfs slave failed. %s", strerror(errno)); in MountBasicFs() 47 INIT_LOGE("mkdir /mnt/data failed. %s", strerror(errno)); in MountBasicFs() 50 INIT_LOGE("Mount tmpfs failed. %s", strerror(errno)); in MountBasicFs() 53 INIT_LOGE("Mount tmpfs shared failed. %s", strerror(errno)); in MountBasicFs() 56 INIT_LOGE("Mount storage failed. %s", strerror(errno)); in MountBasicFs() 61 INIT_LOGE("mkdir /dev/pts failed. %s", strerror(errno)); in MountBasicFs() 64 INIT_LOGE("Mount devpts failed. %s", strerror(errno)); in MountBasicFs() [all...] |
/base/update/updater/interfaces/kits/misc_info/ |
H A D | misc_info.cpp | 28 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno);
in WriteUpdaterMessage() 34 LOG(ERROR) << "WriteUpdaterMessage fopen failed" << " : " << strerror(errno);
in WriteUpdaterMessage() 40 LOG(ERROR) << "WriteUpdaterMessage fwrite failed" << " : " << strerror(errno);
in WriteUpdaterMessage() 45 LOG(ERROR) << "WriteUpdaterMessage fsync failed" << " : " << strerror(errno);
in WriteUpdaterMessage() 50 LOG(ERROR) << "WriteUpdaterMessage fclose failed" << " : " << strerror(errno);
in WriteUpdaterMessage() 60 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno);
in ReadUpdaterMessage() 66 LOG(ERROR) << "ReadUpdaterMessage fopen failed" << " : " << strerror(errno);
in ReadUpdaterMessage() 73 LOG(ERROR) << "ReadUpdaterMessage fwrite failed" << " : " << strerror(errno);
in ReadUpdaterMessage() 80 LOG(ERROR) << "ReadUpdaterMessage fclose failed" << " : " << strerror(errno);
in ReadUpdaterMessage() 84 LOG(ERROR) << "ReadUpdaterMessage memcpy failed" << " : " << strerror(errno);
in ReadUpdaterMessage() [all...] |
/base/startup/init/services/init/adapter/ |
H A D | init_adapter.c | 17 #include <errno.h>
36 INIT_LOGE("prctl PR_SET_SECUREBITS failed: %d", errno);
in KeepCapability() 44 INIT_LOGE("prctl PR_SET_SECUREBITS failed: %d", errno);
in KeepCapability() 50 INIT_LOGE("prctl PR_SET_SECUREBITS failed: %d", errno);
in KeepCapability() 62 INIT_LOGE("prctl PR_CAP_AMBIENT failed: %d", errno);
in SetAmbientCapability() 82 INIT_LOGE("CheckWaitPid, sem_post failed, errno %d.", errno);
in CheckWaitPid() 100 INIT_LOGE("ExecuteRcs, fork failed! err %d.", errno);
in SystemExecuteRcs() 108 INIT_LOGE("ExecuteRcs, execle failed! err %d.", errno);
in SystemExecuteRcs() 116 INIT_LOGE("ExecuteRcs, sem_init failed, err %d.", errno);
in SystemExecuteRcs() [all...] |
/base/startup/init/interfaces/innerkits/file/ |
H A D | init_file.c | 18 #include <errno.h> 36 return -1, "Failed snprintf_s err=%d", errno); in GetControlFile() 41 BEGET_ERROR_CHECK(val != NULL, return -1, "Failed getenv err=%d", errno); in GetControlFile() 42 errno = 0; in GetControlFile() 44 BEGET_ERROR_CHECK(errno == 0, return -1, "Failed strtol val"); in GetControlFile() 46 BEGET_ERROR_CHECK(fcntl(fd, F_GETFD) >= 0, return -1, "Failed fcntl fd err=%d ", errno); in GetControlFile()
|
/base/update/updater/services/applypatch/ |
H A D | partition_record.cpp | 37 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno); in IsPartitionUpdated() 43 LOG(ERROR) << "PartitionRecord: Open misc to recording partition failed" << " : " << strerror(errno); in IsPartitionUpdated() 47 LOG(ERROR) << "PartitionRecord: Seek misc to specific offset failed" << " : " << strerror(errno); in IsPartitionUpdated() 52 LOG(ERROR) << "PartitionRecord: Read from misc partition failed" << " : " << strerror(errno); in IsPartitionUpdated() 76 LOG(ERROR) << "PartitionRecord: Seek misc to record offset failed: " << strerror(errno); in RecordPartitionSetOffset() 80 LOG(ERROR) << "PartitionRecord: Read offset failed: " << strerror(errno); in RecordPartitionSetOffset() 85 LOG(ERROR) << "PartitionRecord: Seek misc to specific offset failed: " << strerror(errno); in RecordPartitionSetOffset() 95 LOG(ERROR) << "PartitionRecord: strncpy_s failed: " << strerror(errno); in RecordPartitionSetInfo() 100 LOG(ERROR) << "PartitionRecord: write failed: " << strerror(errno); in RecordPartitionSetInfo() 105 LOG(ERROR) << "PartitionRecord: Seek misc to record offset failed: " << strerror(errno); in RecordPartitionSetInfo() [all...] |
/base/startup/init/interfaces/innerkits/socket/ |
H A D | init_socket.c | 17 #include <errno.h> 33 errno = 0; in GetControlFromEnv() 35 BEGET_ERROR_CHECK(errno == 0, return -1, "Failed strtol err=%d", errno); in GetControlFromEnv() 36 BEGET_ERROR_CHECK(fcntl(fd, F_GETFD) >= 0, return -1, "Failed fcntl err=%d ", errno); in GetControlFromEnv() 51 BEGET_ERROR_CHECK(ret == 0, return -1, "Get socket option fail, err=%d ", errno); in GetControlSocket() 58 BEGET_ERROR_CHECK(ret >= 0, return -1, "Failed getsockname err=%d ", errno); in GetControlSocket()
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
H A D | file_operator.cpp | 46 DLP_LOG_INFO(LABEL, "dir not exist, str = %{public}s errCode %{public}d.", str.c_str(), errno); in InputFileByPathAndContent() 60 DLP_LOG_INFO(LABEL, "failed to open %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 65 DLP_LOG_INFO(LABEL, "failed to fwrite %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 70 DLP_LOG_INFO(LABEL, "failed to fflush %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 75 DLP_LOG_INFO(LABEL, "failed to fsync %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 83 DLP_LOG_INFO(LABEL, "failed to change mode for file %{public}s, errno in InputFileByPathAndContent() [all...] |
/base/startup/init/services/init/ |
H A D | init_service_file.c | 17 #include <errno.h> 38 INIT_LOGE("Failed realpath err=%d", errno); in CreateFile() 40 return -1, "Failed strncpy_s err=%d", errno); in CreateFile() 48 INIT_ERROR_CHECK(fd >= 0, return -1, "Failed open %s, err=%d ", path, errno); in CreateFile() 50 INIT_CHECK_ONLY_ELOG(chmod(path, file->perm) >= 0, "Failed chmod err=%d", errno); in CreateFile() 51 INIT_CHECK_ONLY_ELOG(chown(path, file->uid, file->gid) >= 0, "Failed chown err=%d", errno); in CreateFile() 61 HOS_FILE_ENV_PREFIX "%s", pathName) >= 0, return -1, "Failed snprintf_s err=%d", errno); in SetFileEnv() 65 "Failed snprintf_s err=%d", errno); in SetFileEnv() 67 INIT_ERROR_CHECK(ret >= 0, return -1, "Failed setenv err=%d ", errno); in SetFileEnv() 81 INIT_LOGE("Service error %d %s, failed to create file", errno, servic in CreateServiceFile() [all...] |
/base/msdp/device_status/frameworks/native/src/ |
H A D | fd_listener.cpp | 46 if (errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK) { in OnReadable() 47 FI_HILOGW("Continue for errno EAGAIN|EINTR|EWOULDBLOCK, size:%{public}zd, errno:%{public}d", in OnReadable() 48 size, errno); in OnReadable() 51 FI_HILOGE("Recv return %{public}zd, errno:%{public}d", size, errno); in OnReadable() 55 "errno:%{public}d", i, errno); in OnReadable() [all...] |
/base/sensors/sensor/frameworks/native/src/ |
H A D | fd_listener.cpp | 55 if (errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK) { in OnReadable() 56 SEN_HILOGW("Continue for errno EAGAIN|EINTR|EWOULDBLOCK, size:%{public}zu, errno:%{public}d", in OnReadable() 57 size, errno); in OnReadable() 60 SEN_HILOGE("Recv return %{public}zu, errno:%{public}d", size, errno); in OnReadable() 63 SEN_HILOGD("The service side disconnect with the client. size:0, count:%{public}zu, errno:%{public}d", in OnReadable() 64 i, errno); in OnReadable() [all...] |
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/ |
H A D | erofs_remount_overlay.c | 32 BEGET_LOGE("read remount.result.done failed errno %d", errno);
in GetRemountResult() 54 if (ret < 0 && errno != EEXIST) {
in SetRemountResultFlag() 55 BEGET_LOGE("mkdir remount path failed errno %d", errno);
in SetRemountResultFlag() 62 BEGET_LOGE("open remount.result.done failed errno %d", errno);
in SetRemountResultFlag() 75 BEGET_LOGE("write buff failed errno %d", errno);
in SetRemountResultFlag() 170 BEGET_LOGE("copy system dirLower failed. errno in MountOverlayOne() [all...] |
/base/startup/appspawn/modules/common/ |
H A D | appspawn_common.c | 81 APPSPAWN_CHECK(!isRet, return EINVAL, "strncpy_s short name error: %{public}d", errno); in SetProcessName() 85 APPSPAWN_CHECK(!isRet, return errno, "prctl(PR_SET_NAME) error: %{public}d", errno); in SetProcessName() 95 "strncpy_s long name error: %{public}d longProcNameLen %{public}u", errno, content->content.longProcNameLen); in SetProcessName() 108 APPSPAWN_CHECK(!isRet, return errno, "set keepcaps failed: %{public}d", errno); in SetKeepCapabilities() 148 APPSPAWN_CHECK(!isRet, return -errno, "Failed to capset errno: %{public}d", errno); in SetCapabilities() 164 "access failed, errno in InitDebugParams() [all...] |
H A D | appspawn_cgroup.c | 16 #include <errno.h> 45 APPSPAWN_CHECK(ret > 0, return ret, "Failed to snprintf_s errno: %{public}d", errno); in GetCgroupPath() 56 "Failed to open file errno: %{public}d path: %{public}s", errno, path); in WriteToFile() 61 APPSPAWN_CHECK(ret > 0, break, "Failed to snprintf_s errno: %{public}d", errno); in WriteToFile() 64 "Failed to write file errno: %{public}d path: %{public}s %{public}s", errno, path, pidName); in WriteToFile() 107 "Failed to open file errno in WritePidMax() [all...] |
/base/account/os_account/frameworks/common/file_operator/src/ |
H A D | account_file_operator.cpp | 57 ACCOUNT_LOGE("failed to create %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 63 ACCOUNT_LOGE("failed to change mode for %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 88 ACCOUNT_LOGE("DeleteDirOrFile failed, path %{public}s errno %{public}d.", path.c_str(), errno); in DeleteDir() 101 ACCOUNT_LOGE("DeleteDirOrFile failed, path %{public}s errno %{public}d.", path.c_str(), errno); in DeleteFile() 161 ACCOUNT_LOGE("Get disk info failed, ret=%{public}d, errno=%{public}d.", ret, errno); in IsDataStorageSufficient() [all...] |
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
H A D | mock_os_account_musl.cpp | 34 errno = 1; in dlclose() 37 errno = 0; in dlclose() 44 if (errno == 0) { in dlerror() 47 errno = 0; in dlerror()
|
/base/security/code_signature/services/key_enable/utils/src/ |
H A D | key_utils.cpp | 40 LOG_ERROR(LABEL, "Add certificate failed, errno = <%{public}d, %{public}s>",
in AddKey() 41 errno, strerror(errno));
in AddKey() 55 LOG_ERROR(LABEL, "Restrict keyring failed, errno = <%{public}d, %{public}s>",
in KeyctlRestrictKeyring() 56 errno, strerror(errno));
in KeyctlRestrictKeyring()
|
H A D | cert_path.cpp | 35 LOG_ERROR(LABEL, "Error opening device, errno = <%{public}d, %{public}s>", errno, strerror(errno)); in IoctlCertPathOperation() 42 LABEL, "%s cert path ioctl error, errno = <%{public}d, %{public}s>", operation, errno, strerror(errno)); in IoctlCertPathOperation()
|
/base/msdp/device_status/services/native/src/ |
H A D | stream_server.cpp | 43 FI_HILOGE("Close epoll fd failed, error:%{public}s, epollFd_:%{public}d", strerror(errno), epollFd_);
in UdsStop() 101 FI_HILOGE("Call socketpair failed, errno:%{public}d", errno);
in AddSocketPairInfo() 107 FI_HILOGE("Call fcntl failed, errno:%{public}d", errno);
in AddSocketPairInfo() 136 FI_HILOGE("setsockopt serverFd failed, errno:%{public}d", errno);
in SetSockOpt() 140 FI_HILOGE("setsockopt serverFd failed, errno:%{public}d", errno);
in SetSockOpt() 145 FI_HILOGE("setsockopt toReturnClientFd failed, errno in SetSockOpt() [all...] |
/base/msdp/device_status/utils/ipc/src/ |
H A D | stream_session.cpp | 63 if (errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK) {
in SendMsg() 65 FI_HILOGW("Continue for errno EAGAIN|EINTR|EWOULDBLOCK, errno:%{public}d", errno);
in SendMsg() 68 FI_HILOGE("Send return failed, error:%{public}d, fd:%{public}d", errno, fd_);
in SendMsg() 91 FI_HILOGE("Close fd failed, error:%{public}s, fd_:%{public}d", strerror(errno), fd_);
in Close()
|
/base/startup/init/services/modules/selinux/ |
H A D | selinux_adp.c | 17 #include <errno.h> 79 PLUGIN_LOGE("Service error %d %s, failed to set secon %s.", errno, argv[0], label); in SetServiceContent() 114 if (RestoreconRecurse(argv[0]) && errno != 0) { in RestoreContentRecurse() 115 PLUGIN_LOGE("restoreContentRecurse failed for '%s', err %d.", argv[0], errno); in RestoreContentRecurse() 124 if (RestoreconRecurseForce(argv[0]) && errno != 0) { in RestoreContentRecurseForce() 125 PLUGIN_LOGE("RestoreContentRecurseForce failed for '%s', err %d.", argv[0], errno); in RestoreContentRecurseForce() 135 SELINUX_RESTORECON_RECURSE | SELINUX_RESTORECON_SKIPELX, 1) && errno != 0) { in RestoreContentRecurseSkipElx() 136 PLUGIN_LOGE("RestoreContentRecurseSkipElx failed for '%s', err %d.", argv[0], errno); in RestoreContentRecurseSkipElx()
|
/base/tee/tee_client/services/teecd/src/ |
H A D | fs_work_agent.c | 156 tloge("chmod failed: %d\n", errno); in ChownSecStorage() 212 tloge("mkdir fail err %d \n", errno); in CreateDir() 496 if ((errno != ENOENT) && (errno != EACCES)) { in GetRealFilePath() 497 tloge("get realpath failed: %d\n", errno); in GetRealFilePath() 498 return (uint32_t)errno; in GetRealFilePath() 535 errno = 0; in UnlinkRecursiveDir() 556 errno = 0; in UnlinkRecursiveDir() 561 if (fail || errno < 0) { in UnlinkRecursiveDir() 562 int32_t save = errno; in UnlinkRecursiveDir() [all...] |
/base/security/device_auth/services/frameworks/src/security_label_adapter/ |
H A D | security_label_adapter.c | 28 if (labelSize <= 0 || errno == ENOTSUP) { in GetSecurityLabel() 29 LOGE("Failed to get security label size, labelSize: %d, [errno]: %d", labelSize, errno); in GetSecurityLabel() 38 if (labelSize <= 0 || errno == ENOTSUP) { in GetSecurityLabel() 39 LOGE("Failed to get security label, labelSize: %d, [errno]: %d", labelSize, errno); in GetSecurityLabel()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_dumprequest.c | 42 #include "errno.h" 144 DFXLOGE("Failed to set cap data, errno(%{public}d)", errno); in InheritCapabilities() 153 DFXLOGE("Failed to change the ambient capability set, errno(%{public}d)", errno); in InheritCapabilities() 226 DFXLOGE("Failed to create pipe for transfering context, errno(%{public}d)", errno); in DFX_ExecDump() 236 DFXLOGE("Failed to set pipe buffer size, errno(%{public}d).", errno); in DFX_ExecDump() 247 DFXLOGE("Failed to write pipe, errno( in DFX_ExecDump() [all...] |
/base/startup/init/services/modules/init_context/ |
H A D | init_context.c | 135 if (ret < 0 && errno == EPIPE) { in SubInitExecuteCmd() 141 PLUGIN_CHECK(ret > 0, return errno, "Failed to send cmd %s to %d errno %d", name, subInfo->type, errno); in SubInitExecuteCmd() 145 while ((rLen < 0) && (errno == EAGAIN)) { in SubInitExecuteCmd() 148 PLUGIN_CHECK(rLen >= 0 && (size_t)rLen < sizeof(buffer), return errno, in SubInitExecuteCmd() 149 "Failed to read result from %d for cmd %s errno %d", subInfo->type, name, errno); in SubInitExecuteCmd() 159 PLUGIN_CHECK(ret == 0, return -1, "Create socket fail errno %d", errno); in CreateSocketPair() [all...] |
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
H A D | hc_file_posix.c | 52 LOGI("[OS]: CreateDirectory access fail. [Res]: %d, [errno]: %d", res, errno); in CreateDirectory() 55 LOGI("[OS]: opendir fail. [errno]: %d", errno); in CreateDirectory() 58 LOGE("[OS]: mkdir fail. [Res]: %d, [errno]: %d", res, errno); in CreateDirectory() 75 LOGE("[OS]: file open fail. [Errno]: %d", errno); in HcFileOpenRead() 83 LOGI("[OS]: HcFileOpenWrite access fail. [errno]: %d", errno); in HcFileOpenWrite() 92 LOGE("[OS]: file open fail. [Errno]: %d", errno); in HcFileOpenWrite() [all...] |