aboutsummaryrefslogtreecommitdiff
path: root/bin/ed
Commit message (Collapse)AuthorAgeFilesLines
* Replace various spellings with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102410
* Fix some easy WARNS.Mark Murray2002-07-312-8/+8
| | | | Notes: svn path=/head/; revision=101093
* mdoc(7) police: a bit of tidying.Ruslan Ermilov2002-07-041-55/+126
| | | | Notes: svn path=/head/; revision=99410
* Consistently use __FBSDIDDavid E. O'Brien2002-06-308-33/+16
| | | | Notes: svn path=/head/; revision=99109
* Add a description of the restrictions that red(1) imposes to users,Giorgos Keramidas2002-06-241-7/+24
| | | | | | | | | | | | | and a warning that this "restricted mode" can be bypassed easily by using symlinks, so that users don't depend too much on it. PR: docs/35940 Submitted by: Gary W. Swearingen <swear@blarg.net> Reviewed by: jmallett MFC after: 1 week Notes: svn path=/head/; revision=98780
* Bogusness may have happened using a variable assignment here before, butJuli Mallett2002-06-201-1/+1
| | | | | | | | | | | proper parens mean that fd is always set by open(2) [in any part of C], and so we can accurately check for it returning -1, without feeling like we need to initialise fd to -1 in its declaration. In other words, fix a stylistic/bogus nit. Notes: svn path=/head/; revision=98481
* We have a place for extern declarations of global variables in ed.h, do notJuli Mallett2002-06-202-3/+2
| | | | | | | use main() to do it locally. Notes: svn path=/head/; revision=98465
* Use `The .Nm utility'Philippe Charnier2002-04-161-11/+18
| | | | Notes: svn path=/head/; revision=94869
* o __P has been reovedWarner Losh2002-02-029-258/+150
| | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9) Notes: svn path=/head/; revision=90109
* -lcipher is an installable library.Ruslan Ermilov2001-12-061-2/+2
| | | | Notes: svn path=/head/; revision=87444
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-1/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* File positions are off_t nowdays, not long, so:Andrey A. Chernov2001-09-011-3/+3
| | | | | | | | | | | | | | | | fseek -> fseeko ftell -> ftello NOTE: that fseek/ftell not works for >long offsets per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long. [EOVERFLOW] For ftell ( ), the current file offset cannot be represented correctly in an object of type long. Notes: svn path=/head/; revision=82771
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-3/+3
| | | | Notes: svn path=/head/; revision=81462
* o Correctly define rcsid.Mike Barcroft2001-08-0610-182/+158
| | | | | | | | | | | | | | o Add consts where appropriate. o Rename some variables that were shadowing global declarations. o Remove register storage-classes. o Make errmsg a const, so we can just set error messages instead of using sprintf/strcpy. o Set WARNS=2 Reviewed by: bde, des Notes: svn path=/head/; revision=81220
* Remove whitespace at EOL.Dima Dorfman2001-07-151-7/+7
| | | | Notes: svn path=/head/; revision=79754
* Back out previous commit: it doesn't help anything since write_file(),Dima Dorfman2001-06-281-2/+2
| | | | | | | | | | | which is also called from handle_hup(), uses stdio(3). Furthermore, this means that calling exit(3) (via quit()) there is required to flush the buffer write_file() was working on. Submitted by: bde Notes: svn path=/head/; revision=78939
* Don't call exit(3) from a signal handler.Dima Dorfman2001-06-241-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=78688
* Correct a spelling nit (a -> an).Dima Dorfman2001-06-041-1/+1
| | | | Notes: svn path=/head/; revision=77737
* Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by oneWarner Losh2001-05-293-16/+11
| | | | | | | | | | error caused by the -1 being on the wrong side of the comparison. This would not cause an overflow, as near as I can tell, because we truncate later anyway. We'd just fail to get a diagnostic for 1024 and 1025 byte file names. Notes: svn path=/head/; revision=77407
* Remove a comment which seemed to confuse makewhatis:Ben Smithurst2001-03-291-1/+0
| | | | | | | | | | | ben@freefall:~$ whatis ed ed(1), -(1) - ed, red text editor PR: 25164 Submitted by: Rich Morin <rdm@cfcl.com> Notes: svn path=/head/; revision=74975
* Switch from using rand() or random() to a stronger, more appropriate PRNGKris Kennaway2001-03-051-8/+1
| | | | | | | | | (random() or arc4random()) Reviewed by: bde Notes: svn path=/head/; revision=73563
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.Ruslan Ermilov2001-02-281-1/+1
| | | | Notes: svn path=/head/; revision=73233
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-3/+4
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-1/+1
| | | | Notes: svn path=/head/; revision=70150
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-151-14/+11
| | | | Notes: svn path=/head/; revision=70056
* ConstifyKris Kennaway2000-11-271-1/+1
| | | | Notes: svn path=/head/; revision=69247
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68935
* Properly declare the multiple-columns list.Ruslan Ermilov2000-11-061-1/+1
| | | | Notes: svn path=/head/; revision=68389
* Finish conversion from man(7) to mdoc(7).Ruslan Ermilov2000-11-061-9/+13
| | | | Notes: svn path=/head/; revision=68381
* Include sys/types.hBrian Somers2000-10-162-0/+4
| | | | Notes: svn path=/head/; revision=67183
* Locale support was added by ache long ago.Sheldon Hearn2000-07-171-4/+2
| | | | Notes: svn path=/head/; revision=63302
* Supply only one author name per instance of %A, as per mdoc.samples(7).Sheldon Hearn2000-05-101-1/+2
| | | | | | | | PR: 18465 Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp> Notes: svn path=/head/; revision=60311
* Fixes a potential buffer overflow with 'ed [MAXPATHLEN + 1 characters]'.Josef Karthauser2000-04-301-3/+5
| | | | | | | | Submitted by: Mike Heffner <spock@techfour.net> Submitted on: audit@freebsd.org Notes: svn path=/head/; revision=59797
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-4/+8
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57663
* Change DISTRIBUTION name to match reality.Mark Murray2000-02-291-1/+1
| | | | Notes: svn path=/head/; revision=57622
* Add `.Nm red' to NAME section.Alexey Zelkin2000-01-101-1/+2
| | | | Notes: svn path=/head/; revision=55762
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2717-17/+17
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-083-6/+6
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Silence some warnings when building on the alpha.Doug Rabson1998-08-073-6/+6
| | | | Notes: svn path=/head/; revision=38161
* Fix use of -man macro, correct description of the behaviour of the `+n'Joseph Koshy1998-07-211-8/+3
| | | | | | | | | command to match whats there in the source. PR: 7328 Notes: svn path=/head/; revision=37793
* Convert to mdoc.Philippe Charnier1998-05-131-544/+441
| | | | Notes: svn path=/head/; revision=36010
* Fixed existence test for secure sources (don't test for secure objects).Bruce Evans1998-03-061-4/+4
| | | | | | | Fixed some formatting. Notes: svn path=/head/; revision=34135
* Ensure stdout is line buffered.Wolfgang Helbig1997-12-312-3/+7
| | | | | | | Change "pat" -> "re" in man page. Notes: svn path=/head/; revision=32138
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.Eivind Eklund1997-12-101-2/+1
| | | | | | | | Reorder includes to be alphabetical some places since I already was in here. Notes: svn path=/head/; revision=31666
* Un-clobber mktemp->mkstemp patch.Eivind Eklund1997-10-091-3/+2
| | | | Notes: svn path=/head/; revision=30247
* make signal handlers errno safeEivind Eklund1997-10-081-3/+8
| | | | | | | Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=30233
* mktemp -> mkstempEivind Eklund1997-10-081-2/+3
| | | | | | | Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>) Notes: svn path=/head/; revision=30232
* fix misspellingJohn-Mark Gurney1997-08-301-2/+2
| | | | | | | | | Submitted-by: Josh Gilliam Closes PR:4427 Notes: svn path=/head/; revision=28929
* sccsid -> rcsid and fix some minor nits.Steve Price1997-08-078-21/+46
| | | | Notes: svn path=/head/; revision=27963
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348