about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-08-14 10:55:00 -0700
committerKartik Agaram <vc@akkartik.com>2018-08-14 10:55:00 -0700
commita754efc54223240c351d14869f32cd90ada958c1 (patch)
tree1e344cc4c90ada6f781b6a501d05cf7003900f0f
parent7328af20a1921d9258a60803ee5367da97a6082e (diff)
downloadmu-a754efc54223240c351d14869f32cd90ada958c1.tar.gz
4522
Don't use trace infrastructure if you're just going to immediately exit.
-rw-r--r--subx/020syscalls.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/020syscalls.cc b/subx/020syscalls.cc
index 2f6ca994..1cc54f66 100644
--- a/subx/020syscalls.cc
+++ b/subx/020syscalls.cc
@@ -80,18 +80,18 @@ void process_int80() {
 void check_flags(int reg) {
   uint32_t flags = Reg[reg].u;
   if (flags != ((flags & O_RDONLY) | (flags & O_WRONLY))) {
-    raise << HEXWORD << EIP << ": most POSIX flags to the open() syscall are not supported. Just O_RDONLY and O_WRONLY for now. Zero concurrent access support.\n" << end();
+    cerr << HEXWORD << EIP << ": most POSIX flags to the open() syscall are not supported. Just O_RDONLY and O_WRONLY for now. Zero concurrent access support.\n";
     exit(1);
   }
   if ((flags & O_RDONLY) && (flags & O_WRONLY)) {
-    raise << HEXWORD << EIP << ": can't open a file for both reading and writing at once. See http://man7.org/linux/man-pages/man2/open.2.html.\n" << end();
+    cerr << HEXWORD << EIP << ": can't open a file for both reading and writing at once. See http://man7.org/linux/man-pages/man2/open.2.html.\n";
     exit(1);
   }
 }
 
 void check_mode(int reg) {
   if (Reg[reg].u != 0600) {
-    raise << HEXWORD << EIP << ": SubX is oblivious to file permissions; register " << reg << " must be 0.\n" << end();
+    cerr << HEXWORD << EIP << ": SubX is oblivious to file permissions; register " << reg << " must be 0.\n";
     exit(1);
   }
 }