3
0

messages.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. */
  20. #include "busybox.h"
  21. #include "libbb.h"
  22. #ifdef L_full_version
  23. #ifndef BB_EXTRA_VERSION
  24. #define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_BT ")"
  25. #else
  26. #define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_EXTRA_VERSION ")"
  27. #endif
  28. const char * const libbb_msg_full_version = LIBBB_BANNER;
  29. #endif
  30. #ifdef L_memory_exhausted
  31. const char * const bb_msg_memory_exhausted = "memory exhausted";
  32. #endif
  33. #ifdef L_invalid_date
  34. const char * const bb_msg_invalid_date = "invalid date `%s'";
  35. #endif
  36. #ifdef L_io_error
  37. const char * const bb_msg_io_error = "%s: input/output error -- %m";
  38. #endif
  39. #ifdef L_write_error
  40. const char * const bb_msg_write_error = "Write Error";
  41. #endif
  42. #ifdef L_read_error
  43. const char * const bb_msg_read_error = "Read Error";
  44. #endif
  45. #ifdef L_name_longer_than_foo
  46. const char * const bb_msg_name_longer_than_foo = "Names longer than %d chars not supported.";
  47. #endif
  48. #ifdef L_unknown
  49. const char * const bb_msg_unknown = "(unknown)";
  50. #endif
  51. #ifdef L_can_not_create_raw_socket
  52. const char * const bb_msg_can_not_create_raw_socket = "can`t create raw socket";
  53. #endif
  54. #ifdef L_perm_denied_are_you_root
  55. const char * const bb_msg_perm_denied_are_you_root = "permission denied. (are you root?)";
  56. #endif
  57. #ifdef L_msg_standard_input
  58. const char * const bb_msg_standard_input = "standard input";
  59. #endif
  60. #ifdef L_msg_standard_output
  61. const char * const bb_msg_standard_output = "standard output";
  62. #endif
  63. #ifdef L_passwd_file
  64. #define PASSWD_FILE "/etc/passwd"
  65. const char * const bb_path_passwd_file = PASSWD_FILE;
  66. #endif
  67. #ifdef L_shadow_file
  68. #define SHADOW_FILE "/etc/shadow"
  69. const char * const bb_path_shadow_file = SHADOW_FILE;
  70. #endif
  71. #ifdef L_group_file
  72. #define GROUP_FILE "/etc/group"
  73. const char * const bb_path_group_file = GROUP_FILE;
  74. #endif
  75. #ifdef L_gshadow_file
  76. #define GSHADOW_FILE "/etc/gshadow"
  77. const char * const bb_path_gshadow_file = GSHADOW_FILE;
  78. #endif
  79. #ifdef L_nologin_file
  80. #define NOLOGIN_FILE "/etc/nologin"
  81. const char * const bb_path_nologin_file = NOLOGIN_FILE;
  82. #endif
  83. #ifdef L_securetty_file
  84. #define SECURETTY_FILE "/etc/securetty"
  85. const char * const bb_path_securetty_file = SECURETTY_FILE;
  86. #endif
  87. #ifdef L_motd_file
  88. #define MOTD_FILE "/etc/motd"
  89. const char * const bb_path_motd_file = MOTD_FILE;
  90. #endif
  91. #ifdef L_shell_file
  92. const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL;
  93. #endif
  94. #ifdef L_bb_dev_null
  95. const char * const bb_dev_null = "/dev/null";
  96. #endif
  97. #ifdef L_bb_common_bufsiz1
  98. char bb_common_bufsiz1[BUFSIZ+1];
  99. #endif