mail.local.c | 200 int created = 0, mbfd = -1, nr, nw, off, rval = EX_OSERR, lfd = -1; local in function:deliver 241 if ((mbfd = open(path, O_APPEND|O_WRONLY|O_EXLOCK|O_NOFOLLOW, 245 (mbfd = open(path, O_APPEND|O_CREAT|O_WRONLY|O_EXLOCK|O_EXCL, 253 if (fstat(mbfd, &nsb) == -1) { 269 if ((curoff = lseek(mbfd, 0, SEEK_END)) == (off_t)-1) { 283 if ((nw = write(mbfd, buf + off, nr - off)) < 0) { 291 trunc: (void)ftruncate(mbfd, curoff); 310 if (mbfd >= 0) { 312 (void)fchown(mbfd, pw->pw_uid, pw->pw_gid); 314 (void)fsync(mbfd); /* Don't wait for update. * [all...] |