Lines Matching defs:ofd
917 int amt, exists, first, ofd;
1090 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1095 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
1096 (void) close(ofd);
1127 if (atomicio(vwrite, ofd, bp->buf,
1141 atomicio(vwrite, ofd, bp->buf, count) != count) {
1146 ftruncate(ofd, size) != 0) {
1153 if (fchmod(ofd, omode)) {
1164 if (fchmod(ofd, omode & ~mask)) {
1173 if (close(ofd) == -1) {