Lines Matching defs:dup2
184 dup2_func_t dup2;
364 if (_socket_funcs.dup2(shadow_fd, fd) < 0) {
1362 "failed to dup2 shadow into orig fd:%d\n", fd);
1552 __sdp_log(1, "LISTEN: cleaning TCP socket and dup2 SDP into it\n");
1555 "failed to dup2 shadow into orig fd:%d\n", fd);
1671 /*..dup2 -- replacement dup2 call. */
1673 int dup2(int fd, int newfd)
1683 if (NULL == _socket_funcs.dup2) {
1684 __sdp_log(9, "Error dup2: no implementation for dup2 found\n");
1699 /* dup2 closes the target file desc if it is a valid fd */
1712 newfd = _socket_funcs.dup2(fd, newfd);
1714 __sdp_log(9, "Error dup2: new fd <%d> out of range.\n", newfd);
1725 __sdp_log(9, "Error dup2: new shadow fd <%d> out of range.\n",
2500 _socket_funcs.dup2 = dlsym(__libc_dl_handle, "dup2");