diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:19:57 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:19:57 +1000 |
commit | ec71cb6575290eb6ad716e4f620db445d8e1bcd3 (patch) | |
tree | 219a5dba000e0ad98ff563bc6f7d45d274d3a178 /include/libbb.h | |
parent | b5139d7cd8982d9b683cb1babf0bd759076aaab0 (diff) | |
parent | 6814cbc9288601840aedb372e2bd84dab76ffa43 (diff) | |
download | busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.gz busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.bz2 busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.zip |
Merge branch 'origin/master' (early part)
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 26656de2e..a98affb3a 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1633,7 +1633,27 @@ extern const char bb_default_login_shell[]; | |||
1633 | /* "sh" */ | 1633 | /* "sh" */ |
1634 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) | 1634 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) |
1635 | 1635 | ||
1636 | #if ENABLE_FEATURE_DEVFS | 1636 | /* The following devices are the same on all systems. */ |
1637 | #define CURRENT_TTY "/dev/tty" | ||
1638 | #define DEV_CONSOLE "/dev/console" | ||
1639 | |||
1640 | #if defined(__FreeBSD_kernel__) | ||
1641 | # define CURRENT_VC CURRENT_TTY | ||
1642 | # define VC_1 "/dev/ttyv0" | ||
1643 | # define VC_2 "/dev/ttyv1" | ||
1644 | # define VC_3 "/dev/ttyv2" | ||
1645 | # define VC_4 "/dev/ttyv3" | ||
1646 | # define VC_5 "/dev/ttyv4" | ||
1647 | # define VC_FORMAT "/dev/ttyv%d" | ||
1648 | #elif defined(__GNU__) | ||
1649 | # define CURRENT_VC CURRENT_TTY | ||
1650 | # define VC_1 "/dev/tty1" | ||
1651 | # define VC_2 "/dev/tty2" | ||
1652 | # define VC_3 "/dev/tty3" | ||
1653 | # define VC_4 "/dev/tty4" | ||
1654 | # define VC_5 "/dev/tty5" | ||
1655 | # define VC_FORMAT "/dev/tty%d" | ||
1656 | #elif ENABLE_FEATURE_DEVFS /* from now on, assume Linux naming */ | ||
1637 | # define CURRENT_VC "/dev/vc/0" | 1657 | # define CURRENT_VC "/dev/vc/0" |
1638 | # define VC_1 "/dev/vc/1" | 1658 | # define VC_1 "/dev/vc/1" |
1639 | # define VC_2 "/dev/vc/2" | 1659 | # define VC_2 "/dev/vc/2" |
@@ -1680,10 +1700,6 @@ extern const char bb_default_login_shell[]; | |||
1680 | # define FB_0 "/dev/fb0" | 1700 | # define FB_0 "/dev/fb0" |
1681 | #endif | 1701 | #endif |
1682 | 1702 | ||
1683 | /* The following devices are the same on devfs and non-devfs systems. */ | ||
1684 | #define CURRENT_TTY "/dev/tty" | ||
1685 | #define DEV_CONSOLE "/dev/console" | ||
1686 | |||
1687 | 1703 | ||
1688 | #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) | 1704 | #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) |
1689 | 1705 | ||