summaryrefslogtreecommitdiff
path: root/bin/ed/main.c
AgeCommit message (Collapse)Author
2015-07-28remove gratuitous castsTheo de Raadt
2015-07-14use atomic operations on sig_atomic_t variables inside the signal handlers,Theo de Raadt
rather than sharing one variable unsafely. ok millert
2015-07-11XXX annotate another signal raceTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-12-04Allow POSIX 0i; from Jeremy Mates.Daniel Dickman
Tested to match gnu by sobrado@; on solaris you probably need to use xpg6 utils to get this behaviour. ok krw@, deraadt@.
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-07-12If a constant string needs a name, use a static const array insteadPhilip Guenther
of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings.
2014-05-24delete restricted ed. no one will ever use this. never documented or enabled.Daniel Dickman
ok millert@
2014-04-14more x removal;Jason McIntyre
2014-04-14remove nonstandard DES support because DES. ok beck deraadt miodTed Unangst
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-01-15tidyMarc Espie
okay miod@
2010-08-12Use symbolic names for the file descriptors rather than numeric values.Kevin Lo
Some from damien@, millert@ ok phessler@, millert@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-01-28synchronize synopsis and usage.Igor Sobrado
2008-04-21Initialize the correct variable in HUP handler if ed.hup in currentTobias Stoeckmann
directory cannot be written and ~/ed.hup path has to be built up. Also pay special care that HOME is an absolute path name. With input by millert. ok deraadt, millert
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2006-04-17mark signal raceTheo de Raadt
2003-06-11ansification, art okTheo de Raadt
2002-06-09knfTodd T. Fries
2002-03-24Kill unneeded longs; fixes some minor 64 bit issues. deraadt@ OKTodd C. Miller
2002-01-16Use the volatile specifier to fix warnings about variables beingTodd C. Miller
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
2001-11-17volatile sig_atomic_tTheo de Raadt
2001-11-11indentTheo de Raadt
2001-06-22exit() from a signal handler is a sinTheo de Raadt
2001-01-17use sig_atomic_tTheo de Raadt
2001-01-16cleanup strcpy, strncpy, signal races, etcTheo de Raadt
2000-05-01MAXPATHLEN, not MAXPATHLEN+1; millert agreesTheo de Raadt
2000-04-01commons type mismatch; ath@algonet.seTheo de Raadt
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be ↵Theo de Raadt
done later.. contact me if you want to help)
1999-12-05not MAXPATHLEN+1Theo de Raadt
1999-12-04remove oflow in strip_escapes...Niels Provos
1998-05-18buf oflowsTheo de Raadt
1997-09-12Avoid longjmp/vfork clobbering.Todd C. Miller
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-08-05make signal handlers errno safeTheo de Raadt
1997-07-23tabifykstailey
1997-07-08Pipes are not interactive, eh.Todd C. Miller
1997-07-08If stdin is not a tty and not seekable assume we are being usedTodd C. Miller
interactively. Fixes all known problems with using ed over rsh.
1997-07-08Use line-buffered output if no tty is present. Makes ed workTodd C. Miller
correctly when there is no tty. Close PR#281
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-14-Wall'ing.Michael Shalayeff
1996-10-12Back out my sprintf -> snprintf changes where they don't make sense andTodd C. Miller
use good ole strcpy() instead. Also use perror() instead of fprintf() where it makes sense.
1996-09-15sprintf -> snprintf paranoiaTodd C. Miller
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt