Mercurial > nomad > old-fuse
changeset 148:af48a9cab13b
common: add NERR_{EALREADY,EPROTO} to match the RPC spec
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sun, 18 Oct 2015 14:09:09 -0400 |
parents | 4b3090345a62 |
children | 127b60f41bbf |
files | src/common/error.c src/common/include/nomad/rpc.h |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/common/error.c Sun Oct 18 14:08:39 2015 -0400 +++ b/src/common/error.c Sun Oct 18 14:09:09 2015 -0400 @@ -29,8 +29,10 @@ int errno_to_nerr(int e) { switch (e) { + MAP_ERRNO(EALREADY); MAP_ERRNO(EEXIST); MAP_ERRNO(ENOENT); + MAP_ERRNO(EPROTO); case 0: return NERR_SUCCESS; }
--- a/src/common/include/nomad/rpc.h Sun Oct 18 14:08:39 2015 -0400 +++ b/src/common/include/nomad/rpc.h Sun Oct 18 14:09:09 2015 -0400 @@ -35,6 +35,8 @@ #define NERR_SUCCESS 0 #define NERR_ENOENT 2 #define NERR_EEXIST 17 +#define NERR_EPROTO 71 +#define NERR_EALREADY 149 extern int errno_to_nerr(int e);