diff --git a/libgloss/riscv/semihost-sys_fdtable.c b/libgloss/riscv/semihost-sys_fdtable.c index 152c92d15..546291a26 100644 --- a/libgloss/riscv/semihost-sys_fdtable.c +++ b/libgloss/riscv/semihost-sys_fdtable.c @@ -32,18 +32,12 @@ init_semihosting () /* Set up std streams. */ /* stdin. */ handle = _open (":tt", O_RDONLY); - fdtable[STDIN_FILENO].handle = handle; - fdtable[STDIN_FILENO].pos = 0; /* stdout. */ handle = _open (":tt", O_WRONLY|O_CREAT|O_TRUNC); - fdtable[STDOUT_FILENO].handle = handle; - fdtable[STDOUT_FILENO].pos = 0; /* stderr. */ handle = _open (":tt", O_WRONLY|O_CREAT|O_APPEND); - fdtable[STDERR_FILENO].handle = handle; - fdtable[STDERR_FILENO].pos = 0; } /* Add entry to fdtable. */