OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.86 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:16 2021 UTC (2 years, 6 months ago) by deraadt
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, HEAD
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:00 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

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 1.84 / (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_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
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

Quiet compiler warnings.  OK tomc@ tb@

Revision 1.83 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.82: +7 -7 lines
Diff to previous 1.82 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.82 / (download) - annotate - [select for diffs], Thu Feb 5 12:59:57 2015 UTC (9 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.81: +2 -1 lines
Diff to previous 1.81 (colored)

Include stdint.h, not limits.h to get SIZE_MAX.  OK guenther@

Revision 1.81 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Sep 8 20:49:11 2010 UTC (13 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: 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
Changes since 1.79: +44 -3 lines
Diff to previous 1.79 (colored)

Improve buf.c comments, from zinovik.

ok stsp

Revision 1.79 / (download) - annotate - [select for diffs], Wed Sep 8 15:13:39 2010 UTC (13 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.78: +3 -5 lines
Diff to previous 1.78 (colored)

Use SIZE_LEFT macro to determine left size instead of calculating with
pointers.

ok zinovik

Revision 1.78 / (download) - annotate - [select for diffs], Sun Aug 1 09:19:29 2010 UTC (13 years, 9 months ago) by zinovik
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

change returning type to void like it is done in OpenRCS:buf_release()

ok nicm@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jul 31 16:28:31 2010 UTC (13 years, 9 months ago) by zinovik
Branch: MAIN
Changes since 1.76: +24 -15 lines
Diff to previous 1.76 (colored)

introduce macro SIZE_LEFT and function buf_grow() from OpenRCS

buf_grow() replaces macro BUF_GROW()

ok nicm@, ray@

Revision 1.76 / (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.75: +31 -30 lines
Diff to previous 1.75 (colored)

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

OK xsa zinovik

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 23 08:31:19 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Rename a bunch of variables and functions, removing the cvs_/rcs_
prefixes to reduce differences between cvs and rcs files.

"yes!" nicm

Revision 1.74 / (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.73: +12 -141 lines
Diff to previous 1.73 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Mon Mar 23 18:21:23 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.72: +1 -3 lines
Diff to previous 1.72 (colored)

kill SIZE_LEFT() macro, no longer used

Revision 1.72 / (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.71: +12 -1 lines
Diff to previous 1.71 (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.71 / (download) - annotate - [select for diffs], Sun Mar 9 01:02:38 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored)

While allocation memory, make sure that file sizes are smaller than SIZE_MAX.

ok joris

Revision 1.70 / (download) - annotate - [select for diffs], Sat Mar 8 11:53:36 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

correct usage of lseek(2);

Revision 1.69 / (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.68: +7 -4 lines
Diff to previous 1.68 (colored)

prevent file races

ok tobias@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 11 20:33:10 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.67: +13 -48 lines
Diff to previous 1.67 (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.67 / (download) - annotate - [select for diffs], Sun Feb 3 15:08:04 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored)

(f)utimes takes sys/time.h

Revision 1.66 / (download) - annotate - [select for diffs], Tue Sep 25 10:02:50 2007 UTC (16 years, 7 months ago) by chl
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

missing header for mkstemp

ok joris@

Revision 1.65 / (download) - annotate - [select for diffs], Mon Sep 17 10:07:21 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.64: +7 -33 lines
Diff to previous 1.64 (colored)

Imported atomicio interface.

Requested by ray@, OK joris@

Revision 1.64 / (download) - annotate - [select for diffs], Wed Aug 29 21:15:06 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

correct error string in cvs_buf_load_fd() to match the function.
from Igor Zinovik

Revision 1.63 / (download) - annotate - [select for diffs], Wed Aug 29 09:35:42 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

more typo shizzle from Igor Zinovik.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Aug 9 03:08:13 2007 UTC (16 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Correct function name in fatal().  From Igor Zinovik.

Revision 1.61 / (download) - annotate - [select for diffs], Tue May 29 00:19:10 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.60: +2 -5 lines
Diff to previous 1.60 (colored)

Since xrealloc dies on failure it is safe to directly assign to the
original pointer.  Theo agrees, and so does the rest of the tree
(ssh, etc. all do this already).

Saves a bunch of variables and assignments.

OK niallo@

Revision 1.60 / (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_1_BASE, OPENBSD_4_1
Changes since 1.59: +7 -5 lines
Diff to previous 1.59 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.59 / (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.58: +4 -21 lines
Diff to previous 1.58 (colored)

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

OK joris@.

Revision 1.58 / (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.57: +3 -3 lines
Diff to previous 1.57 (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.57 / (download) - annotate - [select for diffs], Fri Feb 2 04:34:49 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.56: +10 -21 lines
Diff to previous 1.56 (colored)

Remove cb_cur or replace with cb_buf; cb_cur was the same as cb_buf
most of the time and was never of much use.

OK niallo@.

Revision 1.56 / (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.55: +1 -35 lines
Diff to previous 1.55 (colored)

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

Bugginess pointed out and fix provided by Pierre Riteau.

OK joris@.

Revision 1.55 / (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.54: +2 -6 lines
Diff to previous 1.54 (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.54 / (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.53: +19 -16 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Mon May 29 04:47:28 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

unused var

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

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

Revision 1.51 / (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.50: +16 -15 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Fri Apr 14 02:49:43 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

spacing

Revision 1.49 / (download) - annotate - [select for diffs], Fri Apr 14 02:45:35 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

remove a metric buttload of excessive ()
no binary change; ok ray

Revision 1.48 / (download) - annotate - [select for diffs], Thu Apr 13 19:11:30 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.47: +8 -4 lines
Diff to previous 1.47 (colored)

fix the obviously broken cvs_buf_set(), so we don't end up
getting our buffer reset to 0 (empty) all the time.

i noticed this when i was trying to fix -z for keyword expansion. sigh.
okay niallo@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Apr 12 07:56:58 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.46: +4 -5 lines
Diff to previous 1.46 (colored)

xmalloc(); memset(); -> xcalloc();

OK xsa@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Apr 11 00:49:49 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.45: +11 -19 lines
Diff to previous 1.45 (colored)

Change cvs_buf_grow() to return void, since it cannot fail, and
just use xrealloc, since it handles the case of an unallocated
buffer anyway.  (b->cb_buf should be NULL if the space is unallocated.)

``Tested & looks OK to'' niallo@.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 10 19:49:44 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.44: +7 -1 lines
Diff to previous 1.44 (colored)

make sure we add the correct name mkstemp(3) creates for us
to the worklist of temporary files.

this way we definatly don't leave any files behind in /tmp.

tested & okay niallo@

Revision 1.44 / (download) - annotate - [select for diffs], Mon Apr 10 19:03:10 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.43: +9 -5 lines
Diff to previous 1.43 (colored)

- use fchmod() instead of chmod() in cvs_buf_write_stmp(), makes
 it like cvs_buf_write()
- print warning on fchmod() failure (suggested by ray)

ok joris@ ray@

Revision 1.43 / (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.42: +38 -36 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 5 01:38:55 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Use variable names for sizeof, remove casts in front of xmalloc,
use xcalloc and xstrdup where appropriate, and other stuff.

OK joris@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Mar 28 02:13:44 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Today is Integer Overflow Prevention Day:
 - Sync xmalloc.? with ssh versions.
 - Change all xrealloc() calls to new API.

``I really like this.'' niallo@

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 25 21:29:58 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (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.39 / (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.38: +2 -5 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (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.37: +2 -4 lines
Diff to previous 1.37 (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.37 / (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.36: +3 -3 lines
Diff to previous 1.36 (colored)

Use ssize_t in appropriate places.
Found by lint.

OK niallo@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 15 19:48:12 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

- fchmod file to mode.

ok ray@

Revision 1.35 / (download) - annotate - [select for diffs], Tue Mar 7 17:22:08 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

no need to duplicate error message;

Revision 1.34 / (download) - annotate - [select for diffs], Mon Mar 6 15:04:17 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.33: +5 -3 lines
Diff to previous 1.33 (colored)

like gnu ci(1), continue to process valid files in argv even if some are
invalid.

ok xsa@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Feb 26 09:45:02 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

better user-friendly error message.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jan 29 17:50:08 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.31: +8 -4 lines
Diff to previous 1.31 (colored)

- fix a bug where co -l would fail with "permission denied" if the working
file was read-only.

ok joris@

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 16 21:02:36 2006 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored)

- in cvs_buf_free(), don't try to free() b->cb_buf if it has not been
  allocated. fixes PR4974.


From: <ttakah@lapis.plala.or.jp>

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jan 15 19:25:32 2006 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.29: +11 -4 lines
Diff to previous 1.29 (colored)

- don't try to malloc 0 bytes of memory if an empty buffer is requested; delay
  the malloc till cvs_buf_grow(). fixes PR4972.

ok joris@

Revision 1.29 / (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.28: +13 -1 lines
Diff to previous 1.28 (colored)

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

needed for the next commit.

ok xsa@ joris@

Revision 1.28 / (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.27: +2 -12 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 30 05:28:27 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

adjust some thruth in a comment.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Dec 30 01:59:00 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.25: +1 -20 lines
Diff to previous 1.25 (colored)

spacing

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 24 04:10:51 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

remove useless cvs_buf_alloc() failure checks;

Revision 1.24 / (download) - annotate - [select for diffs], Fri Dec 23 00:27:04 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

cvs_buf_write() did not properly set new permissions
on already existing files.

niallo agrees.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 21 16:03:56 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

initialize `rlen' in cvs_buf_set();

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 20 17:55:10 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.21: +10 -13 lines
Diff to previous 1.21 (colored)

fix use of fatal() from previous commit;
temporary files were left behind if cvs_buf_write_* functions failed;
OK joris@.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 20 17:11:48 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

missed that in previous fatal() commit;

Revision 1.20 / (download) - annotate - [select for diffs], Tue Dec 20 16:55:21 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.19: +20 -39 lines
Diff to previous 1.19 (colored)

use fatal(); OK joris@ niallo@.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:45 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.18: +9 -23 lines
Diff to previous 1.18 (colored)

switch to xmalloc stuff, me and xsa@ agreed on this a long
time ago, but we were being held back by jfb. too bad for him.

next step is to use fatal() through out the code for unrecoverable
errors instead of trying to be all nice and fluffy and reach main() again.

ok niallo@ and xsa@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 14 19:49:18 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

missing casts; ok joris

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 29 17:04:42 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

minor KNF;

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 26 20:58:44 2005 UTC (18 years, 9 months ago) by moritz
Branch: MAIN
Changes since 1.15: +14 -13 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.14: +11 -11 lines
Diff to previous 1.14 (colored)

KNF;

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 20 16:14:55 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.13: +4 -5 lines
Diff to previous 1.13 (colored)

no need to append strerror(errno) in error msg if we use LP_ERRNO code;

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 7 14:27:57 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)



remove trailing whitespaces

from deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 2 07:16:38 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.11: +3 -12 lines
Diff to previous 1.11 (colored)

revert cvs_noexec checks commit, requested by jfb@.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 31 08:58:47 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 26 21:46:36 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.9: +3 -5 lines
Diff to previous 1.9 (colored)

don't append strerror(errno) to error messages if we use LP_ERRNO

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 24 07:38:46 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.8: +12 -3 lines
Diff to previous 1.8 (colored)

cvs_noexec checks; ok joris@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 8 22:22:38 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +10 -10 lines
Diff to previous 1.7 (colored)

get rid of void* pointer arithmetic on buffers so gcc stops complaining

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

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

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.5: +3 -16 lines
Diff to previous 1.5 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:12 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +4 -8 lines
Diff to previous 1.4 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 28 15:12:17 2004 UTC (19 years, 5 months ago) by pat
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

make sure va_end() is always called in all possible paths

ok jfb

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 27 13:29:27 2004 UTC (19 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)



use the real lenght to zero out the buffer in
cvs_buf_alloc();

ok jfb@

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.