MCPcopy Index your code
hub / github.com/git/git / new_tempfile

Function new_tempfile

tempfile.c:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static struct tempfile *new_tempfile(void)
103{
104 struct tempfile *tempfile = xmalloc(sizeof(*tempfile));
105 tempfile->fd = -1;
106 tempfile->fp = NULL;
107 tempfile->owner = 0;
108 INIT_LIST_HEAD(&tempfile->list);
109 strbuf_init(&tempfile->filename, 0);
110 tempfile->directory = NULL;
111 return tempfile;
112}
113
114static void activate_tempfile(struct tempfile *tempfile)
115{

Callers 5

create_tempfile_modeFunction · 0.85
register_tempfileFunction · 0.85
mks_tempfile_smFunction · 0.85
mks_tempfile_tsmFunction · 0.85
mks_tempfile_dtFunction · 0.85

Calls 2

strbuf_initFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected