summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Using statfs.f_fstypename rather than statfs.f_type whilst performing fstypeavatar2011-06-131-20/+6
| | | | | | | | comparsion as nullfs will copy f_type from underlayer FS. PR: bin/156258 Submitted by: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> MFC after: 1 month
* Upgrade our copy of llvm/clang to r132879, from upstream's trunk.dim2011-06-121-0/+2
|
* - Use REG_NOSUB to bypass submatch counting when not necessary. This maygabor2011-06-122-2/+8
| | | | | | yield in somewhat better performance in a few cases. Approved by: delphij (mentor)
* - Fix -w behaviorgabor2011-06-122-14/+13
| | | | | | | | | - Make -F and -w work together - Fix --color to colorize all of the matches PR: bin/156826 Submitted by: Yuri Pankov <yuri.pankov@gmail.com> Approved by: delphij (mentor)
* Add self to calendarcrees2011-06-111-0/+1
| | | | Approved by: rene (mentor)
* - Add myself to calendar.freebsdjlaffaye2011-06-071-0/+1
| | | | | | - Add the forgotten relation to mentors in committers-ports.dot Approved by: bapt@ (mentor)
* Remove redundant assignments to WARNS.ed2011-06-063-6/+0
| | | | For these directories, WARNS is already implied to be 6.
* Attempt to clear up some confusion in the following example, by statinggjb2011-06-061-0/+6
| | | | | | | | | | the '-c' argument is passed to the shell, not to su(1), which would indicate the login class. 'su -m <user> -c <command>' Submitted by: Warren Block <wblock@wonkity.com> (followup to 157078) MFC after: 5 days
* Fix regex for ptraceopname().dchagin2011-06-061-1/+1
| | | | | | PR: bin/157663 Submitted by: jason wright <jason@thought.net> MFC after: 10 days
* Bump date from previous commit. :(gjb2011-06-061-1/+1
| | | | MFC after: 5 days
* Document that when running 'su -m <user> -c <command>', <command> is rungjb2011-06-061-4/+4
| | | | | | | | within a shell as <user>. PR: 157078 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 5 days
* Pass correct size to write(2).jh2011-06-061-1/+1
| | | | | | PR: bin/155915 Submitted by: John Levine MFC after: 2 weeks
* find: Exit if there is an unknown option.jilles2011-06-041-1/+1
| | | | | | | | | | | | Ignoring the parameter with the unknown options is unlikely to be what was intended. Example: find -n . Note that things like find -n already caused an exit, equivalent to "find" by itself.
* When MANCOLOR environment variable is set, enable ANSI color escapesru2011-06-032-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in grotty(1). This makes it possible to view colorized manpages in color. When MANPAGER environment variable is set, use it instead of PAGER. Why another environment variable, one might ask? With color output enabled, both a terminal and a pager should support the ANSI color escapes. On a supporting terminal, less(1) with option -R would be such a pager, while "more -s" (the current default pager for man(1)) will show garbage. It means a different default pager is needed when color output is enabled, but many people have PAGER set customary, and it's unlikely to support ANSI color escapes, so introducing yet another variable (MANPAGER) seemed like a good option to me: - if MANPAGER is set, use that unconditionally; - if you disable color support (it is by default), and don't set MANPAGER, you get an old behavior: -P pager, $PAGER, "more -s", in that order; - if you enable color support (by setting MANCOLOR), and don't set MANPAGER, we ignore PAGER which is unlikely to support ANSI color escapes, and you get: -P pager, "less -Rs", in that order; - you might have good reasons for different man(1) and general purpose pagers; - later versions of GNU man(1) support MANPAGER.
* Don't use col(1) since grotty(1) never outputs reverse line feeds,ru2011-06-032-15/+6
| | | | | | | and because col(1) mangles ANSI color escapes if enabled. Spaces to tabs compression is now done by passing -h to grotty(1). Discussed with: uqs
* Trim more when parsing MANCONFIG directive.ru2011-06-031-1/+1
|
* Typo.ru2011-06-031-1/+1
|
* Added support for the MANWIDTH environment variable:ru2011-06-032-2/+46
| | | | | | | If set to a numeric value, used as the width manpages should be displayed. Otherwise, if set to a special value ``tty'', and output is to a terminal, the pages may be displayed over the whole width of the screen.
* Fix man -t by not passing grotty flags to groff when grotty is notuqs2011-06-021-1/+1
| | | | | | | | involved. This fixes a regression introduced with r221303. Noticed by: jilles
* mdoc: reorder sections consistentlyuqs2011-06-021-10/+10
|
* mdoc: fix markupuqs2011-06-021-1/+1
|
* Fix a couple of spelling errors.imp2011-05-311-3/+3
| | | | Submitted by: bcr@
* - Document the -H option and 'H' key alongside other options and keysjhb2011-05-311-4/+0
| | | | | | | | | | | rather than at the bottom of the manpage. - Remove an obsolete comment about SWAIT being a stale state. It was resurrected for a different purpose in FreeBSD 5 to mark idle ithreads. - Add a comment documenting that the SLEEP and LOCK states typically display the name of the event being waited on with lock names being prefixed with an asterisk and sleep event names not having a prefix. MFC after: 1 week
* Add a new option to toggle the display of the system idle process (per-CPUjhb2011-05-311-0/+7
| | | | | | | | | | | idle threads). The process is displayed by default (subject to whether or not system processes are displayed) to preserve existing behavior. The system idle process can be hidden via the '-z' command line argument or the 'z' key while top is running. When it is hidden, top more closely matches the behavior of FreeBSD <= 4.x where idle time was not accounted to any process. MFC after: 2 weeks
* printf(1): Document that %c and precision for %b/%s use bytes, not chars.jilles2011-05-281-6/+17
| | | | | | | This means these features do not work as expected with multibyte characters. This perhaps less than ideal behaviour matches printf(3) and is specified by POSIX.
* printf: Allow multibyte characters for '<char> form, avoid negative codes.jilles2011-05-282-7/+20
| | | | | | | | | | | | | Examples: LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244) LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344) Both of these should print 228. Like some other shells, incomplete or invalid multibyte characters yield the value of the first byte without a warning. Note that there is no general way to go back from the character code to the character.
* find: If a part of an expression is unknown, do not call it an option.jilles2011-05-271-1/+1
| | | | | | | | | | | Although most of the primaries and operators start with "-", they are not options. Examples: find . -xyz find . -name xyz -or bad MFC after: 1 week
* Remove definitions for RACCT_FSIZE and RACCT_SBSIZE - these two are rathertrasz2011-05-271-3/+1
| | | | | performance-sensitive and not that useful, so I won't be merging them before 9.0.
* Added myself as src committer.ray2011-05-261-0/+1
| | | | Approved by: adrian (mentor)
* Fix a regression introduced with previous changeset: if output is stdout,delphij2011-05-251-1/+2
| | | | do not check for symbolic link.
* [mdoc] Fixed .Dt call.ru2011-05-252-2/+2
|
* Build and install a BSD licensed grep.obrien2011-05-252-5/+12
| | | | | | | | If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be '[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep will be 'gnugrep'. Discussed with: brooks
* Teach netstat(1) about the new global netisr policy sysctl,rwatson2011-05-241-12/+53
| | | | | | | | net.isr.dispatch, and about per-protocol dispatch policies. MFC after: 3 weeks Reviewed by: bz Sponsored by: Juniper Networks, Inc.
* Ensure there is a whitespace after a mount point.ru2011-05-241-1/+1
| | | | | | PR: 157286 Submitted by: Marcus Reid MFC after: 3 days
* Match symbolic link handling behavior with GNU gzip, bzip2 and xz:delphij2011-05-232-5/+5
| | | | | | | | When we are operating on a symbolic link pointing to an existing file, bail out by default, but go ahead if -f is specified. Submitted by: arundel MFC after: 2 weeks
* Diff reduction against NetBSD. The most notable change is to zdiff(1) todelphij2011-05-235-63/+128
| | | | | | handle more file formats including bzip2 and xz. MFC after: 2 weeks
* Add missing header file.pluknet2011-05-201-0/+1
| | | | MFC after: 1 week
* Correct typos in comments, no functional changes.bcr2011-05-203-8/+8
| | | | | | Found by: codespell Reviewed by: kaiw MFC after: 1 week
* Fix typos in comments, no functional changes.bcr2011-05-198-8/+8
| | | | | | Found by: codespell Reviewed by: alfred MFC after: 1 week
* Fix clang warnings.benl2011-05-183-4/+4
| | | | | | Note: these were actually bugs (printf with no format string). Approved by: philip (mentor)
* Change the sysctl naming for the old and new NFS clientsrmacklem2011-05-151-2/+2
| | | | | to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes the default nfs client use vfs.nfs.xxx after r221124.
* - Fix several typos [1]stas2011-05-141-6/+11
| | | | | | | - fuser(1) writes usernames to stderr, not stdout [1] - Add history section. Submitted by: Pieter de Goeje <pieter@degoeje.nl> [1]
* Constify a few string variables. While I'm there, also convert usage() todelphij2011-05-131-10/+10
| | | | | | use a prototype. MFC after: 2 weeks
* Fixed an embedded shell script.ru2011-05-131-1/+1
| | | | Reviewed by: sobomax
* uintmax_t is a better type here...imp2011-05-121-1/+1
| | | | Submitted by: avg@
* Fix printf int mismatch on 32-bit architectures...imp2011-05-121-2/+3
|
* - Commit work from libprocstat project. These patches add support for runtimestas2011-05-1222-1386/+999
| | | | | | | | | | | | | | | | | | | | | | | file and processes information retrieval from the running kernel via sysctl in the form of new library, libprocstat. The library also supports KVM backend for analyzing memory crash dumps. Both procstat(1) and fstat(1) utilities have been modified to take advantage of the library (as the bonus point the fstat(1) utility no longer need superuser privileges to operate), and the procstat(1) utility is now able to display information from memory dumps as well. The newly introduced fuser(1) utility also uses this library and able to operate via sysctl and kvm backends. The library is by no means complete (e.g. KVM backend is missing vnode name resolution routines, and there're no manpages for the library itself) so I plan to improve it further. I'm commiting it so it will get wider exposure and review. We won't be able to MFC this work as it relies on changes in HEAD, which was introduced some time ago, that break kernel ABI. OTOH we may be able to merge the library with KVM backend if we really need it there. Discussed with: rwatson
* Flush the scriptfile whenever we see a non-graphical character to getphk2011-05-101-5/+11
| | | | | more real-time logging, without forcing a write(2) on every single character.
* Regenerated with latest configure script.delphij2011-05-101-0/+6
| | | | MFC after: 1 month
* - Add a forgotten -o to usage().ru2011-05-051-1/+1
| | | | - Sync usage() with manpage's SYNOPSIS.
OpenPOWER on IntegriCloud