Lines Matching defs:tmpfile
1635 * Create tmpfile (zonecfg.xxxxxx)
1636 * Write XML to tmpfile
1637 * Rename tmpfile to xmlfile (zonecfg.xxxxxx -> foo.xml)
1643 * Create tmpfile (zonecfg.xxxxxx)
1644 * Write XML to tmpfile
1645 * Rename tmpfile to xmlfile (zonecfg.xxxxxx -> foo.xml)
1650 * Create tmpfile (zonecfg.xxxxxx)
1651 * Write XML to tmpfile
1652 * Rename tmpfile to xmlfile (zonecfg.xxxxxx -> bar.xml)
1659 char tmpfile[MAXPATHLEN];
1665 (void) strlcpy(tmpfile, filename, sizeof (tmpfile));
1666 (void) dirname(tmpfile);
1667 (void) strlcat(tmpfile, _PATH_TMPFILE, sizeof (tmpfile));
1669 tmpfd = mkstemp(tmpfile);
1671 (void) unlink(tmpfile);
1687 if (xmlSaveFormatFile(tmpfile, handle->zone_dh_doc, 1) <= 0)
1690 (void) chmod(tmpfile, 0644);
1707 (void) unlink(tmpfile);
1718 if (rename(tmpfile, filename) == -1) {
1720 (void) unlink(tmpfile);
1759 (void) unlink(tmpfile);