OpenBSD CVS

CVS log for src/usr.bin/cvs/buf.h


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Sat Oct 15 22:20:17 2016 UTC (7 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, HEAD
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Quiet compiler warnings.  OK tomc@ tb@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Aug 1 09:55:40 2010 UTC (13 years, 9 months ago) by zinovik
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

change buf_release() prototype accordingly to buf.c

unbreaks opencvs build

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.26: +16 -16 lines
Diff to previous 1.26 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 25 21:19:20 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.25: +2 -11 lines
Diff to previous 1.25 (colored)

remove unused functions, definitions and outdated comments
from the stone ages.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 10 01:00:34 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

New trigger framework that allows us to run the required scripts
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.

This enables the use of log_accum2 and all that other nice stuff we like.

This was mostly written by Jonathan Armani with help from tobias@ and myself.

ok tobias@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Feb 27 22:34:04 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

prevent file races

ok tobias@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 11 20:33:11 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.22: +5 -7 lines
Diff to previous 1.22 (colored)

Cleanup buf implementation:

* Don't check for NULL on buffer creation, because it calls fatal() when
  something's wrong.
* All buffers are supposed to expand if there is no space left in them,
  so zap flags as well.
* Remove code that is now dead.

OK joris@

> Inspired by a diff from Igor Zinovik about unchecked return value.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 21 04:18:45 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Simplify cvs_buf_differ().  Also cvs_buf_differ(), a comparison
function, should not do any resource freeing.

OK joris@.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 19 11:40:00 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Fix const inconsistencies, void pointer artithmetic and a few other
things. now gcc -Wall and lint are more happy. ok joris@ xsa@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 2 04:24:09 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Remove unused and buggy {cvs,rcs}_buf_set functions.

Bugginess pointed out and fix provided by Pierre Riteau.

OK joris@.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 8 09:25:44 2006 UTC (17 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Remove file mode argument from {cvs|rcs}_buf_write_stmp().  We
always set the temporary file to mode 600, which is already done
by mkstemp().

OK joris@ and xsa@ over a month ago.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 14 14:10:50 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

add cvs_buf_load_fd() which does the same as cvs_buf_load()
except it takes a decriptor as argument instead of a path.

modified cvs_buf_load() to open the descriptor then pass
it to cvs_buf_load_fd().

change all the calls to cvs_buf_load() that have a descriptor
open for the path to cvs_buf_load_fd() to prevent races.

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 28 22:43:55 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

add a way to look if a buffer differs from another one

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.14: +3 -17 lines
Diff to previous 1.14 (colored)

commit the new opencvs code, i have been hacking on
this for the past 2 weeks now and it should go in at
the start of the hackathon so others can help out.

this code is a lot safer, smarter, faster and best of
all it is actually doing what it is suppose to do!

basic checkout, update, status, diff and commit are
working in local mode only.
there is no support for any remote setups now.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 6 16:48:34 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 25 21:29:59 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Correct integer types, remove unused arguments, non-portable bitshifts
changed to division, KNF, replace unreachable code with goto fail,
et cetera.  Found by lint.

The free() -> xfree() as well.

OK niallo@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 23 08:50:41 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

- cvs_buf_putc() will never return non-zero
- change cvs_buf_putc() return type to void
OK ray@.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 20 16:18:13 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

delint; cvs_buf_write_stmp() will never return non-zero:

- remove superfluous error handling for cvs_buf_write_stmp()
- change cvs_buf_write_stmp() return type to void

ok joris@ xsa@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 17 07:37:08 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Use ssize_t in appropriate places.
Found by lint.

OK niallo@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 1 16:28:20 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

check format string; OK niallo@, "it's nice to have" joris@.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 10 14:57:53 2006 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

- add cvs_buf_getc() function; returns byte at specified buffer position.

needed for the next commit.

ok xsa@ joris@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.6: +1 -4 lines
Diff to previous 1.6 (colored)

#include's cleanup; ok joris@ niallo@.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 26 20:58:44 2005 UTC (18 years, 9 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

- fix SIZE_LEFT macro for the cb_cur > cb_buf case.
- make cvs_buf_empty() really clean the buffer.
- fix cvs_buf_copy() for the off > 0 case.
- some more minor buf code cleanup.

ok joris@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 25 11:07:00 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.4: +19 -19 lines
Diff to previous 1.4 (colored)

KNF; mostly spaces vs. tabs; ok joris@ jfb@.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 8 21:11:07 2004 UTC (19 years, 5 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.3: +16 -14 lines
Diff to previous 1.3 (colored)

use mkstemp for local diff -r r1 -r r2; ok jfb@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 14 03:33:53 2004 UTC (19 years, 10 months ago) by vincent
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

int is not ssize_t

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 13 22:21:11 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

* make the email address consistent

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.