diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-06 07:17:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-06 07:17:02 +0000 |
commit | 278a1c22645263f1a82bb3437345e3d96c3f13eb (patch) | |
tree | 1e9f967ca896674212d8aecb17919bacbb4c1515 /include | |
parent | ad4da989e3767cdf4620725c16908b4f99dbe2c9 (diff) | |
download | busybox-w32-278a1c22645263f1a82bb3437345e3d96c3f13eb.tar.gz busybox-w32-278a1c22645263f1a82bb3437345e3d96c3f13eb.tar.bz2 busybox-w32-278a1c22645263f1a82bb3437345e3d96c3f13eb.zip |
brctl: optional support for "show" cmd (by L. Gabriel Somlo <somlo AT cmu.edu>)
function old new delta
brctl_main 739 1186 +447
if_indextoname - 104 +104
static.keywords 827 841 +14
static.ops - 7 +7
packed_usage 23978 23976 -2
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 | ||||
-rw-r--r-- | include/usage.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 202574adb..1c54a32d5 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1017,15 +1017,15 @@ extern int update_passwd(const char *filename, const char *username, | |||
1017 | int get_terminal_width_height(int fd, int *width, int *height); | 1017 | int get_terminal_width_height(int fd, int *width, int *height); |
1018 | 1018 | ||
1019 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 1019 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
1020 | void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 1020 | int ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
1021 | #if ENABLE_IOCTL_HEX2STR_ERROR | 1021 | #if ENABLE_IOCTL_HEX2STR_ERROR |
1022 | int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); | 1022 | int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); |
1023 | void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); | 1023 | int bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); |
1024 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) | 1024 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) |
1025 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) | 1025 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) |
1026 | #else | 1026 | #else |
1027 | int bb_ioctl_or_warn(int fd, int request, void *argp); | 1027 | int bb_ioctl_or_warn(int fd, int request, void *argp); |
1028 | void bb_xioctl(int fd, int request, void *argp); | 1028 | int bb_xioctl(int fd, int request, void *argp); |
1029 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) | 1029 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) |
1030 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) | 1030 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) |
1031 | #endif | 1031 | #endif |
diff --git a/include/usage.h b/include/usage.h index 0849c6831..e007acdfa 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -138,6 +138,9 @@ | |||
138 | #define brctl_full_usage \ | 138 | #define brctl_full_usage \ |
139 | "Manage ethernet bridges.\n" \ | 139 | "Manage ethernet bridges.\n" \ |
140 | "\nCommands:" \ | 140 | "\nCommands:" \ |
141 | USE_FEATURE_BRCTL_SHOW( \ | ||
142 | "\n show Show a list of bridges" \ | ||
143 | ) \ | ||
141 | "\n addbr BRIDGE Create BRIDGE" \ | 144 | "\n addbr BRIDGE Create BRIDGE" \ |
142 | "\n delbr BRIDGE Delete BRIDGE" \ | 145 | "\n delbr BRIDGE Delete BRIDGE" \ |
143 | "\n addif BRIDGE IFACE Add IFACE to BRIDGE" \ | 146 | "\n addif BRIDGE IFACE Add IFACE to BRIDGE" \ |
@@ -151,7 +154,8 @@ | |||
151 | "\n setportprio BRIDGE PRIO Set port priority" \ | 154 | "\n setportprio BRIDGE PRIO Set port priority" \ |
152 | "\n setbridgeprio BRIDGE PRIO Set bridge priority" \ | 155 | "\n setbridgeprio BRIDGE PRIO Set bridge priority" \ |
153 | "\n stp BRIDGE [1|0] STP on/off" \ | 156 | "\n stp BRIDGE [1|0] STP on/off" \ |
154 | ) | 157 | ) \ |
158 | |||
155 | #define bunzip2_trivial_usage \ | 159 | #define bunzip2_trivial_usage \ |
156 | "[OPTION]... [FILE]" | 160 | "[OPTION]... [FILE]" |
157 | #define bunzip2_full_usage \ | 161 | #define bunzip2_full_usage \ |