Lines Matching refs:tname
249 char tname[] = "/tmp/crontab.XXXXXX"; in do_replace() local
252 int tfd = mkstemp(tname); in do_replace()
257 fname = tname; in do_replace()
263 unlink(tname); in do_replace()
272 char tname[] = "/tmp/crontab.XXXXXX"; in do_edit() local
274 if ((destfd = mkstemp(tname)) < 0) in do_edit()
289 if (!stat(tname, &sb)) mtime = sb.st_mtime; in do_edit()
307 execlp(prog, prog, tname, (char *) NULL); in do_edit()
316 if (!stat(tname, &sb) && (mtime == sb.st_mtime)) { in do_edit()
318 unlink(tname); in do_edit()
322 if (parse_crontab(tname)) { in do_edit()
326 error_msg("edits left in '%s'", tname); in do_edit()
332 update_crontab(tname, pwd->pw_name); in do_edit()
333 unlink(tname); in do_edit()