Lines Matching refs:tmp_name
108 char tmp_name[256]; in create_tempfile() local
129 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) { in create_tempfile()
131 strcpy(tmp_name, dir); in create_tempfile()
138 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) in create_tempfile()
139 strcpy(tmp_name, P_tmpdir); in create_tempfile()
143 strcpy(tmp_name, "/tmp"); 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()
170 fd = mkostemp(tmp_name, O_CLOEXEC | O_NOATIME); in create_tempfile()
180 if (unlink(tmp_name)) { in create_tempfile()