From eb639c500494ee8c4ca8978c50451dca10112744 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 11 Oct 2007 18:44:07 +0000 Subject: 2007-10-11 Jesper Nilsson * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions. * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2. 2007-10-11 Jesper Nilsson * callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes. 2007-10-11 Jesper Nilsson * sim/cris/c/freopen2.c: Added testcase. --- include/gdb/ChangeLog | 2 +- include/gdb/callback.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index 70266e2..67e5d97 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,6 +1,6 @@ 2007-10-11 Jesper Nilsson - * callback.h (cb_is_stdin): Add prototype. + * callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes. 2007-08-23 Joel Brobecker diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 2245c87..eb991f7 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -315,8 +315,10 @@ int cb_host_to_target_stat PARAMS ((host_callback *, const struct stat *, PTR)); /* Translate a value to target endian. */ void cb_store_target_endian PARAMS ((host_callback *, char *, int, long)); -/* Test if the fd is stdin. */ +/* Tests for special fds. */ int cb_is_stdin PARAMS ((host_callback *, int)); +int cb_is_stdout PARAMS ((host_callback *, int)); +int cb_is_stderr PARAMS ((host_callback *, int)); /* Perform a system call. */ CB_RC cb_syscall PARAMS ((host_callback *, CB_SYSCALL *)); -- cgit v1.1