tempfile           46 builtin/gc.c   static struct tempfile pidfile;
tempfile            8 credential-cache--daemon.c static struct tempfile socket_file;
tempfile          332 diff.c         	struct tempfile tempfile;
tempfile          621 diff.c         		if (is_tempfile_active(&diff_temp[i].tempfile))
tempfile          622 diff.c         			delete_tempfile(&diff_temp[i].tempfile);
tempfile         2873 diff.c         	fd = mks_tempfile_ts(&temp->tempfile, template.buf, strlen(base) + 1);
tempfile         2883 diff.c         	close_tempfile(&temp->tempfile);
tempfile         2884 diff.c         	temp->name = get_tempfile_path(&temp->tempfile);
tempfile           83 lockfile.c     	fd = create_tempfile(&lk->tempfile, filename.buf);
tempfile          184 lockfile.c     	strbuf_addstr(&ret, get_tempfile_path(&lk->tempfile));
tempfile          110 lockfile.h     	struct tempfile tempfile;
tempfile          192 lockfile.h     	return fdopen_tempfile(&lk->tempfile, mode);
tempfile          201 lockfile.h     	return get_tempfile_path(&lk->tempfile);
tempfile          206 lockfile.h     	return get_tempfile_fd(&lk->tempfile);
tempfile          211 lockfile.h     	return get_tempfile_fp(&lk->tempfile);
tempfile          231 lockfile.h     	return close_tempfile(&lk->tempfile);
tempfile          255 lockfile.h     	return reopen_tempfile(&lk->tempfile);
tempfile          275 lockfile.h     	return rename_tempfile(&lk->tempfile, path);
tempfile          286 lockfile.h     	delete_tempfile(&lk->tempfile);
tempfile         2127 read-cache.c   static struct tempfile temporary_sharedindex;
tempfile          212 shallow.c      static struct tempfile temporary_shallow;
tempfile           59 tempfile.c     static struct tempfile *volatile tempfile_list;
tempfile           91 tempfile.c     static void prepare_tempfile_object(struct tempfile *tempfile)
tempfile           99 tempfile.c     	if (tempfile->active)
tempfile          101 tempfile.c     	if (!tempfile->on_list) {
tempfile          103 tempfile.c     		tempfile->fd = -1;
tempfile          104 tempfile.c     		tempfile->fp = NULL;
tempfile          105 tempfile.c     		tempfile->active = 0;
tempfile          106 tempfile.c     		tempfile->owner = 0;
tempfile          107 tempfile.c     		strbuf_init(&tempfile->filename, 0);
tempfile          108 tempfile.c     		tempfile->next = tempfile_list;
tempfile          109 tempfile.c     		tempfile_list = tempfile;
tempfile          110 tempfile.c     		tempfile->on_list = 1;
tempfile          111 tempfile.c     	} else if (tempfile->filename.len) {
tempfile          118 tempfile.c     int create_tempfile(struct tempfile *tempfile, const char *path)
tempfile          120 tempfile.c     	prepare_tempfile_object(tempfile);
tempfile          122 tempfile.c     	strbuf_add_absolute_path(&tempfile->filename, path);
tempfile          123 tempfile.c     	tempfile->fd = open(tempfile->filename.buf, O_RDWR | O_CREAT | O_EXCL, 0666);
tempfile          124 tempfile.c     	if (tempfile->fd < 0) {
tempfile          125 tempfile.c     		strbuf_reset(&tempfile->filename);
tempfile          128 tempfile.c     	tempfile->owner = getpid();
tempfile          129 tempfile.c     	tempfile->active = 1;
tempfile          130 tempfile.c     	if (adjust_shared_perm(tempfile->filename.buf)) {
tempfile          132 tempfile.c     		error("cannot fix permission bits on %s", tempfile->filename.buf);
tempfile          133 tempfile.c     		delete_tempfile(tempfile);
tempfile          137 tempfile.c     	return tempfile->fd;
tempfile          140 tempfile.c     void register_tempfile(struct tempfile *tempfile, const char *path)
tempfile          142 tempfile.c     	prepare_tempfile_object(tempfile);
tempfile          143 tempfile.c     	strbuf_add_absolute_path(&tempfile->filename, path);
tempfile          144 tempfile.c     	tempfile->owner = getpid();
tempfile          145 tempfile.c     	tempfile->active = 1;
tempfile          148 tempfile.c     int mks_tempfile_sm(struct tempfile *tempfile,
tempfile          151 tempfile.c     	prepare_tempfile_object(tempfile);
tempfile          153 tempfile.c     	strbuf_add_absolute_path(&tempfile->filename, template);
tempfile          154 tempfile.c     	tempfile->fd = git_mkstemps_mode(tempfile->filename.buf, suffixlen, mode);
tempfile          155 tempfile.c     	if (tempfile->fd < 0) {
tempfile          156 tempfile.c     		strbuf_reset(&tempfile->filename);
tempfile          159 tempfile.c     	tempfile->owner = getpid();
tempfile          160 tempfile.c     	tempfile->active = 1;
tempfile          161 tempfile.c     	return tempfile->fd;
tempfile          164 tempfile.c     int mks_tempfile_tsm(struct tempfile *tempfile,
tempfile          169 tempfile.c     	prepare_tempfile_object(tempfile);
tempfile          175 tempfile.c     	strbuf_addf(&tempfile->filename, "%s/%s", tmpdir, template);
tempfile          176 tempfile.c     	tempfile->fd = git_mkstemps_mode(tempfile->filename.buf, suffixlen, mode);
tempfile          177 tempfile.c     	if (tempfile->fd < 0) {
tempfile          178 tempfile.c     		strbuf_reset(&tempfile->filename);
tempfile          181 tempfile.c     	tempfile->owner = getpid();
tempfile          182 tempfile.c     	tempfile->active = 1;
tempfile          183 tempfile.c     	return tempfile->fd;
tempfile          186 tempfile.c     int xmks_tempfile_m(struct tempfile *tempfile, const char *template, int mode)
tempfile          192 tempfile.c     	fd = mks_tempfile_m(tempfile, full_template.buf, mode);
tempfile          201 tempfile.c     FILE *fdopen_tempfile(struct tempfile *tempfile, const char *mode)
tempfile          203 tempfile.c     	if (!tempfile->active)
tempfile          205 tempfile.c     	if (tempfile->fp)
tempfile          208 tempfile.c     	tempfile->fp = fdopen(tempfile->fd, mode);
tempfile          209 tempfile.c     	return tempfile->fp;
tempfile          212 tempfile.c     const char *get_tempfile_path(struct tempfile *tempfile)
tempfile          214 tempfile.c     	if (!tempfile->active)
tempfile          216 tempfile.c     	return tempfile->filename.buf;
tempfile          219 tempfile.c     int get_tempfile_fd(struct tempfile *tempfile)
tempfile          221 tempfile.c     	if (!tempfile->active)
tempfile          223 tempfile.c     	return tempfile->fd;
tempfile          226 tempfile.c     FILE *get_tempfile_fp(struct tempfile *tempfile)
tempfile          228 tempfile.c     	if (!tempfile->active)
tempfile          230 tempfile.c     	return tempfile->fp;
tempfile          233 tempfile.c     int close_tempfile(struct tempfile *tempfile)
tempfile          235 tempfile.c     	int fd = tempfile->fd;
tempfile          236 tempfile.c     	FILE *fp = tempfile->fp;
tempfile          242 tempfile.c     	tempfile->fd = -1;
tempfile          244 tempfile.c     		tempfile->fp = NULL;
tempfile          257 tempfile.c     		delete_tempfile(tempfile);
tempfile          265 tempfile.c     int reopen_tempfile(struct tempfile *tempfile)
tempfile          267 tempfile.c     	if (0 <= tempfile->fd)
tempfile          269 tempfile.c     	if (!tempfile->active)
tempfile          271 tempfile.c     	tempfile->fd = open(tempfile->filename.buf, O_WRONLY);
tempfile          272 tempfile.c     	return tempfile->fd;
tempfile          275 tempfile.c     int rename_tempfile(struct tempfile *tempfile, const char *path)
tempfile          277 tempfile.c     	if (!tempfile->active)
tempfile          280 tempfile.c     	if (close_tempfile(tempfile))
tempfile          283 tempfile.c     	if (rename(tempfile->filename.buf, path)) {
tempfile          285 tempfile.c     		delete_tempfile(tempfile);
tempfile          290 tempfile.c     	tempfile->active = 0;
tempfile          291 tempfile.c     	strbuf_reset(&tempfile->filename);
tempfile          295 tempfile.c     void delete_tempfile(struct tempfile *tempfile)
tempfile          297 tempfile.c     	if (!tempfile->active)
tempfile          300 tempfile.c     	if (!close_tempfile(tempfile)) {
tempfile          301 tempfile.c     		unlink_or_warn(tempfile->filename.buf);
tempfile          302 tempfile.c     		tempfile->active = 0;
tempfile          303 tempfile.c     		strbuf_reset(&tempfile->filename);
tempfile           79 tempfile.h     	struct tempfile *volatile next;
tempfile           93 tempfile.h     extern int create_tempfile(struct tempfile *tempfile, const char *path);
tempfile          101 tempfile.h     extern void register_tempfile(struct tempfile *tempfile, const char *path);
tempfile          139 tempfile.h     extern int mks_tempfile_sm(struct tempfile *tempfile,
tempfile          143 tempfile.h     static inline int mks_tempfile_s(struct tempfile *tempfile,
tempfile          146 tempfile.h     	return mks_tempfile_sm(tempfile, template, suffixlen, 0600);
tempfile          150 tempfile.h     static inline int mks_tempfile_m(struct tempfile *tempfile,
tempfile          153 tempfile.h     	return mks_tempfile_sm(tempfile, template, 0, mode);
tempfile          157 tempfile.h     static inline int mks_tempfile(struct tempfile *tempfile,
tempfile          160 tempfile.h     	return mks_tempfile_sm(tempfile, template, 0, 0600);
tempfile          164 tempfile.h     extern int mks_tempfile_tsm(struct tempfile *tempfile,
tempfile          168 tempfile.h     static inline int mks_tempfile_ts(struct tempfile *tempfile,
tempfile          171 tempfile.h     	return mks_tempfile_tsm(tempfile, template, suffixlen, 0600);
tempfile          175 tempfile.h     static inline int mks_tempfile_tm(struct tempfile *tempfile,
tempfile          178 tempfile.h     	return mks_tempfile_tsm(tempfile, template, 0, mode);
tempfile          182 tempfile.h     static inline int mks_tempfile_t(struct tempfile *tempfile,
tempfile          185 tempfile.h     	return mks_tempfile_tsm(tempfile, template, 0, 0600);
tempfile          189 tempfile.h     extern int xmks_tempfile_m(struct tempfile *tempfile,
tempfile          193 tempfile.h     static inline int xmks_tempfile(struct tempfile *tempfile,
tempfile          196 tempfile.h     	return xmks_tempfile_m(tempfile, template, 0600);
tempfile          205 tempfile.h     extern FILE *fdopen_tempfile(struct tempfile *tempfile, const char *mode);
tempfile          207 tempfile.h     static inline int is_tempfile_active(struct tempfile *tempfile)
tempfile          209 tempfile.h     	return tempfile->active;
tempfile          216 tempfile.h     extern const char *get_tempfile_path(struct tempfile *tempfile);
tempfile          218 tempfile.h     extern int get_tempfile_fd(struct tempfile *tempfile);
tempfile          219 tempfile.h     extern FILE *get_tempfile_fp(struct tempfile *tempfile);
tempfile          229 tempfile.h     extern int close_tempfile(struct tempfile *tempfile);
tempfile          250 tempfile.h     extern int reopen_tempfile(struct tempfile *tempfile);
tempfile          258 tempfile.h     extern void delete_tempfile(struct tempfile *tempfile);
tempfile          269 tempfile.h     extern int rename_tempfile(struct tempfile *tempfile, const char *path);