mkstemp() is a bit more complex than it looks; because ego wants to use the
authorDavid Given <dg@cowlark.com>
Sun, 6 Aug 2017 12:25:12 +0000 (14:25 +0200)
committerDavid Given <dg@cowlark.com>
Sun, 6 Aug 2017 12:25:12 +0000 (14:25 +0200)
commit1203e8afd2acd947d1701950ce292314738725c5
treede82cfd73c0b1c66b0136b36840dad38e730bb39
parenta96c846a29e82bb91bfe44395d1ae49f4a5d69aa
mkstemp() is a bit more complex than it looks; because ego wants to use the
same base name and generate multiple files based on it, we can't really use
mkstemp() for every temporary file. Instead, use mkstemp() once on a
placeholder, then generate temporary names based on this. (And delete the
placeholder once we've finished.)
util/ego/em_ego/em_ego.c