Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-05 | Document that some sorts uses -b w/o key fields. | Todd C. Miller | |
2015-04-05 | For the -g flag, treat non-floating point keys as 0, similar to -n. | Todd C. Miller | |
This makes "sort -gu" and "sort -nu" behave similarly and passes our sort regress tests. | |||
2015-04-05 | The -b flag should only apply when key fields are specified. | Todd C. Miller | |
If -b follows -k it has no effect. | |||
2015-04-05 | Do not permute command line arguments but still support the | Todd C. Miller | |
obsolescent "-o outfile" after input files syntax. | |||
2015-04-04 | Merge conflicts | James Turner | |
2015-04-04 | Give man(7) section and subsection headers heanging indentation. | Ingo Schwarze | |
Reduces groff-mandoc differences in base by about 2.5% due to various Perl manuals having long section titles. Quirk found in argtable2(3). | |||
2015-04-04 | Rounding rules for horizontal scaling widths are more complicated. | Ingo Schwarze | |
There is a first rounding to basic units on the input side. After that, rounding rules differ between requests and macros. Requests round to the nearest possible character position. Macros round to the next character position to the left. Implement that by changing the return value of term_hspan() to basic units and leaving the second scaling and rounding stage to the formatters instead of doing it in the terminal handler. Improves for example argtable2(3). | |||
2015-04-04 | Add support for commit ids to opencvs status. | Stefan Sperling | |
Patch by joris via tech@; reminded by tedu | |||
2015-04-04 | Fix modified timestamp in output of opencvs status. | Stefan Sperling | |
Patch by joris via tech@; reminded by tedu | |||
2015-04-04 | Don't allow breaking the output line after hyphens following escape | Ingo Schwarze | |
sequences. Improves tic(1), sxpm(1), and a few Perl manuals. Quirk found by naddy@ in milter-greylist(8). | |||
2015-04-04 | Fix a quirk with respect to empty .HP. | Ingo Schwarze | |
Found while writing a regression test for man_macro.c rev. 1.66. Incidentally, this brings rendering of XFreeEventData(3) closer to groff. | |||
2015-04-03 | Vastly simplify man(7) block unwinding, similar to mdoc_macro.c 1.171. | Ingo Schwarze | |
Drop one enum type, two static functions, 70 lines of code. Also fixes the mpeg_encode(1) manual reported broken by naddy@. | |||
2015-04-03 | correct return value in pubkey parsing, spotted by Ben Hawkes | Damien Miller | |
ok markus@ | |||
2015-04-03 | Pull an #include out of an #ifdef. | Brian Callahan | |
XCHAR and XSHORT have always been defined to be int. Just make them int. We don't need to care about making better code for whatever non-VAX machines were being used in 1986. ok florian@ | |||
2015-04-03 | It turns out the man(7) parser suffers from unintelligible handling | Ingo Schwarze | |
of block rewinding, just like then mdoc(7) parser did. First step in getting rid of rew_scope(): Replace the only call where the target block is known. This commit is analogous to mdoc_macro.c rev. 1.167. One down, three to go. | |||
2015-04-03 | Only one input file is allowed with the -c/-C flags. | Todd C. Miller | |
2015-04-03 | The combination of -c and -o is not specified by POSIX. In fact, the call | Tobias Stoeckmann | |
"sort -o file -c file" has unspecified behavior and would leave an empty file behind if it was sorted, the original file it was not. If -c (or -C) has been specified, only perform that action and ignore -o among other arguments. While at it, clean up check() internals. with input by and ok millert@ | |||
2015-04-03 | If -S has been supplied multiple times, only take last one into account. | Tobias Stoeckmann | |
Without this patch, multiple -S arguments influence each other. spotted by and ok millert@ | |||
2015-04-03 | No need to hardcode /usr/bin/ as the path to more(1); helps portability. | Ingo Schwarze | |
We don't hardcode the paths to gunzip(1) and cmp(1) either. Discussed with ajacoutot@. | |||
2015-04-02 | Third step towards parser unification: | Ingo Schwarze | |
Replace struct mdoc_meta and struct man_meta by a unified struct roff_meta. Written of the train from London to Exeter on the way to p2k15. | |||
2015-04-02 | murder excessive whitespace | Theo de Raadt | |
2015-04-02 | Second step towards parser unification: | Ingo Schwarze | |
Replace struct mdoc_node and struct man_node by a unified struct roff_node. To be able to use the tok member for both mdoc(7) and man(7) without defining all the macros in roff.h, sacrifice a tiny bit of type safety and make tok an int rather than an enum. Almost mechanical, no functional change. Written on the Eurostar from Bruxelles to London on the way to p2k15. | |||
2015-04-02 | Prevent integer overflow when parsing -S argument as percentage. | Tobias Stoeckmann | |
Also make sure that the parsed memory amount, stored in a long long, won't be larger than SIZE_MAX to properly support 32 bit systems. with input by and ok millert@ | |||
2015-04-02 | Global variable free_memory is only used in sort.c's set_hw_params, | Tobias Stoeckmann | |
so turn it into a local one. ok millert@ | |||
2015-04-02 | First step towards parser unification: | Ingo Schwarze | |
Replace enum mdoc_type and enum man_type by a unified enum roff_type. Almost mechanical, no functional change. Written on the ICE train from Frankfurt to Bruxelles on the way to p2k15. | |||
2015-04-02 | Fixed whitespace issues. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | Zap some more NULL checks in front of free. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | No need to strdup environment variable or command line arguments here. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | Add signal name instead of array index (which is not the signal number) | Tobias Stoeckmann | |
to sigaction error message. with input by and ok millert@ | |||
2015-04-02 | Don't need to include stdint.h | Todd C. Miller | |
2015-04-02 | No need for the umask() dance now that temp files are created | Todd C. Miller | |
with mkstemp(). Also remove useless else after a return. | |||
2015-04-02 | Don't install signal handlers for SIGQUIT, SIGVTALRM, SIGPROF. | Todd C. Miller | |
2015-04-02 | When using mmap() we don't need to keep the open fd around, closing | Todd C. Miller | |
the fd does not unmap the region. | |||
2015-04-02 | closefile() already checks for stdin so no need to check in the caller. | Todd C. Miller | |
2015-04-01 | Check for overflow when handling buffer size suffixes. | Todd C. Miller | |
2015-04-01 | Block signals during tmp_files insertion, so that the signal handler | Theo de Raadt | |
cannot encounter an incoherent list. It was an absolutely tiny signal race. ok millert | |||
2015-04-01 | Use reallocarray instead of malloc. | Todd C. Miller | |
2015-04-01 | Just use sort_reallocarray() everywhere. | Todd C. Miller | |
2015-04-01 | Revert unintentional commit. This will be revisited shortly. | Todd C. Miller | |
2015-04-01 | Style nits, remove whitespace at the start of a function. | Todd C. Miller | |
2015-04-01 | Remove some unneeded NULL checks that don't really help anything. | Todd C. Miller | |
It is better to crash when given bad input rather than producing a wrong result. None of the checks can actually be triggered. | |||
2015-04-01 | Use exit value 2 for mutually exclusive option errors. | Todd C. Miller | |
2015-04-01 | Fix typo in revision 1.55 | Todd C. Miller | |
2015-04-01 | Remove some unneeded NULL checks that don't really help anything. | Todd C. Miller | |
It is better to crash when given bad input rather than producing a wrong result. None of the checks can actually be triggered. | |||
2015-04-01 | Let reallocarray do the multiplication for us. | Todd C. Miller | |
2015-04-01 | Use reallocarray. | Todd C. Miller | |
2015-04-01 | Fix last instance of malloc(n * sizeof(char)) idiom. | Todd C. Miller | |
2015-04-01 | The argument to --sort is not optional so no need to check for NULL optarg. | Todd C. Miller | |
2015-04-01 | No need for if (x) free(x) style checks, this is not K&R. | Todd C. Miller | |
2015-04-01 | No need for an else clause after a continue, it just makes the | Todd C. Miller | |
code harder to read. |