tmpfile
FILE *tmpfile(void);
char *tmpfile;
asprintf(&tmpfile, "/var/vkernel/.memimg.%d", (int)getpid());
fd = open(tmpfile, O_RDWR|O_CREAT|O_EXCL, 0600);
err(1, "Unable to create %s", tmpfile);
unlink(tmpfile);
free(tmpfile);
char *tmpfile;
tmpfile = tmpnam(NULL);
fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0777);
unlink(tmpfile);
if ((fpout = tmpfile()) == NULL) {
if ((ofp = tmpfile()) == NULL)
if ((err = tmpfile()) == NULL) {