summaryrefslogtreecommitdiffstats
path: root/bin/ed/buf.c
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use __FBSDIDobrien2002-06-301-4/+2
|
* 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.
* o __P has been reovedimp2002-02-021-20/+10
| | | | | | | | | | | | 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)
* 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.
* o Correctly define rcsid.mike2001-08-061-17/+13
| | | | | | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Ensure stdout is line buffered.helbig1997-12-311-1/+5
| | | | Change "pat" -> "re" in man page.
* Un-clobber mktemp->mkstemp patch.eivind1997-10-091-3/+2
|
* mktemp -> mkstempeivind1997-10-081-2/+3
| | | | Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
* sccsid -> rcsid and fix some minor nits.steve1997-08-071-2/+6
|
* Use mkstemp rather than mktemp to prevent races.imp1997-03-241-4/+8
| | | | Obtained from: OpenBSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* -Wall cleaning.steve1996-12-141-2/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* Added $Id$dg1994-09-241-0/+2
|
* use umask 077 for buffer filealm1994-03-231-2/+8
|
* Fixed range address bug: 1,2, == 2,2 not 2,.alm1994-02-011-71/+65
| | | | | Overhauled the name space, reworked some modules and removed the obsolescent Addison-Wesley copyright.
* Consolidate mark code - no functional changes or fixes.alm1993-07-021-1/+37
|
* fixed undo within a global command (would corrupt the buffer)alm1993-06-261-1/+5
| | | | | changed move within a global to behave as in SunOS added a couple error messages
* POSIX ed version 0.6 by Andrew Moore (alm@netcom.com).alm1993-06-181-0/+246
OpenPOWER on IntegriCloud