Lines Matching defs:ofd
1420 int ofd, setimes, targisdir, wrerr;
1578 /* get acl and set it to ofd */
1600 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1610 zopen(ofd, zflag && !exists);
1613 (void) fchmod(ofd, mode);
1621 /* get acl and set it to ofd */
1622 if (recvacl(ofd, exists, pflag) == ACL_FAIL) {
1623 (void) close(ofd);
1630 if ((bp = allocbuf(&buffer, ofd, RCP_BUFSIZE)) == 0) {
1631 (void) close(ofd);
1658 size = lseek(ofd, 0, SEEK_CUR);
1659 if ((ftruncate(ofd, size) == -1) &&
1668 (void) close(ofd);
1677 zwrite(ofd, cp, count) < 0)
1683 zwrite(ofd, bp->buf, count) < 0)
1685 if (zclose(ofd) < 0)
1688 if ((ftruncate(ofd, size) == -1) && (errno != EINVAL) &&
1692 (void) close(ofd);