MCPcopy Create free account
hub / github.com/git/git / xmks_tempfile_m

Function xmks_tempfile_m

tempfile.c:251–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251struct tempfile *xmks_tempfile_m(const char *filename_template, int mode)
252{
253 struct tempfile *tempfile;
254 struct strbuf full_template = STRBUF_INIT;
255
256 strbuf_add_absolute_path(&full_template, filename_template);
257 tempfile = mks_tempfile_m(full_template.buf, mode);
258 if (!tempfile)
259 die_errno("Unable to create temporary file '%s'",
260 full_template.buf);
261
262 strbuf_release(&full_template);
263 return tempfile;
264}
265
266FILE *fdopen_tempfile(struct tempfile *tempfile, const char *mode)
267{

Callers 1

xmks_tempfileFunction · 0.85

Calls 4

strbuf_add_absolute_pathFunction · 0.85
mks_tempfile_mFunction · 0.85
die_errnoFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected