Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libproc/common/
H A Dproc_stdio.c39 static int cached_stderr_fd = -1; variable
57 if ((cached_stderr_fd = dup(2)) < 0) { in proc_initstdio()
64 (void) close(cached_stderr_fd); in proc_initstdio()
73 (void) close(cached_stderr_fd); in proc_initstdio()
83 (void) close(cached_stderr_fd); in proc_initstdio()
93 (void) dup2(cached_stderr_fd, 2); in proc_initstdio()
94 (void) close(cached_stderr_fd); in proc_initstdio()
151 errors += copy_fd(cached_stderr_fd, stderr, len); in proc_flushstdio()
167 (void) dup2(cached_stderr_fd, 2); in proc_finistdio()
168 (void) close(cached_stderr_fd); in proc_finistdio()