Lines Matching defs:tmpfd
252 int tmpfd;
286 tmpfd = pr_open(g_proc, file, oflags, 0);
288 if (tmpfd < 0) {
296 if (tmpfd != fd) {
297 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD,
299 (void) pr_close(g_proc, tmpfd);
314 tmpfd = pr_open(g_proc, "/dev/tty", O_RDWR, 0);
316 if (tmpfd != fd && tmpfd >= 0) {
317 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD, (void *)(uintptr_t)fd);
318 (void) pr_close(g_proc, tmpfd);