aboutsummaryrefslogtreecommitdiff
path: root/sys/base/error.c
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-11 17:07:44 -0800
committerNicholas <nbnoll@eml.cc>2021-11-11 17:07:44 -0800
commitb375f3cdedb5b0e08745d100b40e38d2f8396a58 (patch)
treea51d5763646ff482c26e79bfc1dcebccbe4812a7 /sys/base/error.c
parent44b30ea0883af2827e618a45d472b47cf041a842 (diff)
parent9695ea005d4af93dcd60f74f10fd3c54499a182f (diff)
chore: merge master into laptop
Diffstat (limited to 'sys/base/error.c')
-rw-r--r--sys/base/error.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/sys/base/error.c b/sys/base/error.c
deleted file mode 100644
index dc6421d..0000000
--- a/sys/base/error.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <u.h>
-#include <base.h>
-
-void
-exits(char *s)
-{
- if (s == nil || *s == 0)
- exit(0);
-
- fputs(s, stderr);
- exit(1);
-}
-
-void
-errorf(byte* fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
-
- fprintf(stderr, "error: ");
- vfprintf(stderr, fmt, args);
-
- va_end(args);
-}
-
-void
-verrorf(byte* fmt, va_list args)
-{
- printf("error: ");
- vprintf(fmt, args);
- printf("\n");
-}
-
-void
-panicf(byte* fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
-
- printf("panic: ");
- vprintf(fmt, args);
- printf("\n");
-
- va_end(args);
-
- exit(1);
-}
-
-void
-vpanicf(byte* fmt, va_list args)
-{
- printf("panic: ");
- vprintf(fmt, args);
- printf("\n");
-
- exit(1);
-}