Lines Matching defs:f2
138 * Make f2 be a synonym (including the close-on-exec flag) for f1, which is
139 * then closed. If f2 is descriptor 0, modify the global ioset variable
143 renamef(int f1, int f2)
146 if (f1 != f2) {
147 dup(f1 | DUPFLG, f2);
149 if (f2 == 0)
155 if (f1 != f2) {
156 fs = fcntl(f2, 1, 0);
157 close(f2);
158 fcntl(f1, 0, f2);
161 fcntl(f2, 2, 1);
162 if (f2 == 0)