Home | History | Annotate | Download | only in pending

Lines Matching full:mailfd

477   int mailfd;
489 mailfd = open(toybuf, O_RDONLY);
491 if (mailfd < 0) return;
493 if (fstat(mailfd, &sb) == -1 || sb.st_uid != 0 || sb.st_nlink != 0
495 xclose(mailfd);
499 do_fork(cfile, job, mailfd, "sendmail");
547 int mailfd = -1;
552 if ((mailfd = open(toybuf, O_CREAT|O_TRUNC|O_WRONLY|O_EXCL|O_APPEND,
557 dprintf(mailfd, "To: %s\nSubject: cron: %s\n\n", cfile->mailto, job->cmd);
558 job->mailsize = lseek(mailfd, 0, SEEK_CUR);
560 do_fork(cfile, job, mailfd, NULL);
561 if (mailfd >= 0) {