Lines Matching defs:temp
99 static int32_t GetLogPathBasePos(const char *temp, char **pos)
106 if (strncmp(temp, TEE_LOG_PATH_BASE, strlen(TEE_LOG_PATH_BASE)) == 0) {
121 char *temp = strdup(path);
122 char *pos = temp;
124 if (temp == NULL) {
128 ret = GetLogPathBasePos(temp, &pos);
130 free(temp);
138 ret = mkdir(temp, S_IRWXU | S_IRWXG);
145 tloge("mkdir %s fail, errno %d\n", temp, errno);
146 free(temp);
149 ret = chmod(temp, TLOGCAT_FILE_MODE);
151 tloge("chmod %s err %d\n", temp, ret);
153 tlogv("for %s\n", temp);
158 free(temp);
515 /* create a temp path, and move these files to this path for compressing */
1087 tloge("get tee temp log path failed\n");