Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 1 | /* vi: set sw=4 ts=4: */ |
| 2 | /* |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 3 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 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 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 21 | #include "busybox.h" |
Mark Whitley | c29c44c | 2001-04-25 18:06:21 +0000 | [diff] [blame] | 22 | #include "libbb.h" |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 23 | |
| 24 | #ifdef L_full_version |
"Vladimir N. Oleynik" | dd1ccdd | 2006-02-16 15:40:24 +0000 | [diff] [blame^] | 25 | #ifndef BB_EXTRA_VERSION |
| 26 | #define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_BT ")" |
| 27 | #else |
| 28 | #define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_EXTRA_VERSION ")" |
| 29 | #endif |
| 30 | const char * const libbb_msg_full_version = LIBBB_BANNER; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 31 | #endif |
| 32 | #ifdef L_memory_exhausted |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 33 | const char * const bb_msg_memory_exhausted = "memory exhausted"; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 34 | #endif |
| 35 | #ifdef L_invalid_date |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 36 | const char * const bb_msg_invalid_date = "invalid date `%s'"; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 37 | #endif |
| 38 | #ifdef L_io_error |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 39 | const char * const bb_msg_io_error = "%s: input/output error -- %m"; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 40 | #endif |
| 41 | #ifdef L_write_error |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 42 | const char * const bb_msg_write_error = "Write Error"; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 43 | #endif |
Eric Andersen | 3cd1986 | 2005-04-16 07:42:35 +0000 | [diff] [blame] | 44 | #ifdef L_read_error |
| 45 | const char * const bb_msg_read_error = "Read Error"; |
| 46 | #endif |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 47 | #ifdef L_name_longer_than_foo |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 48 | const char * const bb_msg_name_longer_than_foo = "Names longer than %d chars not supported."; |
Eric Andersen | 04095e5 | 2001-04-25 05:39:18 +0000 | [diff] [blame] | 49 | #endif |
Eric Andersen | 5f265b7 | 2001-05-11 16:58:46 +0000 | [diff] [blame] | 50 | #ifdef L_unknown |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 51 | const char * const bb_msg_unknown = "(unknown)"; |
Eric Andersen | 5f265b7 | 2001-05-11 16:58:46 +0000 | [diff] [blame] | 52 | #endif |
Eric Andersen | 7467c8d | 2001-07-12 20:26:32 +0000 | [diff] [blame] | 53 | #ifdef L_can_not_create_raw_socket |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 54 | const char * const bb_msg_can_not_create_raw_socket = "can`t create raw socket"; |
| 55 | #endif |
| 56 | #ifdef L_perm_denied_are_you_root |
| 57 | const char * const bb_msg_perm_denied_are_you_root = "permission denied. (are you root?)"; |
| 58 | #endif |
| 59 | #ifdef L_msg_standard_input |
| 60 | const char * const bb_msg_standard_input = "standard input"; |
| 61 | #endif |
| 62 | #ifdef L_msg_standard_output |
| 63 | const char * const bb_msg_standard_output = "standard output"; |
Eric Andersen | 7467c8d | 2001-07-12 20:26:32 +0000 | [diff] [blame] | 64 | #endif |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 65 | |
| 66 | #ifdef L_passwd_file |
| 67 | #define PASSWD_FILE "/etc/passwd" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 68 | const char * const bb_path_passwd_file = PASSWD_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 69 | #endif |
| 70 | |
| 71 | #ifdef L_shadow_file |
| 72 | #define SHADOW_FILE "/etc/shadow" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 73 | const char * const bb_path_shadow_file = SHADOW_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 74 | #endif |
| 75 | |
| 76 | #ifdef L_group_file |
| 77 | #define GROUP_FILE "/etc/group" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 78 | const char * const bb_path_group_file = GROUP_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 79 | #endif |
| 80 | |
| 81 | #ifdef L_gshadow_file |
| 82 | #define GSHADOW_FILE "/etc/gshadow" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 83 | const char * const bb_path_gshadow_file = GSHADOW_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 84 | #endif |
| 85 | |
| 86 | #ifdef L_nologin_file |
| 87 | #define NOLOGIN_FILE "/etc/nologin" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 88 | const char * const bb_path_nologin_file = NOLOGIN_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 89 | #endif |
| 90 | |
| 91 | #ifdef L_securetty_file |
| 92 | #define SECURETTY_FILE "/etc/securetty" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 93 | const char * const bb_path_securetty_file = SECURETTY_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 94 | #endif |
| 95 | |
| 96 | #ifdef L_motd_file |
| 97 | #define MOTD_FILE "/etc/motd" |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 98 | const char * const bb_path_motd_file = MOTD_FILE; |
Eric Andersen | 27f64e1 | 2002-06-23 04:24:25 +0000 | [diff] [blame] | 99 | #endif |
| 100 | |
Glenn L McGrath | dc4e75e | 2003-09-02 02:36:18 +0000 | [diff] [blame] | 101 | #ifdef L_shell_file |
| 102 | const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL; |
| 103 | #endif |
| 104 | |
"Vladimir N. Oleynik" | 6c35c7c | 2005-10-12 15:34:25 +0000 | [diff] [blame] | 105 | #ifdef L_bb_dev_null |
| 106 | const char * const bb_dev_null = "/dev/null"; |
"Vladimir N. Oleynik" | 86a1073 | 2005-10-12 15:21:32 +0000 | [diff] [blame] | 107 | #endif |
| 108 | |
"Vladimir N. Oleynik" | 6f347ef | 2005-10-15 10:23:55 +0000 | [diff] [blame] | 109 | #ifdef L_bb_common_bufsiz1 |
| 110 | char bb_common_bufsiz1[BUFSIZ+1]; |
| 111 | #endif |