aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Set program exit value to 1 if there are any of various errors whenTim Kientzle2004-06-071-0/+4
| | | | | | | | | | creating an archive. Pointed out by: Failure to complain when building certain broken packages (Thanks again to Kris Kennaway for finding this!) Notes: svn path=/head/; revision=130176
* Fix the symlink-detection code. Don't squawk if we're just replacingTim Kientzle2004-06-071-6/+22
| | | | | | | | | | | | | an existing symlink (as might happen if you extract an archive twice). Also, if we remove the offending link, then we've removed the problem and can safely go forward with the extraction. Pointed out by: print/adobe-cmaps port (whose distfile has duplicate entries for the same symlinks) Thanks to: Kris Kennaway (for using ports as a testbed for bsdtar) Notes: svn path=/head/; revision=130172
* The --include='pattern' option is the natural counterpart toTim Kientzle2004-06-072-0/+25
| | | | | | | | | | | | --exclude='pattern'. I should have added this a long time ago, since it's so useful for testing. In particular, it allows me to select a few entries from a troublesome archive so that I can easily focus my debugging efforts: bsdtar -czf new.tgz --include='*foo*' @old.tgz Notes: svn path=/head/; revision=130171
* Ooops! Previous commit added an over-zealous error check.Tim Kientzle2004-06-071-0/+2
| | | | | | | | It is, in fact, perfectly legal to not specify a compression when writing an archive. <sigh> Notes: svn path=/head/; revision=130170
* If -b is specified, then force full padding for the last block.Tim Kientzle2004-06-074-6/+30
| | | | Notes: svn path=/head/; revision=130169
* Per style(9), don't use double spaces in expressions.Tim Kientzle2004-06-072-3/+3
| | | | | | | Pointed out by: njl, des. Notes: svn path=/head/; revision=130168
* Do not use KERN_PROC_PROC with kvm_getproc(3); instead, if only processBrian Feldman2004-06-061-4/+17
| | | | | | | | | | | | | | (and not thread) scope is to be displayed, use KERN_PROC_ALL and accrue CPU% ourselves, as the kernel makes no attempt to do so. Of course, this doesn't make most stats any less bogus when displaying threaded processes, but at least the CPU time is added up and not just always 0.00%. There are still issues with SCHED_ULE in top(1) that cause other processes to display 0.00% CPU when they in fact have used more. Notes: svn path=/head/; revision=130163
* s/latter/former/David Schultz2004-06-051-1/+1
| | | | Notes: svn path=/head/; revision=130117
* - Document the %a, %A, and %F format specifiers.David Schultz2004-06-051-3/+31
| | | | | | | | - Document the way infinity and NaN are printed. - Un-document the non-existent %w specifier. Notes: svn path=/head/; revision=130116
* Enable support for the %a, %A, and %F format specifiers.David Schultz2004-06-051-1/+4
| | | | Notes: svn path=/head/; revision=130115
* Add austrian calendar as install target.Josef El-Rayes2004-06-041-1/+2
| | | | | | | | Approved by: le Pointed out by: stefanf Notes: svn path=/head/; revision=130066
* Pointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>Tim Kientzle2004-06-032-2/+2
| | | | Notes: svn path=/head/; revision=130044
* Plug a file descriptor leak.Brian Somers2004-06-031-7/+13
| | | | | | | | | | When sed is asked to inline-edit files, it forgets to close the temporary file and runs out of descriptors for long command lines (assuming you reset kern.maxfilesperproc to something sane that's less than the number of files passed to sed). Notes: svn path=/head/; revision=130039
* Improve help handling:Tim Kientzle2004-06-021-0/+13
| | | | | | | | | * --help produces long help message on systems with getopt_long * -h with no other options also produces long help message (If a mode is specified, -h has its usual meaning.) Notes: svn path=/head/; revision=130012
* Add missing dot and newline in a message.Max Khon2004-06-021-1/+1
| | | | | | | | Submitted by: Igor Sysoev <is (at) rambler-co.ru> MFC after: 3 days Notes: svn path=/head/; revision=130007
* Fill the 06/02 slot.Jean-Marc Zucconi2004-06-021-0/+1
| | | | Notes: svn path=/head/; revision=129997
* typos.Poul-Henning Kamp2004-06-021-2/+2
| | | | | | | Pointed out by: ru Notes: svn path=/head/; revision=129988
* Both "foo/" and "foo" should match "foo/bar", so stripTim Kientzle2004-06-021-0/+3
| | | | | | | | | trailing '/' characters on include patterns for extraction. Pointed out by: games/quakeforge port (thanks to Kris!) Notes: svn path=/head/; revision=129987
* Give du(1) a -m option to report in megabytes.Poul-Henning Kamp2004-06-022-10/+9
| | | | | | | | Submitted by: Vasily Korytov <deskpot@msk.yell.ru> PR: 66976 Notes: svn path=/head/; revision=129986
* Add Alice Liddell, Christopher Robin Milne and Winnie-the-Pooh, whoSeigo Tanimura2004-06-011-0/+5
| | | | | | | inspired well-known stories for children. Notes: svn path=/head/; revision=129931
* Bring in mbuma to replace mballoc.Bosko Milekic2004-05-315-241/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mbuma is an Mbuf & Cluster allocator built on top of a number of extensions to the UMA framework, all included herein. Extensions to UMA worth noting: - Better layering between slab <-> zone caches; introduce Keg structure which splits off slab cache away from the zone structure and allows multiple zones to be stacked on top of a single Keg (single type of slab cache); perhaps we should look into defining a subset API on top of the Keg for special use by malloc(9), for example. - UMA_ZONE_REFCNT zones can now be added, and reference counters automagically allocated for them within the end of the associated slab structures. uma_find_refcnt() does a kextract to fetch the slab struct reference from the underlying page, and lookup the corresponding refcnt. mbuma things worth noting: - integrates mbuf & cluster allocations with extended UMA and provides caches for commonly-allocated items; defines several zones (two primary, one secondary) and two kegs. - change up certain code paths that always used to do: m_get() + m_clget() to instead just use m_getcl() and try to take advantage of the newly defined secondary Packet zone. - netstat(1) and systat(1) quickly hacked up to do basic stat reporting but additional stats work needs to be done once some other details within UMA have been taken care of and it becomes clearer to how stats will work within the modified framework. From the user perspective, one implication is that the NMBCLUSTERS compile-time option is no longer used. The maximum number of clusters is still capped off according to maxusers, but it can be made unlimited by setting the kern.ipc.nmbclusters boot-time tunable to zero. Work should be done to write an appropriate sysctl handler allowing dynamic tuning of kern.ipc.nmbclusters at runtime. Additional things worth noting/known issues (READ): - One report of 'ips' (ServeRAID) driver acting really slow in conjunction with mbuma. Need more data. Latest report is that ips is equally sucking with and without mbuma. - Giant leak in NFS code sometimes occurs, can't reproduce but currently analyzing; brueffer is able to reproduce but THIS IS NOT an mbuma-specific problem and currently occurs even WITHOUT mbuma. - Issues in network locking: there is at least one code path in the rip code where one or more locks are acquired and we end up in m_prepend() with M_WAITOK, which causes WITNESS to whine from within UMA. Current temporary solution: force all UMA allocations to be M_NOWAIT from within UMA for now to avoid deadlocks unless WITNESS is defined and we can determine with certainty that we're not holding any locks when we're M_WAITOK. - I've seen at least one weird socketbuffer empty-but- mbuf-still-attached panic. I don't believe this to be related to mbuma but please keep your eyes open, turn on debugging, and capture crash dumps. This change removes more code than it adds. A paper is available detailing the change and considering various performance issues, it was presented at BSDCan2004: http://www.unixdaemons.com/~bmilekic/netbuf_bmilekic.pdf Please read the paper for Future Work and implementation details, as well as credits. Testing and Debugging: rwatson, brueffer, Ketrien I. Saihr-Kesenchedra, ... Reviewed by: Lots of people (for different parts) Notes: svn path=/head/; revision=129906
* Correction: -h should be a synonym for -L, not -H.Tim Kientzle2004-05-312-3/+3
| | | | | | | (as specified by Linux Standards Base, GNU tar, and 4.4BSD documentation) Notes: svn path=/head/; revision=129903
* Use miligram rather than mg in the definition of carats.David Malone2004-05-301-2/+2
| | | | | | | | PR: 61451 Submitted by: Tony Monroe <tmonroe+freebsd@nog.net> Notes: svn path=/head/; revision=129873
* Permit (but ignore) -Z with -x or -t, now that libarchiveTim Kientzle2004-05-301-2/+9
| | | | | | | recognizes and decompresses .Z format. Notes: svn path=/head/; revision=129856
* Include <sys/uio.h> for the complete type of struct iovec.Stefan Farfeleder2004-05-281-0/+2
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129814
* - introduce a new primary `-depth n', which tests whetherOliver Eikemeier2004-05-286-28/+91
| | | | | | | | | | | | | | | | | | | | | | | | the depth of the current file relative to the starting point of the traversal is n. The usual +/- modifiers to the argument apply. - while I'm here, fix -maxdepth in the case of a depth-first traversal Print the top ten maintainers of python module ports (works with p5-* too): find /usr/ports -depth 2 \! -name 'py-*' -prune -o \ -depth 3 -name Makefile -execdir make -VMAINTAINER \; \ | sort | uniq -c | sort -nr | head PR: 66667 Reviewed by: ru, joerg Approved by: joerg MFC after: 2 weeks Notes: svn path=/head/; revision=129812
* Minor corrections to error handling and user notifications:Tim Kientzle2004-05-271-23/+26
| | | | | | | | | | | * Move format/compression reporting to end of output, since we don't always know the input format until then. * Set bsdtar exit value to 1 if any file could not be restored. * Generate gtar-style warning when stripping leading '/' characters. * Warn when removing symlinks. Notes: svn path=/head/; revision=129770
* Provide framework for exiting with non-zero value on non-critical errors.Tim Kientzle2004-05-272-1/+3
| | | | Notes: svn path=/head/; revision=129769
* Use humanize_number(3) to format sizes into a human readable form.Pawel Jakub Dawidek2004-05-242-69/+11
| | | | Notes: svn path=/head/; revision=129678
* Mark du(1) as WARNS6 clean.Pawel Jakub Dawidek2004-05-241-0/+1
| | | | | | | Tested on: alpha, amd64, i386, ia64, sparc64 Notes: svn path=/head/; revision=129676
* Include <string.h> for prototypes of various string functions.Stefan Farfeleder2004-05-244-0/+7
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129657
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.Stefan Farfeleder2004-05-241-0/+2
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129652
* Add localized calendar file for holidays in Austria.Josef El-Rayes2004-05-231-0/+62
| | | | | | | Approved by: le Notes: svn path=/head/; revision=129609
* Add --no-same-owner as a synonym for -o.Tim Kientzle2004-05-221-0/+1
| | | | | | | | | | Note that bsdtar's -o (which follows SUSv2) is not the same as GNU tar's -o. In GNU tar, -o and --no-same-owner are not synonyms. Pointed out by: Kris Kennaway (required by xpenguins port) Notes: svn path=/head/; revision=129595
* Add a "-r" flag to ktrdump(1) to print relative timestamps when usedRobert Watson2004-05-222-6/+22
| | | | | | | | | | | with "-t" rather than absolute timestamps. This allows the reader to get a better sense of latency between events, such as time to schedule an interrupt thread from time the interrupt occurred. Assert a copyright on ktrdump.c since I seem to be modifying it more than I thought. Notes: svn path=/head/; revision=129574
* Add a quiet mode to ktrdump(1): if the "-q" flag is used, don't printRobert Watson2004-05-212-21/+30
| | | | | | | | the pretty text header on top of the output. Simplifies feeding the results of tracing into a script for mechanical processing. Notes: svn path=/head/; revision=129559
* When the 'f' flag is passed to ktrdump(1), use 40 characters for theRobert Watson2004-05-211-1/+1
| | | | | | | | | "file and line" field consistently; previously, a 32-character field length was used for the table header, which resulted in the header not lining up with the table. Notes: svn path=/head/; revision=129558
* Add --dereference as a synonym for -HTim Kientzle2004-05-211-0/+1
| | | | | | | Pointed out by: Kris Kennaway (unbreaks nspr port build) Notes: svn path=/head/; revision=129554
* Remove unneeded lseek(2) hack to position past the 2GB point,Hiten Pandya2004-05-201-18/+9
| | | | | | | | | | | | use fseeko(3) instead. This commit fixes breakage when `lastcomm matchstring` is run. PR: bin/66765, bin/64568 Submitted by: Dan Nelson <dnelson at allantgroup.com> Notes: svn path=/head/; revision=129509
* Fix a couple of warnings:David Malone2004-05-192-2/+6
| | | | | | | | | | | 1) Missing include for declaration of time conversion functions. 2) Avoid a couple of alignment warnings on 64 bit arches by memcpying the things pointed to by caddrs into variables of the right type. Bump WARNS to 6 while I'm here. Notes: svn path=/head/; revision=129459
* Add missing %s so that all of the usage message gets printed.David Malone2004-05-192-1/+2
| | | | | | | Bump WARNS to 6 while I'm here. Notes: svn path=/head/; revision=129458
* Fix integer overflow in the file size output when dealing withLukas Ertl2004-05-191-3/+3
| | | | | | | | | large files (i.e. DVD images). Reviewed by: des@ Notes: svn path=/head/; revision=129440
* Added pgrep to the SYNOPSIS.Ruslan Ermilov2004-05-191-14/+21
| | | | | | | | Fixed SYNOPSIS. Fixed markup nits. Notes: svn path=/head/; revision=129438
* Clean up language and markup.Ruslan Ermilov2004-05-192-61/+66
| | | | Notes: svn path=/head/; revision=129437
* Language and markup polishing.Ruslan Ermilov2004-05-191-11/+14
| | | | Notes: svn path=/head/; revision=129436
* Bumped the document date.Ruslan Ermilov2004-05-192-2/+2
| | | | Notes: svn path=/head/; revision=129435
* Bumped the document date.Ruslan Ermilov2004-05-191-2/+2
| | | | | | | Fixed the grammar nit. Notes: svn path=/head/; revision=129434
* Bumped document date.Ruslan Ermilov2004-05-191-2/+2
| | | | | | | Fixed markup nit. Notes: svn path=/head/; revision=129433
* Bumped document date.Ruslan Ermilov2004-05-191-2/+2
| | | | | | | Fixed the grammar nit. Notes: svn path=/head/; revision=129432
* Markup nits.Ruslan Ermilov2004-05-191-7/+7
| | | | Notes: svn path=/head/; revision=129431