aboutsummaryrefslogtreecommitdiff
path: root/bin/ed
Commit message (Collapse)AuthorAgeFilesLines
* Move WARNS as ed(1) also is only WARNS = 2 clean in the !DES case.Marius Strobl2007-12-091-1/+1
| | | | | | | | | | | | This fixes its compilation if MK_OPENSSL == no and also obsoletes release/Makefile rev. 1.192. The latter isn't reverted though as support for the fixit floppy and the rest of the boot floppies is scheduled to be deorbited anyway. Discussed with: kensmith Notes: svn path=/head/; revision=174469
* Don't include encryption features of ed(1) when building for theKen Smith2007-07-021-0/+2
| | | | | | | | | | "rescue media" bundled with releases. Suggested by: ru Approved by: re (hrs) Notes: svn path=/head/; revision=171154
* while(0); -> while (0) in multiline macroWarner Losh2006-08-171-1/+1
| | | | Notes: svn path=/head/; revision=161427
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-1/+3
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-091-2/+2
| | | | Notes: svn path=/head/; revision=141578
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-33/+33
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* no need to have break; after return;Philippe Charnier2005-01-161-1/+1
| | | | Notes: svn path=/head/; revision=140344
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139969
* NOCRYPT -> NO_CRYPTRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139113
* Join the 21st century: Cryptography is no longer an optional componentColin Percival2004-08-061-1/+0
| | | | | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004 Notes: svn path=/head/; revision=133196
* Document missing multibyte character handling in utilities specifiedTim J. Robbins2004-07-031-1/+5
| | | | | | | by POSIX. Notes: svn path=/head/; revision=131513
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Don't check for the existance of src/crypto/ for building items thatMark Murray2003-07-241-1/+1
| | | | | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient. Notes: svn path=/head/; revision=117978
* This code isn't WARNS=6 clean in the standard (crypto) caseRuslan Ermilov2003-07-201-0/+1
| | | | | | | | due to bugs in OpenSSL headers. I was testing in the wrong environmement: standalone build without crypto/ sources. Notes: svn path=/head/; revision=117805
* Make this code WARNS=6 clean again (after GCC 3.1.1 import).Ruslan Ermilov2003-07-202-14/+13
| | | | | | | Submitted by: Marius Strobl <marius@alchemy.franken.de> Notes: svn path=/head/; revision=117803
* Unbreak NOCRYPT buildworld.Ruslan Ermilov2003-06-291-1/+1
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=117023
* Get this area compiling with the highest WARNS= that it works with.Mark Murray2003-06-131-0/+1
| | | | | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=116282
* Fix for the NO_OPENSSL case.Mark Murray2003-06-081-1/+1
| | | | | | | Reported by: Marius Strobl <marius@alchemy.franken.de> Notes: svn path=/head/; revision=116015
* Make ed compile in the NOCRYPT case.John Hay2003-06-031-0/+4
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=115777
* Modernise. Use libcrypto for DES instead of libcipher.Mark Murray2003-06-023-52/+51
| | | | Notes: svn path=/head/; revision=115717
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* Fix a broken reference to locale(5) and point to re_format(7) too for anGiorgos Keramidas2003-05-031-2/+3
| | | | | | | explanation of `collating elements'. Notes: svn path=/head/; revision=114598
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-0/+2
| | | | Notes: svn path=/head/; revision=114433
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* 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