Lines Matching refs:f2
15 FILE* f2;
28 f2 = fopen(filename, mode);
29 if (!f2)
31 if (f2->fd == f->fd)
32 f2->fd = -1; /* avoid closing in fclose */
33 else if (dup3(f2->fd, f->fd, fl & O_CLOEXEC) < 0)
36 f->flags = (f->flags & F_PERM) | f2->flags;
37 f->read = f2->read;
38 f->write = f2->write;
39 f->seek = f2->seek;
40 f->close = f2->close;
42 fclose(f2);
49 fclose(f2);