Searched refs:newfd (Results 1 – 3 of 3) sorted by relevance
139 int newfd; in uv_tty_init() local155 newfd = -1; in uv_tty_init()194 newfd = r; in uv_tty_init()196 r = uv__dup2_cloexec(newfd, fd); in uv_tty_init()202 uv__close(newfd); in uv_tty_init()206 fd = newfd; in uv_tty_init()223 if (newfd != -1) in uv_tty_init()224 uv__close(newfd); in uv_tty_init()
1098 int uv__dup2_cloexec(int oldfd, int newfd) { in uv__dup2_cloexec() argument1102 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec()1111 r = dup2(oldfd, newfd); /* Never retry. */ in uv__dup2_cloexec()1115 err = uv__cloexec(newfd, 1); in uv__dup2_cloexec()1117 uv__close(newfd); in uv__dup2_cloexec()
290 int uv__dup2_cloexec(int oldfd, int newfd);
Completed in 17 milliseconds