Lines Matching refs:ofd
908 int amt, exists, first, ofd;
1068 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1073 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
1074 (void) close(ofd);
1105 if (atomicio(vwrite, ofd, bp->buf,
1119 atomicio(vwrite, ofd, bp->buf, count) != count) {
1124 ftruncate(ofd, size) != 0) {
1131 if (fchmod(ofd, omode)) {
1142 if (fchmod(ofd, omode & ~mask)) {
1151 if (close(ofd) == -1) {