2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
[deliverable/binutils-gdb.git] / sim / common / callback.c
index f83dd547c220e49d0be3c32cbfdab0b1222e0d31..18bcc80d4d62b79f569514d18e2c347396b6fb4c 100644 (file)
@@ -1143,3 +1143,14 @@ cb_is_stdin (host_callback *cb, int fd)
   return fdbad (cb, fd) ? 0 : fdmap (cb, fd) == 0;
 }
 
+int
+cb_is_stdout (host_callback *cb, int fd)
+{
+  return fdbad (cb, fd) ? 0 : fdmap (cb, fd) == 1;
+}
+
+int
+cb_is_stderr (host_callback *cb, int fd)
+{
+  return fdbad (cb, fd) ? 0 : fdmap (cb, fd) == 2;
+}
This page took 0.022583 seconds and 4 git commands to generate.