summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2014-05-18use reallocarrayMarc Espie
okay ian@, chl@
2014-05-18use reallocarrayMarc Espie
okay chl@, tedu@
2014-05-18a bit more reallocarray (and kill ecalloc, which isn't used)Marc Espie
okay chl@
2014-05-17fix alloc idioms. watch out for emalloc that's actually a calloc in disguiseMarc Espie
okay chl@ tedu@
2014-05-17remove unused variableCharles Longeau
ok tedu@
2014-05-16save up the failures for the end in the argc == 0.Ted Unangst
help ok espie
2014-05-16a few changes for new code to match local styleTed Unangst
2014-05-16checksum mode can use magic pubkey finder tooTed Unangst
2014-05-16rework -C (perfect candidate for using hash tables, really):Marc Espie
insert files we want to check into a hash, parse SHA256 message on the fly, delete entries whose checksum match, then display entries that failed. This completely avoids allocating temporary storage for file names and checksums and removes the quadratic match (argv[i] vs line[n]). okay tedu@
2014-05-15remove unused variableCharles Longeau
ok espie@
2014-05-15fix the band-aid error.Marc Espie
tedu was bitten by the RETARDED interface in sha2.h (who names string LENGTH things that are actually buffer SIZES) ? make -C mode work again. okay beck@
2014-05-14let cpp do some of the workTed Unangst
2014-05-14spell out base64 in error messagesTed Unangst
2014-05-14save some memory by reducing buffer sizesTed Unangst
2014-05-14recode base64 hashes if necessaryTed Unangst
2014-05-14realloc like a boss, so checksum verification doesn't take minutes.Ted Unangst
2014-05-14Change key-table to mode-table to allow for some future work. From KeithNicholas Marriott
Amling.
2014-05-14Simplify copy lines, from Keith Amling.Nicholas Marriott
2014-05-14Now that cmdlists are reference counted, there is no need for two-stepNicholas Marriott
deletion via the dead_key_bindings tree. From Keith Amling.
2014-05-13Don't allow multiple buffers with the same name, from Thomas Adam.Nicholas Marriott
2014-05-13sync some of the text of ENVIRONMENT with more(1), and cut someJason McIntyre
verbiage; ok millert
2014-05-13- document two escape sequences as extensions in STANDARDSJason McIntyre
- document undefined behaviour for unlisted formats in combination with `#'; guenther helped me organise this into a saner piece of text ok guenther
2014-05-13If multiple arguments are given to new-session, new-window,Nicholas Marriott
split-window, respawn-window or respawn-pane, pass them directly to execvp() to help avoid quoting problems. One argument still goes to "sh -c" like before. Requested by many over the years. Patch from J Raynor.
2014-05-13Add a copy mode key binding to copy to a named buffer. From J Raynor.Nicholas Marriott
2014-05-13Add support for named buffers. If you don't name a buffer, things workNicholas Marriott
much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
2014-05-13All callers of helpfile() are #ifdef SMALL so only define thatTodd C. Miller
function when SMALL is not defined. OK guenther@
2014-05-12adjust to ohash being in libutil now, and to the interface changes.Marc Espie
fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice) move the rest of lst.lib stuff into its own directory.
2014-05-11zap double full stop; ok schwarzeJason McIntyre
2014-05-10catch up with the inet(3) rename; this commit missed in previousJason McIntyre
ok guenther
2014-05-10remove unused variableCharles Longeau
ok shadchin@
2014-05-10Give more(1) its own help file, shorter than the one for less(1).Ingo Schwarze
The helpfile itself was prepared by jmc@, the glue by me. OK millert@ jmc@
2014-05-09zap the commented out stuff from this file: it mainly pertains to otherJason McIntyre
systems, and our page is sufficiently far away from upstream to justify it; ok millert
2014-05-09print interface name with queues in "systat q"; ok henningStuart Henderson
2014-05-09move some remnants of more behaviour to the compat section, and use Xr forJason McIntyre
refs to more instead of Nm;
2014-05-09Just use char ** for argv like normal people, not char *const *.Nicholas Marriott
2014-05-09my previous attempt to fix the renaming of the inet(3) pages was wrong;Jason McIntyre
this fixes those by referencing the correct page, and cleans up the netintro/ inet entries; all this on the advice (and ok) of guenther!
2014-05-08protip: "It's largely bad style to do (int)sizeof"Ted Unangst
amusingly, theo phrased this with considerably more restraint than i did.
2014-05-08inet(3) -> inet_net(3);Jason McIntyre
2014-05-08Introduce two new route flags: RTF_LOCAL and RTF_BROADCAST.Martin Pieuchot
Nothing use them for the moment, but here is the plan: Since a route lookup is always necessary to output a packet it makes sense to store all the information regarding how the packet should be sent in the routing entry. This will save us some expensive lookups on address lists. But once we have all the information about our addresses in the routing table, we can even use it in the input path with the hope that the number of lookups in the forwarding case can be reduce to one. ok henning@, chris@
2014-05-08Send up and down keys for mouse wheel in alternate screen mode (when itNicholas Marriott
normally does nothing), from Marcel Partap.
2014-05-08Instead of forcing mouse scroll to 1 in choose mode, scale it downNicholas Marriott
instead. Means modifier keys still increase the line count, just not as much. Based on a diff from Marcel Partap.
2014-05-08whack some useless verbiage from DESCRIPTION, and merge some of it intoJason McIntyre
the env vars section; tidy up the env vars section and remove the commented out stuff which relataes mainly to less on other systems;
2014-05-08- update DESCRIPTION and COMPATIBILITY WITH MOREJason McIntyre
- Xr more 1 ok millert schwarze
2014-05-08+.Xr less 1 ,Jason McIntyre
2014-05-08Plug a memory leak, from J Raynor.Nicholas Marriott
2014-05-08Both the two previous ways of navigating panes by direction haveNicholas Marriott
irritating flaws: a) The old way of always using the top or left if the choice is ambiguous is annoying when the layout is unbalanced. b) The new way of remembering the last used pane is annoying if the layout is balanced and the leftmost is obvious to the user (because clearly if we go right from the top-left in a tiled set of four we want to end up in top-right, even if we were last using the bottom-right). So instead, use a combination of both: if there is only one possible pane alongside the current pane, move to it, otherwise choose the most recently used of the choice.
2014-05-08Handle colour 8 properly in the 256 colour palette, from Timothy Allen.Nicholas Marriott
2014-05-07When you want more, you say "more". When you want less, you say "less".Vadim Zhukov
When you don't get what you asked for, you get angry. When you add a tiny bit, it should be "more" or "less" still, or you'll get angry. So lets make zmore(1) call more(1) and zless(1) call less(1), as it's supposed to be. okay and input from ingo@, no objections from author AKA millert@
2014-05-07Render roff escape sequences contained in manual page descriptionsIngo Schwarze
before putting them into the mpages table. Issue found by bentley@ in OpenBSD::Getopt(3p).
2014-05-07Fix two memory leaks in makewhatis -n:Ingo Schwarze
1. As found by nigel@, names_check() requires database access. 2. Do not leak names and strings in -n mode.