From b981d7096356e3e92b66f0813881754fc69bf41d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 11 Oct 2007 18:40:29 +0000 Subject: 2007-10-11 Jesper Nilsson * callback.c (cb_is_stdin): Add. * syscall.c (cb_syscall): Test for stdin, not just fd 0. 2007-10-11 Jesper Nilsson * callback.h (cb_is_stdin): Add prototype. --- sim/common/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/syscall.c') diff --git a/sim/common/syscall.c b/sim/common/syscall.c index 379f7e1..a3e7560 100644 --- a/sim/common/syscall.c +++ b/sim/common/syscall.c @@ -291,7 +291,7 @@ cb_syscall (cb, sc) while (count > 0) { - if (fd == 0) + if (cb_is_stdin (cb, fd)) result = (int) (*cb->read_stdin) (cb, buf, (count < FILE_XFR_SIZE ? count : FILE_XFR_SIZE)); -- cgit v1.1