aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-0/+2
| | | | Notes: svn path=/head/; revision=114433
* Replace various spellings with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102410
* Consistently use __FBSDIDDavid E. O'Brien2002-06-301-4/+2
| | | | Notes: svn path=/head/; revision=99109
* We have a place for extern declarations of global variables in ed.h, do notJuli Mallett2002-06-201-3/+0
| | | | | | | use main() to do it locally. Notes: svn path=/head/; revision=98465
* o __P has been reovedWarner Losh2002-02-021-54/+26
| | | | | | | | | | | | | | | 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
* o Correctly define rcsid.Mike Barcroft2001-08-061-63/+64
| | | | | | | | | | | | | | 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
* 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
* Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by oneWarner Losh2001-05-291-7/+8
| | | | | | | | | | 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
* ConstifyKris Kennaway2000-11-271-1/+1
| | | | Notes: svn path=/head/; revision=69247
* Include sys/types.hBrian Somers2000-10-161-0/+2
| | | | Notes: svn path=/head/; revision=67183
* 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Silence some warnings when building on the alpha.Doug Rabson1998-08-071-2/+2
| | | | Notes: svn path=/head/; revision=38161
* 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
* sccsid -> rcsid and fix some minor nits.Steve Price1997-08-071-8/+7
| | | | 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
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-141-3/+8
| | | | Notes: svn path=/head/; revision=20420
* Localize itAndrey A. Chernov1996-08-111-10/+13
| | | | | | | 8bit cleanup Notes: svn path=/head/; revision=17516
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-15/+15
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=8855
* You will find enclosed some changes to make gcc -Wall more happy inJoerg Wunsch1995-03-191-9/+9
| | | | | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier) Notes: svn path=/head/; revision=7165
* Added $Id$David Greenman1994-09-241-0/+2
| | | | Notes: svn path=/head/; revision=3044
* use umask 077 for buffer fileAndrew Moore1994-03-231-1/+1
| | | | Notes: svn path=/head/; revision=1297
* Fixed range address bug: 1,2, == 2,2 not 2,.Andrew Moore1994-02-011-0/+1432
Overhauled the name space, reworked some modules and removed the obsolescent Addison-Wesley copyright. Notes: svn path=/head/; revision=1057