Searched refs:newTitle (Results 1 – 2 of 2) sorted by relevance
/drivers/hdf_core/adapter/uhdf2/host/ |
D | devhost.c | 77 static void SetProcTitle(char **argv, const char *newTitle) in SetProcTitle() argument 80 if (strlen(newTitle) > len) { in SetProcTitle() 81 HDF_LOGE("failed to set new process title because the '%{public}s' is too long", newTitle); in SetProcTitle() 85 if (strcpy_s(argv[0], len + 1, newTitle) != EOK) { in SetProcTitle() 89 prctl(PR_SET_NAME, newTitle); in SetProcTitle()
|
/drivers/hdf_core/framework/core/adapter/syscall/src/ |
D | hdf_syscall_adapter.c | 224 char newTitle[THREAD_NAME_LEN_MAX] = {0}; in SetThreadName() local 227 int32_t ret = sprintf_s(newTitle, THREAD_NAME_LEN_MAX, "%s%d", "evt_list_", tid); in SetThreadName() 229 ret = prctl(PR_SET_NAME, newTitle); in SetThreadName()
|