diff options
author | Patrick McHardy <kaber@trash.net> | 2008-10-24 04:50:21 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@plip.localdomain> | 2008-10-30 11:29:37 (GMT) |
commit | 37f9855f4c02960b483d4d992771837c5906405e (patch) | |
tree | cc84ca1ad8bcdf967adf90c5c0cd5a73eea27c59 /lib | |
parent | 334f551c5994f7a5a2163fd73ca20d201c7e7bf0 (diff) | |
download | libnl-37f9855f4c02960b483d4d992771837c5906405e.zip libnl-37f9855f4c02960b483d4d992771837c5906405e.tar.gz libnl-37f9855f4c02960b483d4d992771837c5906405e.tar.bz2 |
libnl: add some errno codes to nl_syserr2nlerr
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/error.c b/lib/error.c index 1ef7e5e..71ae722 100644 --- a/lib/error.c +++ b/lib/error.c @@ -83,6 +83,7 @@ int nl_syserr2nlerr(int error) switch (error) { case EBADF: return NLE_BAD_SOCK; case EADDRINUSE: return NLE_EXIST; + case EEXIST: return NLE_EXIST; case EADDRNOTAVAIL: return NLE_NOADDR; case ENOENT: return NLE_OBJ_NOTFOUND; case EINTR: return NLE_INTR; @@ -98,6 +99,7 @@ int nl_syserr2nlerr(int error) case EPROTONOSUPPORT: return NLE_PROTO_MISMATCH; case EOPNOTSUPP: return NLE_OPNOTSUPP; case EPERM: return NLE_PERM; + case EBUSY: return NLE_BUSY; default: return NLE_FAILURE; } } |