Searched refs:_dup2 (Results 1 – 6 of 6) sorted by relevance
71 _dup2(_fileno(stdout), 1); in RouteStdioToConsole()75 _dup2(_fileno(stderr), 2); in RouteStdioToConsole()
144 #if !defined(_dup2)145 #define _dup2(x,y) dup2(x,y) macro
983 if (_dup2 (new_fd, old_fd) < 0) in g_console_win32_init()999 if (_dup2 (backup_fd, old_fd) < 0) in g_console_win32_init()1026 if (_dup2 (new_fd, preferred_fd) < 0) in g_console_win32_init()
347 int dup2(int fd1, int fd2) { return ::_dup2(fd1, fd2); } in dup2()
58 #define dup2 _dup2
28247 file\_dup2 direction in file\_dup to prevent segfault issue