Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 3 of 3) sorted by relevance

/libuv/src/unix/
H A Dtty.c139 int newfd; in uv_tty_init() local
155 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()
H A Dcore.c1098 int uv__dup2_cloexec(int oldfd, int newfd) { in uv__dup2_cloexec() argument
1102 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()
H A Dinternal.h290 int uv__dup2_cloexec(int oldfd, int newfd);

Completed in 11 milliseconds