Home
last modified time | relevance | path

Searched refs:mbfd (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/mail/
H A Dcreatemf.c71 int mbfd; local
75 mbfd = open(path,
83 if (mbfd == -1) {
103 mbfd = open(path, O_APPEND|O_WRONLY, 0);
104 if (mbfd != -1 &&
105 (fstat(mbfd, &fsb) || fsb.st_nlink != 1 ||
110 (void)close(mbfd);
115 if (mbfd == -1) {
120 return mbfd;
H A Dsendlist.c146 int mbfd; in send_mbox() local
176 mbfd = accessmf(file); in send_mbox()
177 if (mbfd == -1) { /* mail box access failed, bail out */ in send_mbox()
184 if ((malf = fdopen(mbfd, "a")) != NULL) { in send_mbox()
/titanic_41/usr/src/cmd/sendmail/aux/
H A Dmail.local.c740 int mbfd = -1, nr, nw = 0, off; local
813 mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
815 if (mbfd != -1)
816 (void) fchmod(mbfd, 0660);
819 if (mbfd == -1) {
832 mbfd = open(path, O_APPEND|O_WRONLY, 0);
833 if (mbfd != -1 &&
834 (fstat(mbfd, &fsb) || fsb.st_nlink != 1 ||
844 if (mbfd == -1) {
855 curoff = lseek(mbfd, (off_t)0, SEEK_END);
[all …]