/base/startup/init/interfaces/innerkits/hookmgr/ |
D | hookmgr.c | 61 BEGET_CHECK(hookMgr == NULL, return hookMgr); in getHookMgr() 63 BEGET_CHECK(defaultHookMgr == NULL, return defaultHookMgr); in getHookMgr() 65 BEGET_CHECK(autoCreate, return NULL); in getHookMgr() 85 BEGET_CHECK(node != NULL, return); in hookStageDestroy() 98 BEGET_CHECK(stageItem == NULL, return stageItem); in getHookStage() 100 BEGET_CHECK(createIfNotFound, return NULL); in getHookStage() 104 BEGET_CHECK(stageItem != NULL, return NULL); in getHookStage() 133 …BEGET_CHECK(hookItem->info.prio == compareVal->prio, return (hookItem->info.prio - compareVal->pri… in hookItemCompareValue() 151 BEGET_CHECK(hookItem == NULL, return 0); in addHookToStage() 155 BEGET_CHECK(hookItem != NULL, return -1); in addHookToStage() [all …]
|
/base/startup/init/interfaces/innerkits/modulemgr/ |
D | modulemgr.c | 48 BEGET_CHECK(name != NULL, return NULL); in ModuleMgrCreate() 51 BEGET_CHECK(moduleMgr != NULL, return NULL); in ModuleMgrCreate() 66 BEGET_CHECK(moduleMgr != NULL, return); in ModuleMgrDestroy() 69 BEGET_CHECK(moduleMgr->name == NULL, free((void *)moduleMgr->name)); in ModuleMgrDestroy() 89 BEGET_CHECK(node != NULL, return); in ModuleDestroy() 92 BEGET_CHECK(module->name == NULL, free((void *)module->name)); in ModuleDestroy() 93 BEGET_CHECK(module->handle == NULL, dlclose(module->handle)); in ModuleDestroy() 111 BEGET_CHECK(rc >= 0, return NULL); in ModuleInstall() 116 BEGET_CHECK(rc >= 0, return NULL); in ModuleInstall() 151 BEGET_CHECK(!(moduleMgr == NULL || moduleName == NULL), return -1); in ModuleMgrInstall() [all …]
|
/base/startup/init/services/modules/udid/ |
D | udid_comm.c | 32 BEGET_CHECK((ohosSerial = (char *)calloc(1, PARAM_VALUE_LEN_MAX)) != NULL, return NULL); in GetSerial_() 36 BEGET_CHECK(ret == 0, return NULL); in GetSerial_() 45 BEGET_CHECK(ret != 0, return ret); in GetUdidFromParam() 49 BEGET_CHECK(ret != 0, return ret); in GetUdidFromParam() 60 BEGET_CHECK(ret != 0, return ret); in GetDevUdid_()
|
/base/startup/init/services/sandbox/ |
D | sandbox_namespace.c | 27 BEGET_CHECK(nsPath != NULL, return -1); in GetNamespaceFd() 66 BEGET_CHECK(!(g_defaultNs > 0), (void)close(g_defaultNs)); in InitDefaultNamespace() 73 BEGET_CHECK(!(g_defaultNs < 0), return -1); in EnterDefaultNamespace()
|
D | sandbox.c | 117 BEGET_CHECK(str != NULL, return 0); in GetSandboxMountFlags() 226 BEGET_CHECK(sandbox != NULL && item != NULL && type != NULL, return -1); in AddMountInfoToSandbox() 267 BEGET_CHECK(!(sandbox == NULL || item == NULL || type == NULL), return -1); in AddSymbolLinksToSandbox() 539 BEGET_CHECK(IsValidSandbox(sandbox) == true, return -1); in PrepareSandbox() 541 BEGET_CHECK(sandbox->rootPath != NULL, return -1); in PrepareSandbox() 551 BEGET_CHECK(rc == 0, return -1); in PrepareSandbox() 554 BEGET_CHECK(rc == 0, return -1); in PrepareSandbox() 558 BEGET_CHECK(rc == 0, return -1); in PrepareSandbox() 600 BEGET_CHECK(sandbox != NULL, return); in DestroySandbox() 630 BEGET_CHECK(sandbox != NULL, return -1); in EnterSandbox()
|
/base/startup/init/interfaces/innerkits/syspara/ |
D | param_comm.c | 92 BEGET_CHECK(paramHolder != NULL, return NULL); in GetProperty() 100 BEGET_CHECK(res != NULL, return NULL); in GetProperty()
|
D | parameter.c | 30 BEGET_CHECK(!(key == NULL || value == NULL), return EC_INVALID); in WaitParameter() 37 BEGET_CHECK(key != NULL, return (uint32_t)(-1)); in FindParameter() 50 BEGET_CHECK(ret == 0, return (uint32_t)(-1)); in GetParameterCommitId()
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab_mount.c | 79 BEGET_CHECK(!(argc == 0 || argv == NULL || argv[0] == NULL), return -1); in ExecCommand() 151 BEGET_CHECK(fp != NULL, return status); in GetMountStatusForMountPoint() 277 BEGET_CHECK((st.st_mode & S_IFMT) != S_IFLNK, unlink(target)); // link, delete it. in Mount() 448 BEGET_CHECK(fstab != NULL, return -1); in MountAllWithFstab() 480 BEGET_CHECK(!isFile, return -1); in MountAllWithFstabFile() 497 BEGET_CHECK(!isFile, return -1); in UmountAllWithFstabFile()
|
D | fstab.c | 531 BEGET_CHECK(!(item == NULL || *item == '\0' || fstab == NULL), return -1); in ParseRequiredMountInfo() 536 BEGET_CHECK(!(q == NULL || *q == '\0' || (p - q) <= 0), return -1); in ParseRequiredMountInfo()
|
/base/startup/init/services/utils/ |
D | init_utils.c | 637 BEGET_CHECK(!(s == end || *end != '\0'), return -1); in StringToLL() 648 BEGET_CHECK(s[0] != '-', return -1); in StringToULL() 657 BEGET_CHECK(end != s, return -1); in StringToULL() 658 BEGET_CHECK(*end == '\0', return -1); in StringToULL()
|
/base/startup/init/interfaces/innerkits/include/ |
D | beget_ext.h | 138 #define BEGET_CHECK(ret, statement) \ macro
|
/base/startup/init/services/begetctl/ |
D | param_cmd.c | 61 BEGET_CHECK(g_isSetTerminal == 0, tcsetattr(0, TCSAFLUSH, &g_terminalState)); in demoExit() 72 BEGET_CHECK(buffSize == NULL, *buffSize = sizeof(buffer)); in GetLocalBuffer() 148 BEGET_CHECK(!(size < MASK_LENGTH_MAX), return str); in GetPermissionString()
|
/base/startup/init/interfaces/innerkits/fd_holder/ |
D | fd_holder.c | 77 BEGET_CHECK(sock >= 0, return -1); in ServiceSendFds()
|