Searched defs:tmp_conf (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/power/
H A Dconf.c64 static char tmp_conf[] = "/etc/.tmp.conf.XXXXXX"; variable
96 if (access(tmp_conf, F_OK) == 0)
97 (void) unlink(tmp_conf);
445 if ((tmp_fd = mkstemp(tmp_conf)) == -1) {
446 mesg(MERR, "cannot open/create tmp file \"%s\"\n", tmp_conf);
474 else if (chmod(name = tmp_conf, stbuf.st_mode) == -1)
476 else if (chown(tmp_conf, stbuf.st_uid, stbuf.st_gid) == -1)
478 else if (rename(tmp_conf, default_conf) == -1)
482 tmp_conf, default_conf);

Completed in 163 milliseconds