summaryrefslogtreecommitdiff
path: root/lib/Output.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-14 16:59:02 +0000
committerPixel <Pixel>2001-11-14 16:59:02 +0000
commitaa92df3c58daefb994da555fb45f2e3ee55f38d5 (patch)
tree6105f0ced059af0fceb10a29f318d0c13c83d051 /lib/Output.cc
parent9235fbc2a736da2c68eb2dc0a3c1007b4a202d5e (diff)
Latest and various changes
Diffstat (limited to 'lib/Output.cc')
-rw-r--r--lib/Output.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/Output.cc b/lib/Output.cc
index ab51c9f..9e7437f 100644
--- a/lib/Output.cc
+++ b/lib/Output.cc
@@ -30,3 +30,33 @@ String Output::GetName() {
return n;
}
+Stdout_t::Stdout_t() : Handle(dup(1)) {}
+
+bool Stdout_t::CanWrite() {
+ return 1;
+}
+
+bool Stdout_t::CanRead() {
+ return 0;
+}
+
+String Stdout_t::GetName() {
+ return "Stdout";
+}
+
+Stderr_t::Stderr_t() : Handle(dup(2)) {}
+
+bool Stderr_t::CanWrite() {
+ return 1;
+}
+
+bool Stderr_t::CanRead() {
+ return 0;
+}
+
+String Stderr_t::GetName() {
+ return "Stderr";
+}
+
+Stdout_t Stdout;
+Stderr_t Stderr;