errno.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * netlink/errno.h Error Numbers
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2008 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef NETLINK_ERRNO_H_
  12. #define NETLINK_ERRNO_H_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define NLE_SUCCESS 0
  17. #define NLE_FAILURE 1
  18. #define NLE_INTR 2
  19. #define NLE_BAD_SOCK 3
  20. #define NLE_AGAIN 4
  21. #define NLE_NOMEM 5
  22. #define NLE_EXIST 6
  23. #define NLE_INVAL 7
  24. #define NLE_RANGE 8
  25. #define NLE_MSGSIZE 9
  26. #define NLE_OPNOTSUPP 10
  27. #define NLE_AF_NOSUPPORT 11
  28. #define NLE_OBJ_NOTFOUND 12
  29. #define NLE_NOATTR 13
  30. #define NLE_MISSING_ATTR 14
  31. #define NLE_AF_MISMATCH 15
  32. #define NLE_SEQ_MISMATCH 16
  33. #define NLE_MSG_OVERFLOW 17
  34. #define NLE_MSG_TRUNC 18
  35. #define NLE_NOADDR 19
  36. #define NLE_SRCRT_NOSUPPORT 20
  37. #define NLE_MSG_TOOSHORT 21
  38. #define NLE_MSGTYPE_NOSUPPORT 22
  39. #define NLE_OBJ_MISMATCH 23
  40. #define NLE_NOCACHE 24
  41. #define NLE_BUSY 25
  42. #define NLE_PROTO_MISMATCH 26
  43. #define NLE_NOACCESS 27
  44. #define NLE_PERM 28
  45. #define NLE_PKTLOC_FILE 29
  46. #define NLE_PARSE_ERR 30
  47. #define NLE_NODEV 31
  48. #define NLE_IMMUTABLE 32
  49. #define NLE_DUMP_INTR 33
  50. #define NLE_MAX NLE_DUMP_INTR
  51. extern const char * nl_geterror(int);
  52. extern void nl_perror(int, const char *);
  53. extern int nl_syserr2nlerr(int);
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif