Lines Matching refs:ofd
498 int amt, exists, first, mask, mode, ofd, omode;
640 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
645 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) {
646 (void)close(ofd);
669 j = write(ofd, bp->buf, count);
680 (j = write(ofd, bp->buf, count)) != (off_t)count) {
684 if (ftruncate(ofd, size)) {
690 if (fchmod(ofd, omode))
695 if (fchmod(ofd, omode & ~mask))
699 (void)close(ofd);