summaryrefslogtreecommitdiff
path: root/usr.bin/sed/main.c
AgeCommit message (Expand)Author
2023-02-08sed: add missing void to avoid -Wstrict-prototype with clang 15Theo Buehler
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
2021-01-31replace fgetln(3) with getline(3) in sedChristian Weisgerber
2020-10-13Un-const what we pass to dirname(3).Martijn van Duren
2018-12-08revert previous, it breaks regress and the llvm, gtk+2, and gtk+3 portsIngo Schwarze
2018-12-06Add support for "-" as an input file for stdin as per POSIX.Martijn van Duren
2018-11-14Make sed's -i flag more compatible with what gsed does.Martijn van Duren
2018-07-11Make the output of the list command more sensible for the output device.Martijn van Duren
2017-12-13Fix sign compare warnings; OK martijn@Todd C. Miller
2017-08-01Apply stricter pledge rules if possible. These are based on the usage ofMartijn van Duren
2017-01-20Split error() into error() and warning() so error() can be marked __dead toKenneth R Westerback
2016-07-14make several program to use "chown" promise.Sebastien Marie
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
2016-01-01Improve error message for sed -i by appending strerror(errno).tb
2015-10-26Use error(FATAL) instead of what was previously err(1,...)Jeremie Courreges-Anglas
2015-10-26Rename err() to error() to prevent confusion with the stdlib function.mmcc
2015-10-25Write error message instead of duplicated file name on error.Tobias Stoeckmann
2015-10-10normalize the ordering of tame requests (particularily, "rpath wpath cpath",Theo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03sed only works on files, so the obvious goal is to remove it's networkTheo de Raadt
2015-07-19figure out the linewidth at initialization, rather than lateTheo de Raadt
2015-07-19Print strerror, not just the filename, if opening the inplace file fails.Stuart Henderson
2015-07-18various fixes; ok jasperJason McIntyre
2015-07-17add missing prototypeJasper Lievisse Adriaanse
2015-07-177 space indents??Theo de Raadt
2015-07-17add -i flag to sed to do in-place editing; mostly based on freebsdJasper Lievisse Adriaanse
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-08-07add -E flag to compile regular expressions using the extended POSIXDamien Miller
2008-10-16Move memory allocation closer to where it is needed. Also makeTodd C. Miller
2008-10-09Don't strip newline when reading lines; matches the original behavior.Todd C. Miller
2008-10-08Allow sed to handle arbitrarily long lines. Also plug a memoryTodd C. Miller
2007-10-16sync the synopsis and usage of commandsIgor Sobrado
2007-03-20Add line-buffering flag (-u).Ray Lai
2006-10-09pretty. the comma operator should not be used to cram two statements intoTed Unangst
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-03-13a few more strlcpyTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
1998-06-23Fix snprintf return value usage.Todd C. Miller
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-26rcsidTheo de Raadt
1996-05-21getc/ungetc use an intTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt