diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-07-23 20:17:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-07-23 20:17:20 -0700 |
commit | 5d8b80236056e229105c158c5aca8ba34d73e468 (patch) | |
tree | c13d377b2db1de47b0b618f390c20f4d3cc24790 /safepath.h | |
parent | 06540c9cef675fd8665325301384f3cc491e9f66 (diff) | |
download | safepath-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |