summaryrefslogtreecommitdiffstats
path: root/bin/ed
Commit message (Collapse)AuthorAgeFilesLines
* Fix a -Wunsequenced warning.kientzle2013-06-291-1/+1
| | | | Submitted by: dt71@gmx.com
* mdoc sweep.joel2013-05-121-2/+2
|
* Fix compiling ed w/ WITHOUT_ED_CRYPTO... These variables aren'tjmg2013-03-231-3/+1
| | | | | | used.. Submitted by: deeptech71 at gmail dot com
* More -Wmissing-variable-declarations fixes.ed2012-10-194-15/+6
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Fix warnings found by -Wmising-variable-declarations.ed2012-10-197-48/+45
| | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Add build option MK_ED_CRYPTO to control whether ed(1) is to have themarcel2012-05-191-3/+3
| | | | | | | ability to encrypt/decrypt files. Embedded systems can typically have OpenSSL, but not for ed(1) to use it. Obtained from: Juniper Networks, Inc.
* Fix some obtuse fprintf tricks in bin/ed.dim2011-12-162-18/+20
| | | | MFC after: 1 week
* Fix memory leaks in error cases.brueffer2011-08-271-0/+3
| | | | | | | PR: 159011 Submitted by: Henning Petersen <henning.petersen@t-online.de> Approved by: re (kib) MFC after: 1 week
* Fix some typos under bin/uqs2011-05-221-2/+2
| | | | Found by: codespell
* Fix typos.brucec2011-02-121-2/+2
| | | | | | PR: docs/131625 Submitted by: Andrew Wright <andrew at qemg.org> MFC after: 1 month
* ed(1): make WARNS=6 cleanuqs2010-03-042-7/+1
| | | | | | | | Although argc and argv are never read after the longjmp is complete, gcc is not clever enough to see that and needlessly warns about it. So add volatile to silence the compiler. Approved by: ed (the co-mentor, not ed(1))
* Move WARNS as ed(1) also is only WARNS = 2 clean in the !DES case.marius2007-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
* Don't include encryption features of ed(1) when building for thekensmith2007-07-021-0/+2
| | | | | | | "rescue media" bundled with releases. Suggested by: ru Approved by: re (hrs)
* while(0); -> while (0) in multiline macroimp2006-08-171-1/+1
|
* Reimplementation of world/kernel build options. For details, see:ru2006-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)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-2/+2
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-33/+33
| | | | Sort standard sections in the (documented) preferred order.
* no need to have break; after return;charnier2005-01-161-1/+1
|
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* Join the 21st century: Cryptography is no longer an optional componentcperciva2004-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
* Document missing multibyte character handling in utilities specifiedtjr2004-07-031-1/+5
| | | | by POSIX.
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* This code isn't WARNS=6 clean in the standard (crypto) caseru2003-07-201-0/+1
| | | | | due to bugs in OpenSSL headers. I was testing in the wrong environmement: standalone build without crypto/ sources.
* Make this code WARNS=6 clean again (after GCC 3.1.1 import).ru2003-07-202-14/+13
| | | | Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Unbreak NOCRYPT buildworld.ru2003-06-291-1/+1
| | | | Reviewed by: markm
* Get this area compiling with the highest WARNS= that it works with.markm2003-06-131-0/+1
| | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386
* Fix for the NO_OPENSSL case.markm2003-06-081-1/+1
| | | | Reported by: Marius Strobl <marius@alchemy.franken.de>
* Make ed compile in the NOCRYPT case.jhay2003-06-031-0/+4
| | | | Reviewed by: markm
* Modernise. Use libcrypto for DES instead of libcipher.markm2003-06-023-52/+51
|
* Retire the useless NOSECURE knob.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* Fix a broken reference to locale(5) and point to re_format(7) too for ankeramida2003-05-031-2/+3
| | | | explanation of `collating elements'.
* Quiet warnings about copyright[].obrien2003-05-011-0/+2
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Replace various spellings with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* Fix some easy WARNS.markm2002-07-312-8/+8
|
* mdoc(7) police: a bit of tidying.ru2002-07-041-55/+126
|
* Consistently use __FBSDIDobrien2002-06-308-33/+16
|
* Add a description of the restrictions that red(1) imposes to users,keramida2002-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
* Bogusness may have happened using a variable assignment here before, butjmallett2002-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.
* We have a place for extern declarations of global variables in ed.h, do notjmallett2002-06-202-3/+2
| | | | use main() to do it locally.
* Use `The .Nm utility'charnier2002-04-161-11/+18
|
* o __P has been reovedimp2002-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)
* -lcipher is an installable library.ru2001-12-061-2/+2
|
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-1/+0
| | | | | | set WARNS=0. Reviewed by: mike
* File positions are off_t nowdays, not long, so:ache2001-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.
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-3/+3
|
* o Correctly define rcsid.mike2001-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
* Remove whitespace at EOL.dd2001-07-151-7/+7
|
OpenPOWER on IntegriCloud