X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fmessages.c;h=12a165ad77bdc07399f027e68c689e6f21815a57;hb=ec1a4b5a521b5adf295bc757c25231910f8c854b;hp=bd41216a53e3917fbd8e61706619c10f284694be;hpb=7d219aab70e6951ab82c27c202cac05016696723;p=oweals%2Fbusybox.git diff --git a/libbb/messages.c b/libbb/messages.c index bd41216a5..12a165ad7 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -19,7 +19,6 @@ const char bb_msg_memory_exhausted[] = "memory exhausted"; const char bb_msg_invalid_date[] = "invalid date '%s'"; const char bb_msg_write_error[] = "write error"; const char bb_msg_read_error[] = "read error"; -const char bb_msg_name_longer_than_foo[] = "names longer than %d chars not supported"; const char bb_msg_unknown[] = "(unknown)"; const char bb_msg_can_not_create_raw_socket[] = "can't create raw socket"; const char bb_msg_perm_denied_are_you_root[] = "permission denied. (are you root?)"; @@ -28,6 +27,9 @@ const char bb_msg_invalid_arg[] = "invalid argument '%s' to '%s'"; const char bb_msg_standard_input[] = "standard input"; const char bb_msg_standard_output[] = "standard output"; +const char bb_str_default[] = "default"; +const char bb_hexdigits_upcase[] = "0123456789ABCDEF"; + const char bb_path_passwd_file[] = "/etc/passwd"; const char bb_path_shadow_file[] = "/etc/shadow"; const char bb_path_group_file[] = "/etc/group"; @@ -38,6 +40,9 @@ const char bb_path_motd_file[] = "/etc/motd"; const char bb_default_login_shell[] = LIBBB_DEFAULT_LOGIN_SHELL; const char bb_dev_null[] = "/dev/null"; +const int const_int_0; +const int const_int_1 = 1; + #include /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ const char bb_path_wtmp_file[] = @@ -50,3 +55,7 @@ WTMP_FILE; #endif char bb_common_bufsiz1[BUFSIZ+1]; + +struct globals; +/* Make it reside in R/W memory: */ +struct globals *const ptr_to_globals __attribute__ ((section (".data")));