aboutsummaryrefslogtreecommitdiffstats
path: root/safepath.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-07-23 20:17:20 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-07-23 20:17:20 -0700
commit5d8b80236056e229105c158c5aca8ba34d73e468 (patch)
treec13d377b2db1de47b0b618f390c20f4d3cc24790 /safepath.h
parent06540c9cef675fd8665325301384f3cc491e9f66 (diff)
downloadsafepath-5d8b80236056e229105c158c5aca8ba34d73e468.tar.gz
safepath-5d8b80236056e229105c158c5aca8ba34d73e468.tar.bz2
safepath-5d8b80236056e229105c158c5aca8ba34d73e468.zip
Map safepath errors to strings.
* safepath.[ch]: New function, safepath_strerr. * testsp.c (main): Use new function to print message, rather than integer code.
Diffstat (limited to 'safepath.h')
-rw-r--r--safepath.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/safepath.h b/safepath.h
index b6a8a39..db83d4c 100644
--- a/safepath.h
+++ b/safepath.h
@@ -47,6 +47,7 @@ enum {
};
int safepath_check(const char *name);
+const char *safepath_strerr(int err);
/* Common POSIX API wrappers */
int safepath_open(const char *name, int flags);