blob: 5aba7e69313ad3a8d0c43f351ea32d108b0b4680 [file] [log] [blame]
Eric Andersen04095e52001-04-25 05:39:18 +00001/* vi: set sw=4 ts=4: */
2/*
Eric Andersenc7bda1c2004-03-15 08:29:22 +00003 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
Eric Andersen04095e52001-04-25 05:39:18 +00004 *
Bernhard Reutner-Fischer421d9e52006-04-03 16:39:31 +00005 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
Eric Andersen04095e52001-04-25 05:39:18 +00006 */
7
Mark Whitleyc29c44c2001-04-25 18:06:21 +00008#include "libbb.h"
Eric Andersen04095e52001-04-25 05:39:18 +00009
10#ifdef L_full_version
"Vladimir N. Oleynik"dd1ccdd2006-02-16 15:40:24 +000011#ifndef BB_EXTRA_VERSION
Rob Landley519d7df2006-08-09 20:56:23 +000012#define BANNER "BusyBox v" BB_VER " (" BB_BT ")"
"Vladimir N. Oleynik"dd1ccdd2006-02-16 15:40:24 +000013#else
Rob Landley519d7df2006-08-09 20:56:23 +000014#define BANNER "BusyBox v" BB_VER " (" BB_EXTRA_VERSION ")"
"Vladimir N. Oleynik"dd1ccdd2006-02-16 15:40:24 +000015#endif
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000016const char BB_BANNER[] = BANNER;
17const char bb_msg_full_version[] = BANNER " multi-call binary";
Eric Andersen04095e52001-04-25 05:39:18 +000018#endif
Rob Landley519d7df2006-08-09 20:56:23 +000019
Eric Andersen04095e52001-04-25 05:39:18 +000020#ifdef L_memory_exhausted
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000021 const char bb_msg_memory_exhausted[] = "memory exhausted";
Eric Andersen04095e52001-04-25 05:39:18 +000022#endif
23#ifdef L_invalid_date
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000024 const char bb_msg_invalid_date[] = "invalid date `%s'";
Eric Andersen04095e52001-04-25 05:39:18 +000025#endif
26#ifdef L_io_error
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000027 const char bb_msg_io_error[] = "%s: input/output error -- %m";
Eric Andersen04095e52001-04-25 05:39:18 +000028#endif
29#ifdef L_write_error
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000030 const char bb_msg_write_error[] = "write error";
Eric Andersen04095e52001-04-25 05:39:18 +000031#endif
Eric Andersen3cd19862005-04-16 07:42:35 +000032#ifdef L_read_error
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000033 const char bb_msg_read_error[] = "read error";
Eric Andersen3cd19862005-04-16 07:42:35 +000034#endif
Eric Andersen04095e52001-04-25 05:39:18 +000035#ifdef L_name_longer_than_foo
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000036 const char bb_msg_name_longer_than_foo[] = "names longer than %d chars not supported";
Eric Andersen04095e52001-04-25 05:39:18 +000037#endif
Eric Andersen5f265b72001-05-11 16:58:46 +000038#ifdef L_unknown
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000039 const char bb_msg_unknown[] = "(unknown)";
Eric Andersen5f265b72001-05-11 16:58:46 +000040#endif
Eric Andersen7467c8d2001-07-12 20:26:32 +000041#ifdef L_can_not_create_raw_socket
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000042 const char bb_msg_can_not_create_raw_socket[] = "can't create raw socket";
Manuel Novoa III cad53642003-03-19 09:13:01 +000043#endif
44#ifdef L_perm_denied_are_you_root
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000045 const char bb_msg_perm_denied_are_you_root[] = "permission denied. (are you root?)";
Manuel Novoa III cad53642003-03-19 09:13:01 +000046#endif
Bernhard Reutner-Fischer19008b82006-06-07 20:17:41 +000047#ifdef L_msg_requires_arg
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000048 const char bb_msg_requires_arg[] = "%s requires an argument";
Bernhard Reutner-Fischer19008b82006-06-07 20:17:41 +000049#endif
50#ifdef L_msg_invalid_arg
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000051 const char bb_msg_invalid_arg[] = "invalid argument `%s' to `%s'";
Bernhard Reutner-Fischer19008b82006-06-07 20:17:41 +000052#endif
Manuel Novoa III cad53642003-03-19 09:13:01 +000053#ifdef L_msg_standard_input
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000054 const char bb_msg_standard_input[] = "standard input";
Manuel Novoa III cad53642003-03-19 09:13:01 +000055#endif
56#ifdef L_msg_standard_output
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000057 const char bb_msg_standard_output[] = "standard output";
Eric Andersen7467c8d2001-07-12 20:26:32 +000058#endif
Eric Andersen27f64e12002-06-23 04:24:25 +000059
60#ifdef L_passwd_file
61#define PASSWD_FILE "/etc/passwd"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000062const char bb_path_passwd_file[] = PASSWD_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000063#endif
64
65#ifdef L_shadow_file
66#define SHADOW_FILE "/etc/shadow"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000067const char bb_path_shadow_file[] = SHADOW_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000068#endif
69
70#ifdef L_group_file
71#define GROUP_FILE "/etc/group"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000072const char bb_path_group_file[] = GROUP_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000073#endif
74
75#ifdef L_gshadow_file
76#define GSHADOW_FILE "/etc/gshadow"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000077const char bb_path_gshadow_file[] = GSHADOW_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000078#endif
79
80#ifdef L_nologin_file
81#define NOLOGIN_FILE "/etc/nologin"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000082const char bb_path_nologin_file[] = NOLOGIN_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000083#endif
84
85#ifdef L_securetty_file
86#define SECURETTY_FILE "/etc/securetty"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000087const char bb_path_securetty_file[] = SECURETTY_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000088#endif
89
90#ifdef L_motd_file
91#define MOTD_FILE "/etc/motd"
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000092const char bb_path_motd_file[] = MOTD_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000093#endif
94
Glenn L McGrathdc4e75e2003-09-02 02:36:18 +000095#ifdef L_shell_file
Denis Vlasenko0b5fd452006-09-19 09:55:09 +000096const char bb_default_login_shell[] = LIBBB_DEFAULT_LOGIN_SHELL;
Glenn L McGrathdc4e75e2003-09-02 02:36:18 +000097#endif
98
"Vladimir N. Oleynik"6c35c7c2005-10-12 15:34:25 +000099#ifdef L_bb_dev_null
Denis Vlasenko0b5fd452006-09-19 09:55:09 +0000100const char bb_dev_null[] = "/dev/null";
"Vladimir N. Oleynik"86a10732005-10-12 15:21:32 +0000101#endif
102
Bernhard Reutner-Fischer781e42d2006-05-26 14:41:40 +0000103#ifdef L_bb_path_wtmp_file
104#include <utmp.h>
105/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */
Denis Vlasenko0b5fd452006-09-19 09:55:09 +0000106const char bb_path_wtmp_file[] =
Bernhard Reutner-Fischer781e42d2006-05-26 14:41:40 +0000107#if defined _PATH_WTMP
108_PATH_WTMP;
109#elif defined WTMP_FILE
110WTMP_FILE;
111#else
112# error unknown path to wtmp file
113#endif
114#endif
115
116
"Vladimir N. Oleynik"6f347ef2005-10-15 10:23:55 +0000117#ifdef L_bb_common_bufsiz1
118char bb_common_bufsiz1[BUFSIZ+1];
119#endif