aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-05 18:17:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-05 18:17:17 +0200
commitd88f94a5df3a2edb8ba56fab5c13674b452f87ab (patch)
treeabfed9c655cf1c436dac9e4089d7838c36e6e221 /include
parent5d561ef6349b4b6e1d12ad6638acb46abf1eeca6 (diff)
downloadbusybox-w32-d88f94a5df3a2edb8ba56fab5c13674b452f87ab.tar.gz
busybox-w32-d88f94a5df3a2edb8ba56fab5c13674b452f87ab.tar.bz2
busybox-w32-d88f94a5df3a2edb8ba56fab5c13674b452f87ab.zip
nl: new applet; also implement cat -nb (similar functionality to nl)
function old new delta nl_main - 201 +201 print_numbered_lines - 115 +115 cat_main 36 149 +113 static.nl_longopts - 106 +106 packed_usage 31081 31182 +101 applet_main 1488 1492 +4 applet_names 2575 2578 +3 applet_suid 93 94 +1 applet_install_loc 186 187 +1 ------------------------------------------------------------------------------ (add/remove: 4/0 grow/shrink: 6/0 up/down: 645/0) Total: 645 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index e97efcb6e..a2c699b54 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1271,6 +1271,16 @@ int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1271void bb_displayroutes(int noresolve, int netstatfmt) FAST_FUNC; 1271void bb_displayroutes(int noresolve, int netstatfmt) FAST_FUNC;
1272#endif 1272#endif
1273 1273
1274struct number_state {
1275 unsigned width;
1276 unsigned start;
1277 unsigned inc;
1278 const char *sep;
1279 const char *empty_str;
1280 smallint all, nonempty;
1281};
1282void print_numbered_lines(struct number_state *ns, const char *filename) FAST_FUNC;
1283
1274 1284
1275/* Networking */ 1285/* Networking */
1276/* This structure defines protocol families and their handlers. */ 1286/* This structure defines protocol families and their handlers. */