summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2006-04-14- swap a hack for a slightly nicer hack using a global variable. this avoidsNiall O'Higgins
adding a really nasty hack to make some upcoming rlog fixes from joris work. ok joris@
2006-04-14Add missing usage() calls.Ray Lai
``crazy'' joris@
2006-04-14Plug 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-14Remove global variable RCSFILE.Ray Lai
OK joris@
2006-04-14Remove extraneous argument from rlog_file().Ray Lai
OK joris@
2006-04-14Short-circuit rlog when the -l flag is specified but there are no locks.Ray Lai
OK joris@
2006-04-14spacingTheo de Raadt
2006-04-14more nasty spaces go bye byeTheo de Raadt
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-14update the manpage to document interrupt cpu time in the vmstat view.David Gwynne
prodded by deraadt@
2006-04-14remove comments that says we dont count intr time and remove some code thatDavid Gwynne
fudges the output to stay clean when intr time wasnt shown. not needed since we show it now.
2006-04-14excessive addition to brackets is a mental disease. you will goTheo de Raadt
blind, too. seek help. no binary change, ok joris
2006-04-14show cpu time spent in interrupts. ive been wanting this for years.David Gwynne
tweaks by deraadt@ ok by many
2006-04-14Fix a typo introduced in rev 1.135; ok ray@Patrick Latifi
2006-04-13Change 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-13add 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-13fix -z option for openrcs, this was broken by xsaJoris Vink
when he yanked the code out of rcs.c and placed it in rcstime.c. struct tm ltb, *tb; tb = &ltb; 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-13fix the obviously broken cvs_buf_set(), so we don't end upJoris 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-13Add error checking for vasprintf. Stylistic suggestions from xsa@.Ray Lai
OK xsa@
2006-04-13Remove unused variable.Ray Lai
Found by lint. OK xsa@
2006-04-13Currently rcs_getopt spits out a generic error message if you doRay 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-13clean up temporary files when we finish running.Joris Vink
"cool" niallo@
2006-04-13fix some typosNiall O'Higgins
2006-04-13correctly 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-12Better match GNU behavior for rcs -l and rcs -u.Ray Lai
Save 2 bytes of newlines. OK joris@
2006-04-12yet another missing break;Xavier Santolaria
2006-04-12missing break; "Yeah, obvious" ray@.Xavier Santolaria
2006-04-12check for inflateReset() and deflateReset() return values; OK niallo@.Xavier Santolaria
2006-04-12use "/bypass" instead of "/permit" when showing bypass flowsHans-Joerg Hoexer
ok henning claudio
2006-04-12spacesTheo de Raadt
2006-04-12Clean up <rev> handling. Whenever a revision is specified after aRay 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-12xmalloc(); memset(); -> xcalloc();Ray Lai
OK xsa@
2006-04-12Improve error message.Ray Lai
Found by Florin Iamandi <florin dot i at tiscali dot it>. OK tedu@ and deraadt@
2006-04-11Don'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-11Don't close() before fatal().Ray Lai
OK joris@, niallo@, and xsa@.
2006-04-11Change cvs_buf_grow() to return void, since it cannot fail, andRay 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-10make sure we add the correct name mkstemp(3) creates for usJoris 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(), makesNiall O'Higgins
it like cvs_buf_write() - print warning on fchmod() failure (suggested by ray) ok joris@ ray@
2006-04-10switch 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-10rcs_kflag_usage() is not used by usr.bin/rcs; OK joris@.Xavier Santolaria
2006-04-10sync comments with reality.Xavier Santolaria
2006-04-10change 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 andNiall O'Higgins
just confuse the user. ok and input joris@
2006-04-07change rcs_set_mtime() return type to void.Xavier Santolaria
2006-04-07Stylistic changes initially from Thordur I. Bjornsson, more cleanupRay Lai
and delinting from me. OK otto@ and jaredy@
2006-04-06cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@.Xavier Santolaria
2006-04-06lexicographical order, not lexigraphical order; why people don'tJason McIntyre
just use "alphabetical" is beyond me... from igor sobrado (pr #5070);
2006-04-06rcsnum_setsize() will never return non-zero; change its return type to void.Xavier Santolaria