summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken mdoc.uqs2011-08-011-1/+1
| | | | | Found by: manlint Approved by: re (kib)
* Correctly link bsdcpio and bsdtar against libmd and libcrpytomm2011-08-012-4/+11
| | | | | | | | by applying the change from r221472 (libarchive). Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* MFprojects/hid:mav2011-07-302-20/+62
| | | | | | | | | | | | - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1. Approved by: re (kib) MFC after: 2 weeks
* Fix the following bugs related to the SCTP support of netstat:tuexen2011-07-221-113/+204
| | | | | | | | | | | | * Correctly handle -a. * -A isn't supported. * Show all closed 1-to-1 and 1-to-many style sockets. * Show all listening 1-to-many style sockets. * Use consistent formatting for -W. PR: 150642 Approved by: re@ MFC after: 4 weeks.
* Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus'jhb2011-07-181-5/+3
| | | | | | | | | | | | to the maximum number of CPUs to ensure that lcpustates[] array is always allocated to the maximum size. Previously, if top was started without per-CPU stats it would allocate a smaller lcpustates[] array. When per-CPU stats were then enabled, it would overflow the array and trash the cpustates_columns[] array causing the CPU stats to be printed in the wrong locations. Approved by: re (kib) MFC after: 1 week
* Constantly print the command name and if set include the threadbz2011-07-181-8/+20
| | | | | | | | | | name in per-thread mode. Discussed with: jhb Obtained from: Ed Maste at Sandvine Incorporated Sponsored by: Sandvine Incorporated MFC after: 1 week Approved by: re (kib)
* Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.bz2011-07-183-10/+10
| | | | | | | | | Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib)
* sintrcnt/sintrnames is the address of the size, not the actual size.pluknet2011-07-181-2/+2
| | | | | | | | Use them appropriately to fetch the actual size. That fixes vmstat -i with kvm backend. Submitted by: peter Approved by: re (kib)
* - Export each thread's individual resource usage in in struct kinfo_proc'sjhb2011-07-181-2/+15
| | | | | | | | | | | | ki_rusage member when KERN_PROC_INC_THREAD is passed to one of the process sysctls. - Correctly account for the current thread's cputime in the thread when doing the runtime fixup in calcru(). - Use TIDs as the key to lookup the previous thread to compute IO stat deltas in IO mode in top when thread display is enabled. Reviewed by: kib Approved by: re (kib)
* - Remove the eintrcnt/eintrnames usage and introduce the concept ofattilio2011-07-181-8/+6
| | | | | | | | | | | | | | | | sintrcnt/sintrnames which are symbols containing the size of the 2 tables. - For amd64/i386 remove the storage of intr* stuff from assembly files. This area can be widely improved by applying the same to other architectures and likely finding an unified approach among them and move the whole code to be MI. More work in this area is expected to happen fairly soon. No MFC is previewed for this patch. Tested by: pluknet Reviewed by: jhb Approved by: re (kib)
* Fix accidential commit part:mm2011-07-171-1/+1
| | | | | | Include "bsdtar_platform.h" instead of "lafe_platform.h" MFC after: 2 weeks
* Append to CPIO_SRCS instead of using TAR_SRCS,mm2011-07-171-2/+1
| | | | | | the variable name is misleading MFC after: 2 weeks
* Update bsdcpio to 2.8.4mm2011-07-1743-2282/+2692
| | | | | | | Use common code from lib/libarchive/libarchive_fe Approved by: kientzle MFC after: 2 weeks
* Update bsdtar to 2.8.4mm2011-07-1736-2163/+2615
| | | | | | | Use common code from lib/libarchive/libarchive_fe Approved by: kientzle MFC after: 2 weeks
* Upgrade our copy of llvm/clang to r135360, from upstream's trunk.dim2011-07-172-0/+8
|
* bmake and other updates necessary for the BIND 9.8.x upgrade.dougb2011-07-161-0/+1
| | | | | | | | | This includes a structural change regarding atomic ops. Previously they were enabled on all platforms unless we had knowledge that they did not work. However both work performed by marius@ on sparc64 and the fact that the 9.8.x branch is fussier in this area has demonstrated that this is not a safe approach. So I've modified a patch provided by marius to enable them for i386, amd64, and ia64 only.
* Revert 130163 and let top use KERN_PROC_PROC when individual threads arejhb2011-07-151-17/+4
| | | | not displayed. The KERN_PROC_PROC sysctl was fixed in 188764.
* Rename resource names to match these in login.conf.trasz2011-07-141-25/+24
|
* Remove semaphore map entry count "semmap" field and its tuningbz2011-07-142-4/+1
| | | | | | | | | | | option that is highly recommended to be adjusted in too much documentation while doing nothing in FreeBSD since r2729 (rev 1.1). ipcs(1) needs to be recompiled as it is accessing _KERNEL private variables. Reviewed by: jhb (before comment change on linux code) Sponsored by: Sandvine Incorporated
* Fix indentation.bz2011-07-141-1/+1
| | | | | | Obtained from: Ed Maste at Sandvine Incorporated Sponsored by: Sandvine Incorporated MFC after: 3 days
* Truncate link addresses like it is done for anytuexen2011-07-121-1/+1
| | | | | | other address type. MFC after: 4 weeks
* If one's message is longer than the buffer size, then we reset 'cnt' at theobrien2011-07-121-1/+2
| | | | wrong point and the actual column # get out of sync across the buffer size.
* Fix run-time breakage when encoutering invalid input-data.edwin2011-07-111-0/+2
| | | | PR: bin/157718
* Allow per-CPU statistics to be toggled at runtime via the 'P' key.jhb2011-07-111-70/+78
| | | | | | | While here, make -P a toggle similar to other options such as -I. Reviewed by: arundel MFC after: 1 week
* Fix typo in order of markup and text.edwin2011-07-111-1/+1
|
* ncal(1) highlights the current date (or a date provided via parameter)edwin2011-07-112-1/+4
| | | | | | | | | even if stdout is not a tty. If stdout is not a tty the data is normally processed by other tools and no control sequences are expected. PR: bin/158580 MFC after: 1 week
* Fix the interpreter for:edwin2011-07-111-0/+28
| | | | | | | | | | | | | | | | Jul/Sat+3 Every third saturday of July - Jul/Sat+3 which was able to be done via: Jul/SatThird Every third saturday of July - Jul/SatThird Add interpreters for: SatFourth Every third saturday of each month - SatFourth Sat+4 Every third saturday of each month - Sat+4 Sat Every saturday of each month - Sat MFC after: 2 weeks
* peeraddr is only used in sizeof() evaluations, so instead of declaring itdelphij2011-07-111-1/+1
| | | | | | a variable, use typedef. MFC after: 1 month
* Use %zu when printing size_t.delphij2011-07-111-2/+2
| | | | MFC after: 1 month
* Match size_t and ssize_t by using %zu and %zd instead of %d.delphij2011-07-111-1/+1
| | | | MFC after: 1 month
* Use a pair of parentheses to ensure right evaluation order.delphij2011-07-111-1/+1
|
* Use strlcpy().delphij2011-07-111-15/+11
| | | | MFC after: 1 month
* Always skip the kernel idle process if requested, it is not specific tojhb2011-07-071-5/+4
| | | | | | | | the 'CPU' mode. PR: bin/158677 Reported by: arundel MFC after: 3 days
* Only print entries for which ut_host points to a character device.ed2011-07-051-1/+1
| | | | | | Now that we use utmpx, we more often have entries for which the ut_line is left blank. To prevent us from returning struct stat for "/dev/", check that the resulting stat structure belongs to a character device.
* Fix quota(1) output.pluknet2011-06-301-5/+11
| | | | | | | | | | | - Fix calculation of 1024-byte sized blocks from disk blocks shown when -h option isn't specified. It was broken with quota64 integration. - In prthumanval(): limit the size of a buffer passed to humanize_number() to a width of 5 bytes but allow a shorter length if requested. That's what users expect. PR: bin/150151 Reviewed by: Kirk McKusick
* Remove needless file due to Russia scraps DST in 2011.osa2011-06-282-17/+0
| | | | | | | | | | | | | | | > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M calendars/ru_RU.KOI8-R/calendar.all D calendars/ru_RU.KOI8-R/calendar.msk
* The --newer-than test should descend into oldkientzle2011-06-261-4/+12
| | | | | | | | directories to look for new files. PR: bin/150890 Submitted by: Tobias Herre MFC after: 3 weeks
* More accurate birthplace.joel2011-06-251-1/+1
|
* If there is a read error reading Y/N confirmation from the keyboard,kientzle2011-06-252-1/+12
| | | | | | | | | exit immediately with an error. If there is an error opening or reading a file to put into the archive, set the return value for a deferred error exit. PR: bin/154407
* Remove duplicated header fileskevlo2011-06-245-6/+0
|
* Acknowledge Edwin Groothuis for the major rewrite herodrigc2011-06-241-1/+7
| | | | did of the tftpd and tftp code to support TFTP blocksize.
* Update references to RFC's that the newer TFTP implementation supports.rodrigc2011-06-221-0/+34
|
* Bump date.rodrigc2011-06-221-1/+49
| | | | | Document the following commands which were added in the new TFTP implementation: blocksize, blocksize2, packetdrop, options, rollover
* Eliminate unneeded headers.delphij2011-06-212-3/+0
|
* Remove unneeded headers.delphij2011-06-212-6/+0
| | | | MFC after: 2 weeks
* Staticify cleanup() which is not referenced in other places.delphij2011-06-211-1/+1
| | | | MFC after: 2 weeks
* Merge tnftp-20100108 from the vendor branch into head.gavin2011-06-203-290/+519
| | | | | PR: bin/112288 bin/120256 bin/129014 bin/145528 MFC after: 1 month
* fuser: Fix skipping "SIG" on signal names (-s).jilles2011-06-181-3/+2
| | | | | | | The code did !strncasecmp(str, "sig", 4) which is not useful. Also change "sig" to "SIG" matching the uppercase signal names as of r218285. This has little effect because fuser does not enable locale.
* Fix clang warnings.benl2011-06-185-23/+36
| | | | Approved by: philip (mentor)
* Let the size of the namebuf depend on the size of the ut_user field.ed2011-06-181-1/+1
|
OpenPOWER on IntegriCloud