Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | An internal function called xrealloc() is actually a fail-hard | 2014-12-01 | 1 | -2/+2 | |
| | | | | reallocarray()... so rename it. | ||||
* | Improve buf.c comments, from zinovik. | 2010-09-08 | 1 | -3/+44 | |
| | | | | ok stsp | ||||
* | Use SIZE_LEFT macro to determine left size instead of calculating with | 2010-09-08 | 1 | -5/+3 | |
| | | | | | | pointers. ok zinovik | ||||
* | change returning type to void like it is done in OpenRCS:buf_release() | 2010-08-01 | 1 | -3/+3 | |
| | | | | ok nicm@ | ||||
* | introduce macro SIZE_LEFT and function buf_grow() from OpenRCS | 2010-07-31 | 1 | -15/+24 | |
| | | | | | | buf_grow() replaces macro BUF_GROW() ok nicm@, ray@ | ||||
* | Reduce variable/function name and whitespace differences between | 2010-07-23 | 1 | -30/+31 | |
| | | | | | | cvs/rcs. OK xsa zinovik | ||||
* | Rename a bunch of variables and functions, removing the cvs_/rcs_ | 2010-07-23 | 1 | -2/+2 | |
| | | | | | | prefixes to reduce differences between cvs and rcs files. "yes!" nicm | ||||
* | remove unused functions, definitions and outdated comments | 2009-03-25 | 1 | -141/+12 | |
| | | | | from the stone ages. | ||||
* | kill SIZE_LEFT() macro, no longer used | 2009-03-23 | 1 | -3/+1 | |
| | |||||
* | New trigger framework that allows us to run the required scripts | 2008-06-10 | 1 | -1/+12 | |
| | | | | | | | | | | 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@ | ||||
* | While allocation memory, make sure that file sizes are smaller than SIZE_MAX. | 2008-03-09 | 1 | -1/+3 | |
| | | | | ok joris | ||||
* | correct usage of lseek(2); | 2008-03-08 | 1 | -2/+2 | |
| | |||||
* | prevent file races | 2008-02-27 | 1 | -4/+7 | |
| | | | | ok tobias@ | ||||
* | Cleanup buf implementation: | 2008-02-11 | 1 | -48/+13 | |
| | | | | | | | | | | | | * 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. | ||||
* | (f)utimes takes sys/time.h | 2008-02-03 | 1 | -1/+2 | |
| | |||||
* | missing header for mkstemp | 2007-09-25 | 1 | -1/+2 | |
| | | | | ok joris@ | ||||
* | Imported atomicio interface. | 2007-09-17 | 1 | -33/+7 | |
| | | | | Requested by ray@, OK joris@ | ||||
* | correct error string in cvs_buf_load_fd() to match the function. | 2007-08-29 | 1 | -2/+2 | |
| | | | | from Igor Zinovik | ||||
* | more typo shizzle from Igor Zinovik. | 2007-08-29 | 1 | -2/+2 | |
| | |||||
* | Correct function name in fatal(). From Igor Zinovik. | 2007-08-09 | 1 | -2/+2 | |
| | |||||
* | Since xrealloc dies on failure it is safe to directly assign to the | 2007-05-29 | 1 | -5/+2 | |
| | | | | | | | | | 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@ | ||||
* | general includes cleanup sweep. ok joris@ niallo@ | 2007-02-22 | 1 | -5/+7 | |
| | |||||
* | Simplify cvs_buf_differ(). Also cvs_buf_differ(), a comparison | 2007-02-21 | 1 | -21/+4 | |
| | | | | | | function, should not do any resource freeing. OK joris@. | ||||
* | Fix const inconsistencies, void pointer artithmetic and a few other | 2007-02-19 | 1 | -3/+3 | |
| | | | | things. now gcc -Wall and lint are more happy. ok joris@ xsa@ | ||||
* | Remove cb_cur or replace with cb_buf; cb_cur was the same as cb_buf | 2007-02-02 | 1 | -21/+10 | |
| | | | | | | most of the time and was never of much use. OK niallo@. | ||||
* | Remove unused and buggy {cvs,rcs}_buf_set functions. | 2007-02-02 | 1 | -35/+1 | |
| | | | | | | Bugginess pointed out and fix provided by Pierre Riteau. OK joris@. | ||||
* | Remove file mode argument from {cvs|rcs}_buf_write_stmp(). We | 2006-07-08 | 1 | -6/+2 | |
| | | | | | | | always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago. | ||||
* | add cvs_buf_load_fd() which does the same as cvs_buf_load() | 2006-06-14 | 1 | -16/+19 | |
| | | | | | | | | | | 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. | ||||
* | unused var | 2006-05-29 | 1 | -2/+2 | |
| | |||||
* | add a way to look if a buffer differs from another one | 2006-05-28 | 1 | -1/+27 | |
| | |||||
* | commit the new opencvs code, i have been hacking on | 2006-05-27 | 1 | -15/+16 | |
| | | | | | | | | | | | | 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. | ||||
* | spacing | 2006-04-14 | 1 | -2/+2 | |
| | |||||
* | remove a metric buttload of excessive () | 2006-04-14 | 1 | -2/+2 | |
| | | | | no binary change; ok ray | ||||
* | fix the obviously broken cvs_buf_set(), so we don't end up | 2006-04-13 | 1 | -4/+8 | |
| | | | | | | | 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@ | ||||
* | xmalloc(); memset(); -> xcalloc(); | 2006-04-12 | 1 | -5/+4 | |
| | | | | OK xsa@ | ||||
* | Change cvs_buf_grow() to return void, since it cannot fail, and | 2006-04-11 | 1 | -19/+11 | |
| | | | | | | | 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@. | ||||
* | make sure we add the correct name mkstemp(3) creates for us | 2006-04-10 | 1 | -1/+7 | |
| | | | | | | | | to the worklist of temporary files. this way we definatly don't leave any files behind in /tmp. tested & okay niallo@ | ||||
* | - use fchmod() instead of chmod() in cvs_buf_write_stmp(), makes | 2006-04-10 | 1 | -5/+9 | |
| | | | | | | | it like cvs_buf_write() - print warning on fchmod() failure (suggested by ray) ok joris@ ray@ | ||||
* | cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@. | 2006-04-06 | 1 | -36/+38 | |
| | |||||
* | Use variable names for sizeof, remove casts in front of xmalloc, | 2006-04-05 | 1 | -2/+2 | |
| | | | | | | use xcalloc and xstrdup where appropriate, and other stuff. OK joris@ | ||||
* | Today is Integer Overflow Prevention Day: | 2006-03-28 | 1 | -2/+2 | |
| | | | | | | | - Sync xmalloc.? with ssh versions. - Change all xrealloc() calls to new API. ``I really like this.'' niallo@ | ||||
* | Correct integer types, remove unused arguments, non-portable bitshifts | 2006-03-25 | 1 | -2/+2 | |
| | | | | | | | | | changed to division, KNF, replace unreachable code with goto fail, et cetera. Found by lint. The free() -> xfree() as well. OK niallo@ | ||||
* | - cvs_buf_putc() will never return non-zero | 2006-03-23 | 1 | -5/+2 | |
| | | | | | - change cvs_buf_putc() return type to void OK ray@. | ||||
* | delint; cvs_buf_write_stmp() will never return non-zero: | 2006-03-20 | 1 | -4/+2 | |
| | | | | | | | - remove superfluous error handling for cvs_buf_write_stmp() - change cvs_buf_write_stmp() return type to void ok joris@ xsa@ | ||||
* | Use ssize_t in appropriate places. | 2006-03-17 | 1 | -3/+3 | |
| | | | | | | Found by lint. OK niallo@ | ||||
* | - fchmod file to mode. | 2006-03-15 | 1 | -1/+2 | |
| | | | | ok ray@ | ||||
* | no need to duplicate error message; | 2006-03-07 | 1 | -2/+2 | |
| | |||||
* | like gnu ci(1), continue to process valid files in argv even if some are | 2006-03-06 | 1 | -3/+5 | |
| | | | | | | invalid. ok xsa@ | ||||
* | better user-friendly error message. | 2006-02-26 | 1 | -2/+2 | |
| | |||||
* | - fix a bug where co -l would fail with "permission denied" if the working | 2006-01-29 | 1 | -4/+8 | |
| | | | | | | file was read-only. ok joris@ |