From 4629c28f968371e218ee1e89c957a93e94864fbd Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 24 Aug 2008 23:03:34 +0200 Subject: [PATCH] Document various error reporting functions. --- box/box.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/box/box.c b/box/box.c index e3dadea..1aa3084 100644 --- a/box/box.c +++ b/box/box.c @@ -133,6 +133,7 @@ flush_line(void) partial_line = 0; } +/* Report an error of the sandbox itself */ static void NONRET __attribute__((format(printf,1,2))) die(char *msg, ...) { @@ -147,6 +148,7 @@ die(char *msg, ...) box_exit(2); } +/* Report an error of the program inside the sandbox */ static void NONRET __attribute__((format(printf,1,2))) err(char *msg, ...) { @@ -166,6 +168,7 @@ err(char *msg, ...) box_exit(1); } +/* Write a message, but only if in verbose mode */ static void __attribute__((format(printf,1,2))) msg(char *msg, ...) { -- 2.39.2