errno.h

00001 /*
00002  * netlink/errno.h              Error Numbers
00003  *
00004  *      This library is free software; you can redistribute it and/or
00005  *      modify it under the terms of the GNU Lesser General Public
00006  *      License as published by the Free Software Foundation version 2.1
00007  *      of the License.
00008  *
00009  * Copyright (c) 2008 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 #ifndef NETLINK_ERRNO_H_
00013 #define NETLINK_ERRNO_H_
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 #define NLE_SUCCESS             0
00020 #define NLE_FAILURE             1
00021 #define NLE_INTR                2
00022 #define NLE_BAD_SOCK            3
00023 #define NLE_AGAIN               4
00024 #define NLE_NOMEM               5
00025 #define NLE_EXIST               6
00026 #define NLE_INVAL               7
00027 #define NLE_RANGE               8
00028 #define NLE_MSGSIZE             9
00029 #define NLE_OPNOTSUPP           10
00030 #define NLE_AF_NOSUPPORT        11
00031 #define NLE_OBJ_NOTFOUND        12
00032 #define NLE_NOATTR              13
00033 #define NLE_MISSING_ATTR        14
00034 #define NLE_AF_MISMATCH         15
00035 #define NLE_SEQ_MISMATCH        16
00036 #define NLE_MSG_OVERFLOW        17
00037 #define NLE_MSG_TRUNC           18
00038 #define NLE_NOADDR              19
00039 #define NLE_SRCRT_NOSUPPORT     20
00040 #define NLE_MSG_TOOSHORT        21
00041 #define NLE_MSGTYPE_NOSUPPORT   22
00042 #define NLE_OBJ_MISMATCH        23
00043 #define NLE_NOCACHE             24
00044 #define NLE_BUSY                25
00045 #define NLE_PROTO_MISMATCH      26
00046 #define NLE_NOACCESS            27
00047 #define NLE_PERM                28
00048 #define NLE_PKTLOC_FILE         29
00049 #define NLE_PARSE_ERR           30
00050 
00051 #define NLE_MAX                 NLE_PARSE_ERR
00052 
00053 extern const char *     nl_geterror(int);
00054 extern void             nl_perror(int, const char *);
00055 extern int              nl_syserr2nlerr(int);
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060 
00061 #endif