summaryrefslogtreecommitdiff
diff options
authorZygmunt Krynicki <me@zygoon.pl>2019-06-25 14:55:53 +0200
committerZygmunt Krynicki <me@zygoon.pl>2019-06-26 16:41:40 +0200
commit1ec6c6bb6d6b110debab5fa78d4d660fee1e6dce (patch)
treef859c4d97e58b97c4f34878f187fb1e1b03141bb
parent44e0899bb774f92a1731090b46b0b28ec0bf7508 (diff)
cmd/libsnap: add SC_INTERNAL_DOMAIN error domain
The error domain helps to differentiate errors with errno codes from those without them, or from errors with custom codes that have a specific range. Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
-rw-r--r--cmd/libsnap-confine-private/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/libsnap-confine-private/error.h b/cmd/libsnap-confine-private/error.h
index 4c539f57fc..bb9e9dd777 100644
--- a/cmd/libsnap-confine-private/error.h
+++ b/cmd/libsnap-confine-private/error.h
@@ -61,6 +61,11 @@ typedef struct sc_error {
#define SC_ERRNO_DOMAIN "errno"
/**
+ * Error domain for errors in the libsnap-confine-private library.
+ **/
+#define SC_INTERNAL_DOMAIN "libsnap-confine-private"
+
+/**
* Initialize a new error object.
*
* The domain is a cookie-like string that allows the caller to distinguish