Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-11 22:44:06 +0400
committerDaniel Jacobowitz <drow@false.org>2007-10-11 22:44:06 +0400
commitbaa0b449388d6022fba8a8d651b0dcec5e4777fa (patch)
tree08d24b5c14b06cb85ecaf6dfdd8e1f2f1d705745 /include/gdb
parent0f07c3b30f6e5332d3c5aebec1c21676f1d6b108 (diff)
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* 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 <jesper.nilsson@axis.com> * callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * sim/cris/c/freopen2.c: Added testcase.
Diffstat (limited to 'include/gdb')
-rw-r--r--include/gdb/ChangeLog2
-rw-r--r--include/gdb/callback.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index 70266e2cc..67e5d970d 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,6 +1,6 @@
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
- * 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 <brobecker@adacore.com>
diff --git a/include/gdb/callback.h b/include/gdb/callback.h
index 2245c87dc..eb991f74e 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 *));