blob: b9a5353a7ef88cb92d32d1eae2d432d64d1d6230 [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 */
8
Eric Andersenbdfd0d72001-10-24 05:00:29 +00009#include "busybox.h"
Mark Whitleyc29c44c2001-04-25 18:06:21 +000010#include "libbb.h"
Eric Andersen04095e52001-04-25 05:39:18 +000011
12#ifdef L_full_version
"Vladimir N. Oleynik"dd1ccdd2006-02-16 15:40:24 +000013#ifndef BB_EXTRA_VERSION
14#define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_BT ")"
15#else
16#define LIBBB_BANNER "BusyBox's library v" BB_VER " (" BB_EXTRA_VERSION ")"
17#endif
18 const char * const libbb_msg_full_version = LIBBB_BANNER;
Eric Andersen04095e52001-04-25 05:39:18 +000019#endif
20#ifdef L_memory_exhausted
Manuel Novoa III cad53642003-03-19 09:13:01 +000021 const char * const bb_msg_memory_exhausted = "memory exhausted";
Eric Andersen04095e52001-04-25 05:39:18 +000022#endif
23#ifdef L_invalid_date
Manuel Novoa III cad53642003-03-19 09:13:01 +000024 const char * const bb_msg_invalid_date = "invalid date `%s'";
Eric Andersen04095e52001-04-25 05:39:18 +000025#endif
26#ifdef L_io_error
Manuel Novoa III cad53642003-03-19 09:13:01 +000027 const char * const bb_msg_io_error = "%s: input/output error -- %m";
Eric Andersen04095e52001-04-25 05:39:18 +000028#endif
29#ifdef L_write_error
Manuel Novoa III cad53642003-03-19 09:13:01 +000030 const char * const 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
33 const char * const bb_msg_read_error = "Read Error";
34#endif
Eric Andersen04095e52001-04-25 05:39:18 +000035#ifdef L_name_longer_than_foo
Manuel Novoa III cad53642003-03-19 09:13:01 +000036 const char * const 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
Manuel Novoa III cad53642003-03-19 09:13:01 +000039 const char * const 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
Manuel Novoa III cad53642003-03-19 09:13:01 +000042 const char * const bb_msg_can_not_create_raw_socket = "can`t create raw socket";
43#endif
44#ifdef L_perm_denied_are_you_root
45 const char * const bb_msg_perm_denied_are_you_root = "permission denied. (are you root?)";
46#endif
47#ifdef L_msg_standard_input
48 const char * const bb_msg_standard_input = "standard input";
49#endif
50#ifdef L_msg_standard_output
51 const char * const bb_msg_standard_output = "standard output";
Eric Andersen7467c8d2001-07-12 20:26:32 +000052#endif
Eric Andersen27f64e12002-06-23 04:24:25 +000053
54#ifdef L_passwd_file
55#define PASSWD_FILE "/etc/passwd"
Manuel Novoa III cad53642003-03-19 09:13:01 +000056const char * const bb_path_passwd_file = PASSWD_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000057#endif
58
59#ifdef L_shadow_file
60#define SHADOW_FILE "/etc/shadow"
Manuel Novoa III cad53642003-03-19 09:13:01 +000061const char * const bb_path_shadow_file = SHADOW_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000062#endif
63
64#ifdef L_group_file
65#define GROUP_FILE "/etc/group"
Manuel Novoa III cad53642003-03-19 09:13:01 +000066const char * const bb_path_group_file = GROUP_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000067#endif
68
69#ifdef L_gshadow_file
70#define GSHADOW_FILE "/etc/gshadow"
Manuel Novoa III cad53642003-03-19 09:13:01 +000071const char * const bb_path_gshadow_file = GSHADOW_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000072#endif
73
74#ifdef L_nologin_file
75#define NOLOGIN_FILE "/etc/nologin"
Manuel Novoa III cad53642003-03-19 09:13:01 +000076const char * const bb_path_nologin_file = NOLOGIN_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000077#endif
78
79#ifdef L_securetty_file
80#define SECURETTY_FILE "/etc/securetty"
Manuel Novoa III cad53642003-03-19 09:13:01 +000081const char * const bb_path_securetty_file = SECURETTY_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000082#endif
83
84#ifdef L_motd_file
85#define MOTD_FILE "/etc/motd"
Manuel Novoa III cad53642003-03-19 09:13:01 +000086const char * const bb_path_motd_file = MOTD_FILE;
Eric Andersen27f64e12002-06-23 04:24:25 +000087#endif
88
Glenn L McGrathdc4e75e2003-09-02 02:36:18 +000089#ifdef L_shell_file
90const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL;
91#endif
92
"Vladimir N. Oleynik"6c35c7c2005-10-12 15:34:25 +000093#ifdef L_bb_dev_null
94const char * const bb_dev_null = "/dev/null";
"Vladimir N. Oleynik"86a10732005-10-12 15:21:32 +000095#endif
96
"Vladimir N. Oleynik"6f347ef2005-10-15 10:23:55 +000097#ifdef L_bb_common_bufsiz1
98char bb_common_bufsiz1[BUFSIZ+1];
99#endif