Lines Matching refs:fd
34 int fd = rt_posix_stdio_set_console(dev_console->parent.name, O_RDWR); in rt_posix_stdio_init() local
35 if (fd < 0) in rt_posix_stdio_init()
40 sys_dup2(fd, 0); in rt_posix_stdio_init()
41 sys_dup2(fd, 1); in rt_posix_stdio_init()
42 sys_dup2(fd, 2); in rt_posix_stdio_init()
158 int fd = fileno(std_console); in rt_posix_stdio_set_console() local
160 return fd; in rt_posix_stdio_set_console()
182 int fd; in rt_posix_stdio_set_console() local
188 fd = open(name, mode, 0); in rt_posix_stdio_set_console()
189 if (fd >= 0) in rt_posix_stdio_set_console()
195 std_fd = fd; in rt_posix_stdio_set_console()