Home | History | Annotate | Download | only in coregrind

Lines Matching defs:newfd

57    Int newfd;
61 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit));
62 if (newfd != -1)
66 VG_(fcntl)(newfd, VKI_F_SETFD, VKI_FD_CLOEXEC);
68 vg_assert(newfd >= VG_(fd_hard_limit));
69 return newfd;
481 SysRes VG_(dup2) ( Int oldfd, Int newfd )
484 return VG_(do_syscall2)(__NR_dup2, oldfd, newfd);
486 return VG_(do_syscall3)(__NR_fcntl, oldfd, F_DUP2FD, newfd);