summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2003-07-06generate protos for functionsTheo de Raadt
2003-07-06Some fairly major changes:Todd C. Miller
o -N is implemented o -X is implemented o -x is implemented o diff.c has been rewritten and GNU long options are now supported o diffdir.c has been rewritten + no longer does fork + exec of /usr/bin/diff + can be called recursively (and will be for -r) o diff.h + don't include any .h files here any more, do it in the .c files + no Bell Labs code in this, gets a UCB copyright (the 32v sources only have a diff.c and there is nothing in common). o diffreg.c + most all remaining globals are now private to diffreg.c + files are only opened once + dynamically allocated objects are either freed or realloced + added missing UCB copyright (there were lots of UCB changes) + print correct thing when -s is specified OK deraadt@
2003-07-06no need to redefine strlcpy here; millert@ okAnil Madhavapeddy
2003-07-06Use symbolic constants for output format.Todd C. Miller
2003-07-04Accept but ignore -h for backwards compat like GNU diff does.Todd C. Miller
Pointed out by espie@. Also remove other references to -h mode.
2003-07-04Kill non-standard -l option as discussed with tedu@Todd C. Miller
2003-07-04Kill diff -h, we don't use or want diffh. Discussed w/ tedu@Todd C. Miller
2003-07-04Some cosmetic fixes:Todd C. Miller
o get rid of now-unused tempfile variable o move inifdef into diffreg.c (only used there) o correct a comment o use _PATH_DIFF, _PATH_DIFFH and _PATH_PR instead of variables set to them o get rid of hack to look for pr and diff in /bin
2003-07-03fix AddressFamily option in config file, from brent@graveland.net; ok markus@Damien Miller
2003-07-03protosTheo de Raadt
2003-07-02protosTheo de Raadt
2003-07-02ioctlname() protoTheo de Raadt
2003-07-02convert hostkeyalias to lowercase, otherwise uppercase aliases willMarkus Friedl
not match at all; ok henning@
2003-07-02protoTheo de Raadt
2003-07-02diffh belongs in /usr/libexec/Todd C. Miller
2003-07-02Treat /dev/null specially; there is no need to make a temp file for it.Todd C. Miller
2003-07-02(re)add socks5 suppport to -D; ok djm@Markus Friedl
now ssh(1) can act both as a socks 4 and socks 5 server and dynamically forward ports.
2003-07-02deny dynamic forwarding with -R for v1, too; ok djm@Markus Friedl
2003-07-02.Cm So . Sc -> .Sq Cm \&.Jason McIntyre
from wiz@netbsd;
2003-07-02cleanupTheo de Raadt
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-07-02comitted->committedAnil Madhavapeddy
2003-07-01Add support for -a dirs on different filesystems.Todd C. Miller
From FreeBSD via S. Deinhard.
2003-07-01update the table contents as well as the table widthAnil Madhavapeddy
pointed out by Dr. Mdoc jmc@
2003-07-01rewrite to not use mmap(2). solves a bunch of issues:Henning Brauer
- No more I/O related SEGVs (PR 2337?). - Performance linear to size of output, not input file size, even for very large files. Same for -r. - Reverse tail also works for very large files. - Very large values of n possible, even for very large files. Same for -r. work by Otto Moerbeek <otto@drijf.net> tested by and ok millert@ and myself
2003-07-01cosmetic (avoid space before period); ok artPeter Valchev
2003-07-01- no need for pathnames.h, just use <paths.h> insteadAnil Madhavapeddy
- bump mktemp randomness slightly from 8 -> 10 millert@ ok
2003-07-01Fix bounds check in the fast grep code that caused an incorrectTodd C. Miller
array access (and a core dump on sparc64 at least). Noticed by sturm@ and pvalchev@. Fix tested an OK by pvalchev@.
2003-06-30Awk first appeared in appeared in Version 7 AT&T UNIX.Todd C. Miller
2003-06-30Fold trace status into the single hash table that's left.Marc Espie
Inline some macros/functions for speed. So, this achieves the goal of one single lookup for macro/trace status, which does speed up m4 in partial tracing situations somewhat. This does also speed up m4 in large pushdef situations, since it no longer has to lookup large chains of macros. okay millert@
2003-06-30add a flag for each macro name that records built-in status.Marc Espie
Fold built-in lookup into normal lookup. okay millert@
2003-06-30replace old hash structure with open hashing.Marc Espie
make the stack structure of macro definitions explicit. okay millert@
2003-06-30Make the trace status of a macro an actual argument that gets pushedMarc Espie
in the frame for the macro expansion. (This will allow one single lookup to grab the macro definition and the trace status) okay millert@
2003-06-30clean up internal lookup interface:Marc Espie
define an interface with explicit define/pushdef/popdef... and use it. That way, most details of the hashtable are no longer visible. okay millert@
2003-06-30sync with freebsd:Anil Madhavapeddy
- avoid a coredump in 'line mode' and correct a comment - stub for -I option (our manpage already mentions this) - add author's copyright (tony finch) millert@ ok
2003-06-30Make usage() take the exit val are an argument and have the -h flagTodd C. Miller
use this to exit(0), not exit(1). Some configure/install sqcripts check for the existence of gzip by running "gzip -h" and checking the subshell's exit value. Noticed by naddy@
2003-06-29Previous commit resulted in a zero-length locate db which I didn'tTodd C. Miller
notice since /etc/weekly doesn't install a 0-length file. So, go back to using print, not printf, but set ORS to NULL so we don't get those extra newlines.
2003-06-29Return EINVAL on crc failure for gzip and make the driver programTodd C. Miller
interpret this correctly. Makes "gzip -t" more useful. Discussed with deraadt@
2003-06-29memset 0, not \0; andrushock@korovino.netMarkus Friedl
2003-06-29Explain in more details how define interacts with pushdef/popdef, andMarc Espie
how that varies from an m4 implementation to another. ok jmc@
2003-06-28Fix previous commit that broke locate. Unlike printf, print writes aTodd C. Miller
newline. So go back to using printf but use an explicit %s format to make things safe.
2003-06-28tweak;Jason McIntyre
ok tedu@
2003-06-28cleanupTheo de Raadt
2003-06-28deal with typing of write vs read in atomicioTheo de Raadt
2003-06-28print usage into stderr, use global __progname instead of local invention, ↵Michael Shalayeff
better error msg on fopen fail
2003-06-28use .Bk/.Ek to align the options in SYNOPSIS;Jason McIntyre
2003-06-28report pidfile creation errors, based on patch from Roumen Petrov; ok markus@Damien Miller
2003-06-27missing full stop and a .Pp;Jason McIntyre
2003-06-27- replace .Ql with .Sq; this was also causing a problem with postscriptJason McIntyre
- escape ampersand - missing full stop fixes from wiz@netbsd
2003-06-27-a to force ascii compare. ok millertTed Unangst