Home
last modified time | relevance | path

Searched refs:histtmpname (Results 1 – 1 of 1) sorted by relevance

/freebsd/bin/sh/
H A Dhistedit.c100 char *histtmpname = NULL; in histsave() local
108 asprintf(&histtmpname, "%s.XXXXXXXXXX", histfile); in histsave()
109 if (histtmpname == NULL) { in histsave()
113 fd = mkstemp(histtmpname); in histsave()
115 free(histtmpname); in histsave()
120 rename(histtmpname, histfile) == -1) in histsave()
121 unlink(histtmpname); in histsave()
123 free(histtmpname); in histsave()