History log of /openbsd-current/bin/ed/buf.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.25 23-Apr-2024 jsg

correct indentation; no functional change
ok tb@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.24 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.23 22-Mar-2016 mmcc

header cleanup

from Edgar Pettijohn, correction from deraadt@


Revision tags: OPENBSD_5_9_BASE
# 1.22 09-Oct-2015 millert

Mark static globals that are only used in their respective .c files.
Also make stdin unbuffered since that is the same as using a
single-byte buffer. OK tobias@


Revision tags: OPENBSD_5_8_BASE
# 1.21 28-Jul-2015 deraadt

remove gratuitous casts


Revision tags: OPENBSD_5_7_BASE
# 1.20 20-Nov-2014 tedu

remove sys/file.h includes in favor of fcntl.h where needed.
ok deraadt guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.18 12-Feb-2008 otto

use ftello instead of ftell; from Davil Hill; ok millert@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.17 25-Apr-2006 deraadt

various small lint cleanups; ok otto


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 18-Oct-2003 jmc

typos in comments;
from Jared Yanovich


Revision tags: OPENBSD_3_4_BASE
# 1.15 07-Aug-2003 millert

plug some obvious memory leaks; Patrick Latifi


# 1.14 11-Jun-2003 deraadt

ansification, art ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.13 09-Jun-2002 todd

knf


Revision tags: OPENBSD_3_1_BASE
# 1.12 24-Mar-2002 millert

Kill unneeded longs; fixes some minor 64 bit issues. deraadt@ OK


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.11 16-Jan-2001 deraadt

cleanup strcpy, strncpy, signal races, etc


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.10 01-Apr-2000 deraadt

buf oflow; ath@algonet.se


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.9 03-Jul-1998 deraadt

use 10 X in mkstemp string for improved speed at race winning


# 1.8 30-Apr-1998 deraadt

Wall


Revision tags: OPENBSD_2_3_BASE
# 1.7 10-Mar-1998 deraadt

umask manipulation not neccessary


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.6 12-Oct-1996 millert

Back out my sprintf -> snprintf changes where they don't make sense and
use good ole strcpy() instead. Also use perror() instead of fprintf()
where it makes sense.


Revision tags: OPENBSD_2_0_BASE
# 1.5 15-Sep-1996 millert

sprintf -> snprintf paranoia


# 1.4 25-Jun-1996 deraadt

mkstemp


# 1.3 24-Jun-1996 deraadt

use temp file more carefully


# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.24 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.23 22-Mar-2016 mmcc

header cleanup

from Edgar Pettijohn, correction from deraadt@


Revision tags: OPENBSD_5_9_BASE
# 1.22 09-Oct-2015 millert

Mark static globals that are only used in their respective .c files.
Also make stdin unbuffered since that is the same as using a
single-byte buffer. OK tobias@


Revision tags: OPENBSD_5_8_BASE
# 1.21 28-Jul-2015 deraadt

remove gratuitous casts


Revision tags: OPENBSD_5_7_BASE
# 1.20 20-Nov-2014 tedu

remove sys/file.h includes in favor of fcntl.h where needed.
ok deraadt guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.18 12-Feb-2008 otto

use ftello instead of ftell; from Davil Hill; ok millert@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.17 25-Apr-2006 deraadt

various small lint cleanups; ok otto


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 18-Oct-2003 jmc

typos in comments;
from Jared Yanovich


Revision tags: OPENBSD_3_4_BASE
# 1.15 07-Aug-2003 millert

plug some obvious memory leaks; Patrick Latifi


# 1.14 11-Jun-2003 deraadt

ansification, art ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.13 09-Jun-2002 todd

knf


Revision tags: OPENBSD_3_1_BASE
# 1.12 24-Mar-2002 millert

Kill unneeded longs; fixes some minor 64 bit issues. deraadt@ OK


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.11 16-Jan-2001 deraadt

cleanup strcpy, strncpy, signal races, etc


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.10 01-Apr-2000 deraadt

buf oflow; ath@algonet.se


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.9 03-Jul-1998 deraadt

use 10 X in mkstemp string for improved speed at race winning


# 1.8 30-Apr-1998 deraadt

Wall


Revision tags: OPENBSD_2_3_BASE
# 1.7 10-Mar-1998 deraadt

umask manipulation not neccessary


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.6 12-Oct-1996 millert

Back out my sprintf -> snprintf changes where they don't make sense and
use good ole strcpy() instead. Also use perror() instead of fprintf()
where it makes sense.


Revision tags: OPENBSD_2_0_BASE
# 1.5 15-Sep-1996 millert

sprintf -> snprintf paranoia


# 1.4 25-Jun-1996 deraadt

mkstemp


# 1.3 24-Jun-1996 deraadt

use temp file more carefully


# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 22-Mar-2016 mmcc

header cleanup

from Edgar Pettijohn, correction from deraadt@


Revision tags: OPENBSD_5_9_BASE
# 1.22 09-Oct-2015 millert

Mark static globals that are only used in their respective .c files.
Also make stdin unbuffered since that is the same as using a
single-byte buffer. OK tobias@


Revision tags: OPENBSD_5_8_BASE
# 1.21 28-Jul-2015 deraadt

remove gratuitous casts


Revision tags: OPENBSD_5_7_BASE
# 1.20 20-Nov-2014 tedu

remove sys/file.h includes in favor of fcntl.h where needed.
ok deraadt guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.18 12-Feb-2008 otto

use ftello instead of ftell; from Davil Hill; ok millert@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.17 25-Apr-2006 deraadt

various small lint cleanups; ok otto


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 18-Oct-2003 jmc

typos in comments;
from Jared Yanovich


Revision tags: OPENBSD_3_4_BASE
# 1.15 07-Aug-2003 millert

plug some obvious memory leaks; Patrick Latifi


# 1.14 11-Jun-2003 deraadt

ansification, art ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.13 09-Jun-2002 todd

knf


Revision tags: OPENBSD_3_1_BASE
# 1.12 24-Mar-2002 millert

Kill unneeded longs; fixes some minor 64 bit issues. deraadt@ OK


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.11 16-Jan-2001 deraadt

cleanup strcpy, strncpy, signal races, etc


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.10 01-Apr-2000 deraadt

buf oflow; ath@algonet.se


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.9 03-Jul-1998 deraadt

use 10 X in mkstemp string for improved speed at race winning


# 1.8 30-Apr-1998 deraadt

Wall


Revision tags: OPENBSD_2_3_BASE
# 1.7 10-Mar-1998 deraadt

umask manipulation not neccessary


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.6 12-Oct-1996 millert

Back out my sprintf -> snprintf changes where they don't make sense and
use good ole strcpy() instead. Also use perror() instead of fprintf()
where it makes sense.


Revision tags: OPENBSD_2_0_BASE
# 1.5 15-Sep-1996 millert

sprintf -> snprintf paranoia


# 1.4 25-Jun-1996 deraadt

mkstemp


# 1.3 24-Jun-1996 deraadt

use temp file more carefully


# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision