diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 14:04:58 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 14:04:58 +1000 |
commit | f28d4b20905b5b1f52ffa52060a0c6caf4b055ba (patch) | |
tree | 26196b8132f10ca96ac52d4aedc155138b475118 /include | |
parent | 0c9d2455301ed633826e222aacd930126990913e (diff) | |
parent | 0004e994934374b5695e004bbcb7b1fd67a170f2 (diff) | |
download | busybox-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.h | 35 |
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 | ||
1591 | extern const char *applet_name; | 1591 | extern 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)" */ |
1593 | extern const char bb_banner[]; | 1603 | extern const char bb_banner[]; |
1594 | extern const char bb_msg_memory_exhausted[]; | 1604 | extern const char bb_msg_memory_exhausted[]; |
1595 | extern const char bb_msg_invalid_date[]; | 1605 | extern const char bb_msg_invalid_date[]; |
1596 | extern const char bb_msg_read_error[]; | 1606 | #define bb_msg_read_error "read error" |
1597 | extern const char bb_msg_write_error[]; | 1607 | #define bb_msg_write_error "write error" |
1598 | extern const char bb_msg_unknown[]; | 1608 | extern const char bb_msg_unknown[]; |
1599 | extern const char bb_msg_can_not_create_raw_socket[]; | 1609 | extern const char bb_msg_can_not_create_raw_socket[]; |
1600 | extern const char bb_msg_perm_denied_are_you_root[]; | 1610 | extern const char bb_msg_perm_denied_are_you_root[]; |
@@ -1604,23 +1614,28 @@ extern const char bb_msg_invalid_arg[]; | |||
1604 | extern const char bb_msg_standard_input[]; | 1614 | extern const char bb_msg_standard_input[]; |
1605 | extern const char bb_msg_standard_output[]; | 1615 | extern const char bb_msg_standard_output[]; |
1606 | 1616 | ||
1607 | extern 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 */ |
1609 | extern const char bb_hexdigits_upcase[]; | 1618 | extern const char bb_hexdigits_upcase[]; |
1610 | 1619 | ||
1611 | extern const char bb_path_mtab_file[]; | ||
1612 | extern const char bb_path_passwd_file[]; | ||
1613 | extern const char bb_path_shadow_file[]; | ||
1614 | extern const char bb_path_gshadow_file[]; | ||
1615 | extern const char bb_path_group_file[]; | ||
1616 | extern const char bb_path_motd_file[]; | ||
1617 | extern const char bb_path_wtmp_file[]; | 1620 | extern const char bb_path_wtmp_file[]; |
1618 | extern 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 |
1622 | extern const char bb_busybox_exec_path[]; | 1624 | extern 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 */ |
1626 | extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ | 1641 | extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ |