Lines Matching refs:tmp
99 char tmp[PATH_MAX + 1]; in make_parent_dir() local
102 strncpy(tmp, path, sizeof(tmp)); in make_parent_dir()
103 tmp[sizeof(tmp) - 1] = 0; in make_parent_dir()
106 p = strrchr(tmp, '/'); in make_parent_dir()
112 p = tmp; in make_parent_dir()
120 if (!is_dir(tmp) && mkdir(tmp, 0755)) in make_parent_dir()
922 char name[PATH_MAX], tmp[PATH_MAX]; in conf_write_autoconf_cmd() local
933 ret = snprintf(tmp, sizeof(tmp), "%s.cmd.tmp", autoconf_name); in conf_write_autoconf_cmd()
934 if (ret >= sizeof(tmp)) /* check truncation */ in conf_write_autoconf_cmd()
937 out = fopen(tmp, "w"); in conf_write_autoconf_cmd()
953 if (rename(tmp, name)) { in conf_write_autoconf_cmd()
963 const char *name, *tmp; in conf_touch_deps() local
968 tmp = strrchr(name, '/'); in conf_touch_deps()
969 depfile_prefix_len = tmp ? tmp - name + 1 : 0; in conf_touch_deps()
1040 char tmp[PATH_MAX]; in __conf_write_autoconf() local
1048 ret = snprintf(tmp, sizeof(tmp), "%s.tmp", filename); in __conf_write_autoconf()
1049 if (ret >= sizeof(tmp)) /* check truncation */ in __conf_write_autoconf()
1052 file = fopen(tmp, "w"); in __conf_write_autoconf()
1071 if (rename(tmp, filename)) { in __conf_write_autoconf()