Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-09-25 | missing header for mkstemp | Charles Longeau | |
ok joris@ | |||
2007-09-17 | Imported atomicio interface. | Tobias Stoeckmann | |
Requested by ray@, OK joris@ | |||
2007-08-29 | correct error string in cvs_buf_load_fd() to match the function. | Joris Vink | |
from Igor Zinovik | |||
2007-08-29 | more typo shizzle from Igor Zinovik. | Joris Vink | |
2007-08-09 | Correct function name in fatal(). From Igor Zinovik. | Ray Lai | |
2007-05-29 | Since xrealloc dies on failure it is safe to directly assign to the | Ray Lai | |
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@ | |||
2007-02-22 | general includes cleanup sweep. ok joris@ niallo@ | Otto Moerbeek | |
2007-02-21 | Simplify cvs_buf_differ(). Also cvs_buf_differ(), a comparison | Ray Lai | |
function, should not do any resource freeing. OK joris@. | |||
2007-02-19 | Fix const inconsistencies, void pointer artithmetic and a few other | Otto Moerbeek | |
things. now gcc -Wall and lint are more happy. ok joris@ xsa@ | |||
2007-02-02 | Remove cb_cur or replace with cb_buf; cb_cur was the same as cb_buf | Ray Lai | |
most of the time and was never of much use. OK niallo@. | |||
2007-02-02 | Remove unused and buggy {cvs,rcs}_buf_set functions. | Ray Lai | |
Bugginess pointed out and fix provided by Pierre Riteau. OK joris@. | |||
2006-07-08 | Remove file mode argument from {cvs|rcs}_buf_write_stmp(). We | Ray Lai | |
always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago. | |||
2006-06-14 | add cvs_buf_load_fd() which does the same as cvs_buf_load() | Joris Vink | |
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. | |||
2006-05-29 | unused var | Joris Vink | |
2006-05-28 | add a way to look if a buffer differs from another one | Joris Vink | |
2006-05-27 | commit the new opencvs code, i have been hacking on | Joris Vink | |
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. | |||
2006-04-14 | spacing | Theo de Raadt | |
2006-04-14 | remove a metric buttload of excessive () | Theo de Raadt | |
no binary change; ok ray | |||
2006-04-13 | fix the obviously broken cvs_buf_set(), so we don't end up | Joris Vink | |
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@ | |||
2006-04-12 | xmalloc(); memset(); -> xcalloc(); | Ray Lai | |
OK xsa@ | |||
2006-04-11 | Change cvs_buf_grow() to return void, since it cannot fail, and | Ray Lai | |
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@. | |||
2006-04-10 | make sure we add the correct name mkstemp(3) creates for us | Joris Vink | |
to the worklist of temporary files. this way we definatly don't leave any files behind in /tmp. tested & okay niallo@ | |||
2006-04-10 | - use fchmod() instead of chmod() in cvs_buf_write_stmp(), makes | Niall O'Higgins | |
it like cvs_buf_write() - print warning on fchmod() failure (suggested by ray) ok joris@ ray@ | |||
2006-04-06 | cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@. | Xavier Santolaria | |
2006-04-05 | Use variable names for sizeof, remove casts in front of xmalloc, | Ray Lai | |
use xcalloc and xstrdup where appropriate, and other stuff. OK joris@ | |||
2006-03-28 | Today is Integer Overflow Prevention Day: | Ray Lai | |
- Sync xmalloc.? with ssh versions. - Change all xrealloc() calls to new API. ``I really like this.'' niallo@ | |||
2006-03-25 | Correct integer types, remove unused arguments, non-portable bitshifts | Ray Lai | |
changed to division, KNF, replace unreachable code with goto fail, et cetera. Found by lint. The free() -> xfree() as well. OK niallo@ | |||
2006-03-23 | - cvs_buf_putc() will never return non-zero | Xavier Santolaria | |
- change cvs_buf_putc() return type to void OK ray@. | |||
2006-03-20 | delint; cvs_buf_write_stmp() will never return non-zero: | Niall O'Higgins | |
- remove superfluous error handling for cvs_buf_write_stmp() - change cvs_buf_write_stmp() return type to void ok joris@ xsa@ | |||
2006-03-17 | Use ssize_t in appropriate places. | Ray Lai | |
Found by lint. OK niallo@ | |||
2006-03-15 | - fchmod file to mode. | Niall O'Higgins | |
ok ray@ | |||
2006-03-07 | no need to duplicate error message; | Xavier Santolaria | |
2006-03-06 | like gnu ci(1), continue to process valid files in argv even if some are | Niall O'Higgins | |
invalid. ok xsa@ | |||
2006-02-26 | better user-friendly error message. | Xavier Santolaria | |
2006-01-29 | - fix a bug where co -l would fail with "permission denied" if the working | Niall O'Higgins | |
file was read-only. ok joris@ | |||
2006-01-16 | - in cvs_buf_free(), don't try to free() b->cb_buf if it has not been | Niall O'Higgins | |
allocated. fixes PR4974. From: <ttakah@lapis.plala.or.jp> | |||
2006-01-15 | - don't try to malloc 0 bytes of memory if an empty buffer is requested; delay | Niall O'Higgins | |
the malloc till cvs_buf_grow(). fixes PR4972. ok joris@ | |||
2006-01-10 | - add cvs_buf_getc() function; returns byte at specified buffer position. | Niall O'Higgins | |
needed for the next commit. ok xsa@ joris@ | |||
2006-01-02 | #include's cleanup; ok joris@ niallo@. | Xavier Santolaria | |
2005-12-30 | adjust some thruth in a comment. | Joris Vink | |
2005-12-30 | spacing | Joris Vink | |
2005-12-24 | remove useless cvs_buf_alloc() failure checks; | Joris Vink | |
2005-12-23 | cvs_buf_write() did not properly set new permissions | Joris Vink | |
on already existing files. niallo agrees. | |||
2005-12-21 | initialize `rlen' in cvs_buf_set(); | Xavier Santolaria | |
2005-12-20 | fix use of fatal() from previous commit; | Xavier Santolaria | |
temporary files were left behind if cvs_buf_write_* functions failed; OK joris@. | |||
2005-12-20 | missed that in previous fatal() commit; | Xavier Santolaria | |
2005-12-20 | use fatal(); OK joris@ niallo@. | Xavier Santolaria | |
2005-12-10 | switch to xmalloc stuff, me and xsa@ agreed on this a long | Joris Vink | |
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@ | |||
2005-08-14 | missing casts; ok joris | Xavier Santolaria | |
2005-07-29 | minor KNF; | Xavier Santolaria | |