aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 14:04:58 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 14:04:58 +1000
commitf28d4b20905b5b1f52ffa52060a0c6caf4b055ba (patch)
tree26196b8132f10ca96ac52d4aedc155138b475118 /include
parent0c9d2455301ed633826e222aacd930126990913e (diff)
parent0004e994934374b5695e004bbcb7b1fd67a170f2 (diff)
downloadbusybox-w32-f28d4b20905b5b1f52ffa52060a0c6caf4b055ba.tar.gz
busybox-w32-f28d4b20905b5b1f52ffa52060a0c6caf4b055ba.tar.bz2
busybox-w32-f28d4b20905b5b1f52ffa52060a0c6caf4b055ba.zip
Merge branch 'origin/master' (early part)
Conflicts: include/libbb.h libbb/messages.c
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h35
1 files changed, 25 insertions, 10 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 7c0ff9de0..75f12467e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1589,12 +1589,22 @@ void bb_progress_update(bb_progress_t *p, const char *curfile,
1589 off_t totalsize) FAST_FUNC; 1589 off_t totalsize) FAST_FUNC;
1590 1590
1591extern const char *applet_name; 1591extern const char *applet_name;
1592
1593/* Some older linkers don't perform string merging, we used to have common strings
1594 * as global arrays to do it by hand. But:
1595 * (1) newer linkers do it themselves,
1596 * (2) however, they DONT merge string constants with global arrays,
1597 * even if the value is the same (!). Thus global arrays actually
1598 * increased size a bit: for example, "/etc/passwd" string from libc
1599 * wasn't merged with bb_path_passwd_file[] array!
1600 * Therefore now we use #defines.
1601 */
1592/* "BusyBox vN.N.N (timestamp or extra_version)" */ 1602/* "BusyBox vN.N.N (timestamp or extra_version)" */
1593extern const char bb_banner[]; 1603extern const char bb_banner[];
1594extern const char bb_msg_memory_exhausted[]; 1604extern const char bb_msg_memory_exhausted[];
1595extern const char bb_msg_invalid_date[]; 1605extern const char bb_msg_invalid_date[];
1596extern const char bb_msg_read_error[]; 1606#define bb_msg_read_error "read error"
1597extern const char bb_msg_write_error[]; 1607#define bb_msg_write_error "write error"
1598extern const char bb_msg_unknown[]; 1608extern const char bb_msg_unknown[];
1599extern const char bb_msg_can_not_create_raw_socket[]; 1609extern const char bb_msg_can_not_create_raw_socket[];
1600extern const char bb_msg_perm_denied_are_you_root[]; 1610extern const char bb_msg_perm_denied_are_you_root[];
@@ -1604,23 +1614,28 @@ extern const char bb_msg_invalid_arg[];
1604extern const char bb_msg_standard_input[]; 1614extern const char bb_msg_standard_input[];
1605extern const char bb_msg_standard_output[]; 1615extern const char bb_msg_standard_output[];
1606 1616
1607extern const char bb_str_default[];
1608/* NB: (bb_hexdigits_upcase[i] | 0x20) -> lowercase hex digit */ 1617/* NB: (bb_hexdigits_upcase[i] | 0x20) -> lowercase hex digit */
1609extern const char bb_hexdigits_upcase[]; 1618extern const char bb_hexdigits_upcase[];
1610 1619
1611extern const char bb_path_mtab_file[];
1612extern const char bb_path_passwd_file[];
1613extern const char bb_path_shadow_file[];
1614extern const char bb_path_gshadow_file[];
1615extern const char bb_path_group_file[];
1616extern const char bb_path_motd_file[];
1617extern const char bb_path_wtmp_file[]; 1620extern const char bb_path_wtmp_file[];
1618extern const char bb_dev_null[];
1619#if ENABLE_PLATFORM_MINGW32 1621#if ENABLE_PLATFORM_MINGW32
1620#define bb_busybox_exec_path get_busybox_exec_path() 1622#define bb_busybox_exec_path get_busybox_exec_path()
1621#else 1623#else
1622extern const char bb_busybox_exec_path[]; 1624extern const char bb_busybox_exec_path[];
1623#endif 1625#endif
1626
1627/* Busybox mount uses either /proc/mounts or /etc/mtab to
1628 * get the list of currently mounted filesystems */
1629#define bb_path_mtab_file IF_FEATURE_MTAB_SUPPORT("/etc/mtab")IF_NOT_FEATURE_MTAB_SUPPORT("/proc/mounts")
1630
1631#define bb_path_passwd_file "/etc/passwd"
1632#define bb_path_shadow_file "/etc/shadow"
1633#define bb_path_gshadow_file "/etc/gshadow"
1634#define bb_path_group_file "/etc/group"
1635
1636#define bb_path_motd_file "/etc/motd"
1637
1638#define bb_dev_null "/dev/null"
1624/* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, 1639/* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin,
1625 * but I want to save a few bytes here */ 1640 * but I want to save a few bytes here */
1626extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ 1641extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */