/src/string_arrays.c

https://bitbucket.org/drainware/squid · C · 117 lines · 81 code · 5 blank · 31 comment · 0 complexity · 6bc1843e90649bec15fca52663e20ca5 MD5 · raw file

  1. /*
  2. * $Id$
  3. *
  4. *
  5. * SQUID Web Proxy Cache http://www.squid-cache.org/
  6. * ----------------------------------------------------------
  7. *
  8. * Squid is the result of efforts by numerous individuals from
  9. * the Internet community; see the CONTRIBUTORS file for full
  10. * details. Many organizations have provided support for Squid's
  11. * development; see the SPONSORS file for full details. Squid is
  12. * Copyrighted (C) 2001 by the Regents of the University of
  13. * California; see the COPYRIGHT file for full details. Squid
  14. * incorporates software developed and/or copyrighted by other
  15. * sources; see the CREDITS file for full details.
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU General Public License as published by
  19. * the Free Software Foundation; either version 2 of the License, or
  20. * (at your option) any later version.
  21. *
  22. * This program is distributed in the hope that it will be useful,
  23. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. * GNU General Public License for more details.
  26. *
  27. * You should have received a copy of the GNU General Public License
  28. * along with this program; if not, write to the Free Software
  29. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  30. *
  31. */
  32. const char *err_type_str[] = {
  33. "ERR_NONE",
  34. "ERR_READ_TIMEOUT",
  35. "ERR_LIFETIME_EXP",
  36. "ERR_READ_ERROR",
  37. "ERR_WRITE_ERROR",
  38. "ERR_SHUTTING_DOWN",
  39. "ERR_CONNECT_FAIL",
  40. "ERR_SECURE_CONNECT_FAIL",
  41. "ERR_INVALID_REQ",
  42. "ERR_UNSUP_REQ",
  43. "ERR_INVALID_URL",
  44. "ERR_SOCKET_FAILURE",
  45. "ERR_DNS_FAIL",
  46. "ERR_CANNOT_FORWARD",
  47. "ERR_FORWARDING_DENIED",
  48. "ERR_NO_RELAY",
  49. "ERR_ZERO_SIZE_OBJECT",
  50. "ERR_PRECONDITION_FAILED",
  51. "ERR_FTP_DISABLED",
  52. "ERR_FTP_FAILURE",
  53. "ERR_URN_RESOLVE",
  54. "ERR_ACCESS_DENIED",
  55. "ERR_CACHE_ACCESS_DENIED",
  56. "ERR_CACHE_MGR_ACCESS_DENIED",
  57. "ERR_SQUID_SIGNATURE",
  58. "ERR_FTP_PUT_CREATED",
  59. "ERR_FTP_PUT_MODIFIED",
  60. "ERR_FTP_PUT_ERROR",
  61. "ERR_FTP_NOT_FOUND",
  62. "ERR_FTP_FORBIDDEN",
  63. "ERR_FTP_UNAVAILABLE",
  64. "ERR_ONLY_IF_CACHED_MISS",
  65. "ERR_TOO_BIG",
  66. "TCP_RESET",
  67. "ERR_ESI",
  68. "ERR_INVALID_RESP",
  69. "ERR_ICAP_FAILURE",
  70. "ERR_UNSUP_HTTPVERSION",
  71. "ERR_GATEWAY_FAILURE",
  72. "ERR_MAX"
  73. };
  74. const char *lookup_t_str[] = {
  75. "LOOKUP_NONE",
  76. "LOOKUP_HIT",
  77. "LOOKUP_MISS"
  78. };
  79. const char *icp_opcode_str[] = {
  80. "ICP_INVALID",
  81. "ICP_QUERY",
  82. "ICP_HIT",
  83. "ICP_MISS",
  84. "ICP_ERR",
  85. "ICP_SEND",
  86. "ICP_SENDA",
  87. "ICP_DATABEG",
  88. "ICP_DATA",
  89. "ICP_DATAEND",
  90. "ICP_SECHO",
  91. "ICP_DECHO",
  92. "ICP_NOTIFY",
  93. "ICP_INVALIDATE",
  94. "ICP_DELETE",
  95. "ICP_UNUSED15",
  96. "ICP_UNUSED16",
  97. "ICP_UNUSED17",
  98. "ICP_UNUSED18",
  99. "ICP_UNUSED19",
  100. "ICP_UNUSED20",
  101. "ICP_MISS_NOFETCH",
  102. "ICP_DENIED",
  103. "ICP_HIT_OBJ",
  104. "ICP_END"
  105. };
  106. const char *swap_log_op_str[] = {
  107. "SWAP_LOG_NOP",
  108. "SWAP_LOG_ADD",
  109. "SWAP_LOG_DEL",
  110. "SWAP_LOG_VERSION",
  111. "SWAP_LOG_MAX"
  112. };