Lines Matching refs:tmp_name_len
109 size_t tmp_name_len = 0; in create_tempfile() local
128 tmp_name_len = strlen(dir); in create_tempfile()
129 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) { in create_tempfile()
136 if (!tmp_name_len) { in create_tempfile()
137 tmp_name_len = strlen(P_tmpdir); in create_tempfile()
138 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) in create_tempfile()
142 if (!tmp_name_len) { in create_tempfile()
144 tmp_name_len = 4; in create_tempfile()
147 SLJIT_ASSERT(tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)); in create_tempfile()
149 if (tmp_name[tmp_name_len - 1] == '/') in create_tempfile()
150 tmp_name[--tmp_name_len] = '\0'; in create_tempfile()
157 fd = open(tmp_name_len ? tmp_name : "/", in create_tempfile()
163 if (tmp_name_len + 7 >= sizeof(tmp_name)) in create_tempfile()
166 strcpy(tmp_name + tmp_name_len, "/XXXXXX"); in create_tempfile()