Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-04-14 | - swap a hack for a slightly nicer hack using a global variable. this avoids | Niall O'Higgins | |
adding a really nasty hack to make some upcoming rlog fixes from joris work. ok joris@ | |||
2006-04-14 | Add missing usage() calls. | Ray Lai | |
``crazy'' joris@ | |||
2006-04-14 | Plug obvious memory leaks. | Ray Lai | |
The comparison function was previously changed by me to use strcmp, which is probably wrong since a buffer can theoretically have NULs in it. This fixes it. (In my defense, the original code converted the buffer text to char * values and compared until there was either a difference or until a NUL was reached, so my previous change was no worse.) OK joris@ | |||
2006-04-14 | Remove global variable RCSFILE. | Ray Lai | |
OK joris@ | |||
2006-04-14 | Remove extraneous argument from rlog_file(). | Ray Lai | |
OK joris@ | |||
2006-04-14 | Short-circuit rlog when the -l flag is specified but there are no locks. | Ray Lai | |
OK joris@ | |||
2006-04-14 | spacing | Theo de Raadt | |
2006-04-14 | more nasty spaces go bye bye | Theo de Raadt | |
2006-04-14 | remove a metric buttload of excessive () | Theo de Raadt | |
no binary change; ok ray | |||
2006-04-14 | update the manpage to document interrupt cpu time in the vmstat view. | David Gwynne | |
prodded by deraadt@ | |||
2006-04-14 | remove comments that says we dont count intr time and remove some code that | David Gwynne | |
fudges the output to stay clean when intr time wasnt shown. not needed since we show it now. | |||
2006-04-14 | excessive addition to brackets is a mental disease. you will go | Theo de Raadt | |
blind, too. seek help. no binary change, ok joris | |||
2006-04-14 | show cpu time spent in interrupts. ive been wanting this for years. | David Gwynne | |
tweaks by deraadt@ ok by many | |||
2006-04-14 | Fix a typo introduced in rev 1.135; ok ray@ | Patrick Latifi | |
2006-04-13 | Change rcs_parse_init() to return void, since it always returned 0. | Ray Lai | |
Remove unused variables found by lint. Some parts OK xsa@, ``throw it in :)'' joris@ | |||
2006-04-13 | add support for the openrcs -o'range' option. | Joris Vink | |
-o allows users to delete revisions in the specified RCS files. example: rcs -o1.4:1.6 foo deletes revisions 1.4 - 1.6 rcs -o1.3 foo deletes revision 1.3 joint work with niallo@ okay niallo@ | |||
2006-04-13 | fix -z option for openrcs, this was broken by xsa | Joris Vink | |
when he yanked the code out of rcs.c and placed it in rcstime.c. struct tm ltb, *tb; tb = <b; return (tb); isn't really the most perfect idiom to return a value to the caller, now is it? as a bonus -z for rlog now works too. okay niallo@ | |||
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-13 | Add error checking for vasprintf. Stylistic suggestions from xsa@. | Ray Lai | |
OK xsa@ | |||
2006-04-13 | Remove unused variable. | Ray Lai | |
Found by lint. OK xsa@ | |||
2006-04-13 | Currently rcs_getopt spits out a generic error message if you do | Ray Lai | |
`ci -m file'. This changes it so if -m is given without an argument a customized error message is printed. While I was there I sorted the optstring according to style(9). ``Oh, I see it now.'' niallo@ | |||
2006-04-13 | clean up temporary files when we finish running. | Joris Vink | |
"cool" niallo@ | |||
2006-04-13 | fix some typos | Niall O'Higgins | |
2006-04-13 | correctly handle RCS files without any revisions; | Joris Vink | |
original diff from ray@, crafted into shape by myself. okay ray@ | |||
2006-04-13 | *** empty log message *** | Ray Lai | |
2006-04-12 | Better match GNU behavior for rcs -l and rcs -u. | Ray Lai | |
Save 2 bytes of newlines. OK joris@ | |||
2006-04-12 | yet another missing break; | Xavier Santolaria | |
2006-04-12 | missing break; "Yeah, obvious" ray@. | Xavier Santolaria | |
2006-04-12 | check for inflateReset() and deflateReset() return values; OK niallo@. | Xavier Santolaria | |
2006-04-12 | use "/bypass" instead of "/permit" when showing bypass flows | Hans-Joerg Hoexer | |
ok henning claudio | |||
2006-04-12 | spaces | Theo de Raadt | |
2006-04-12 | Clean up <rev> handling. Whenever a revision is specified after a | Ray Lai | |
flag, it calls one of two new functions: rcs_setrevstr() or rcs_setrevstr2(). rcs_setrevstr() sets a string to another string, and complains if it was set more than once. rcs_setrevstr2() takes two strings, sets one after the other, and fatal()s if more than two strings were given. All <rev> handling is now done in the loop that goes through each argv. This is necessary for parsing symbols, which will be much easier after this. Along the way a lot of memory leaks were cleaned up. There is one area where rcs_set_rev() is called, which allocates a RCSNUM and stores it in pb.newrev, but it segfaults whenever I try to rcsnum_free() it. I put an /* XXX */ comment there for now. Passes regression tests and the code is less complicated in some ways (to me). Suggestions and OK xsa@ | |||
2006-04-12 | xmalloc(); memset(); -> xcalloc(); | Ray Lai | |
OK xsa@ | |||
2006-04-12 | Improve error message. | Ray Lai | |
Found by Florin Iamandi <florin dot i at tiscali dot it>. OK tedu@ and deraadt@ | |||
2006-04-11 | Don't rcs_close() before fatal(). After much hesitation, joris@ | Ray Lai | |
and xsa@ finally convinced me this is safe (and better). OK joris@, niallo@, and xsa@. | |||
2006-04-11 | Don't close() before fatal(). | Ray Lai | |
OK joris@, niallo@, and 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-10 | switch to openrcs and eliminate more gnu from the tree. | Joris Vink | |
note that openrcs still lacks some features. okay niallo@, xsa@, ray@, "Do it" deraadt@ | |||
2006-04-10 | - zap some whitespace. | Niall O'Higgins | |
2006-04-10 | rcs_kflag_usage() is not used by usr.bin/rcs; OK joris@. | Xavier Santolaria | |
2006-04-10 | sync comments with reality. | Xavier Santolaria | |
2006-04-10 | change rcs_kwexp_set() return type to void and simplify its use. OK niallo@. | Xavier Santolaria | |
2006-04-09 | - don't print out warnings about locking when they are actually wrong and | Niall O'Higgins | |
just confuse the user. ok and input joris@ | |||
2006-04-07 | change rcs_set_mtime() return type to void. | Xavier Santolaria | |
2006-04-07 | Stylistic changes initially from Thordur I. Bjornsson, more cleanup | Ray Lai | |
and delinting from me. OK otto@ and jaredy@ | |||
2006-04-06 | cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@. | Xavier Santolaria | |
2006-04-06 | lexicographical order, not lexigraphical order; why people don't | Jason McIntyre | |
just use "alphabetical" is beyond me... from igor sobrado (pr #5070); | |||
2006-04-06 | rcsnum_setsize() will never return non-zero; change its return type to void. | Xavier Santolaria | |