Lines Matching refs:tname
246 char tname[] = "/tmp/crontab.XXXXXX"; in do_replace() local
249 int tfd = mkstemp(tname); in do_replace()
254 fname = tname; in do_replace()
260 unlink(tname); in do_replace()
269 char tname[] = "/tmp/crontab.XXXXXX"; in do_edit() local
271 if ((destfd = mkstemp(tname)) < 0) in do_edit()
286 if (!stat(tname, &sb)) mtime = sb.st_mtime; in do_edit()
304 execlp(prog, prog, tname, (char *) NULL); in do_edit()
313 if (!stat(tname, &sb) && (mtime == sb.st_mtime)) { in do_edit()
315 unlink(tname); in do_edit()
319 if (parse_crontab(tname)) { in do_edit()
323 error_msg("edits left in '%s'", tname); in do_edit()
329 update_crontab(tname, pwd->pw_name); in do_edit()
330 unlink(tname); in do_edit()