aboutsummaryrefslogtreecommitdiff
path: root/miscutils/man.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* preparatory cleanups for seamless uncompression improvementsDenys Vlasenko2012-03-061-23/+18
| | | | | | | | | | | | unpack_gz_stream_with_info: fix buggy error check man: fix possible accesses past the end of a string move seamless uncompression helpers from read_printf.c to open_transformer.c function old new delta show_manpage 153 212 +59 unpack_gz_stream_with_info 520 539 +19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-2/+1
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+8
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: add compatibility with man-dbDenys Vlasenko2010-10-041-2/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: use man.config, not only man.conf (man version 1.6f compat)Denys Vlasenko2009-07-241-2/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: better check for duplicated MANPATH. Also -10 bytes.Denis Vlasenko2008-11-161-47/+56
|
* man: do not use default if /etc/man.conf has different MANPATHDenis Vlasenko2008-09-141-3/+5
| | | | | do not warn if /etc/man.conf does not exist
* man: use default MANPATH of "/usr/man"; do not search paths twiceDenis Vlasenko2008-09-141-4/+12
|
* man: teach it to use .lzma if requested by .configDenis Vlasenko2008-08-051-23/+45
| | | | | man: fix a case when a full pathname to manpage is given
* man: yet another fixlet to "manpage link" codeDenis Vlasenko2008-08-051-2/+3
|
* man: fixlet for man linksDenis Vlasenko2008-08-051-12/+17
|
* man: add handling of "man links", by Ivana Varekova <varekova AT redhat.com>Denis Vlasenko2008-08-051-11/+62
| | | | | | | | | | function old new delta run_pipe 102 354 +252 show_manpage - 126 +126 man_main 705 615 -90 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 378/-90) Total: 288 bytes
* libbb: make xrealloc_vector zero out the realloc'ed tailDenis Vlasenko2008-08-041-1/+1
| | | | | | | | | | | | | | function old new delta xrealloc_vector_helper 51 76 +25 man_main 712 705 -7 act 250 234 -16 create_list 91 70 -21 getopt_main 695 664 -31 load_dep_bb 281 248 -33 fileAction 744 709 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 25/-143) Total: -118 bytes
* whitespace fixDenis Vlasenko2008-07-261-16/+16
|
* man: a forgotten chunk of lask commit (config file parser fixes)Denis Vlasenko2008-07-261-20/+16
|
* fix several problems with config parser:Denis Vlasenko2008-07-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* man: ignore (not complain) lines with less than 2 tokensDenis Vlasenko2008-07-261-1/+3
| | | | | in config file
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* man: fix breakage: must not die on lines with < 2 tokensDenis Vlasenko2008-07-201-2/+4
|
* mn: use libbb for config parsing (by Vladimir)Denis Vlasenko2008-07-201-23/+16
| | | | | | function old new delta man_main 757 713 -44
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xrealloc_vector_helper - 51 +51 create_list 84 99 +15 getopt_main 690 695 +5 passwd_main 1049 1053 +4 get_cached 85 89 +4 msh_main 1377 1380 +3 add_match 42 41 -1 read_lines 720 718 -2 grave 1068 1066 -2 fill_match_lines 143 141 -2 add_to_dirlist 67 65 -2 add_input_file 49 47 -2 act 252 250 -2 fsck_main 2252 2246 -6 man_main 765 757 -8 bb_internal_initgroups 228 220 -8 cut_main 1052 1041 -11 add_edge_to_node 55 43 -12 dpkg_main 3851 3835 -16 ifupdown_main 2202 2178 -24 sort_main 838 812 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124) Total: -42 bytes
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* man: fix inverted cat/man bool variableDenis Vlasenko2008-07-051-8/+9
|
* man: code shrinkDenis Vlasenko2008-07-051-20/+18
| | | | | | | | | function old new delta man_main 725 765 +40 show_manpage 112 - -112 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 40/-112) Total: -72 bytes
* man: support cat pages too (by Jason Curl <jcurlnews AT arcor.de>)Denis Vlasenko2008-07-041-14/+31
| | | | | | | | function old new delta show_manpage - 112 +112 run_pipe 89 102 +13 man_main 721 725 +4
* man: fix missed NULL termination of an arrayDenis Vlasenko2008-07-041-7/+9
| | | | | | function old new delta man_main 741 721 -20
* stat: pointers are not 0L, they are NULLDenis Vlasenko2008-06-271-1/+8
| | | | | man: better error handling
* man: mimic "no manual entry for 'bogus'" message and exitcodeDenis Vlasenko2008-06-271-4/+10
|
* whitespace fixes. no code changesDenis Vlasenko2008-04-221-3/+3
|
* man: handle many MANPAGER directives so that they do not overrideDenis Vlasenko2008-04-191-34/+44
| | | | | | | | but accumulate. By Ivana Varekova <varekova AT redhat.com> function old new delta man_main 567 684 +117
* man: new applet. ~600 bytes.Denis Vlasenko2008-04-131-0/+151