summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* [mdoc] remove a hard sentence break.ru2011-05-051-1/+2
|
* Update nfsstat.1 to reflect the changes done to nfsstat(1)rmacklem2011-05-041-5/+10
| | | | | | | by r221455. This includes a new "-o" option for displaying statistics from the old NFS client/server and a slightly different description for the "-e" option. This is a content change.
* Modify nfsstat(1) so that it reports statistics for thermacklem2011-05-041-106/+253
| | | | | | | new NFS client/server by default, in a format compatible with the old NFS client/server. Also add a "-o" flag that forces nfsstat(1) to get statistics for the old NFS client/server.
* Modify nfsstat(1) so that it prints out the buffer cachermacklem2011-05-041-4/+6
| | | | | | stats in the same way for the new client as the old one. MFC after: 2 weeks
* Fix nfsstat.c so that the "-z" option works for the newrmacklem2011-05-041-5/+12
| | | | | | NFS subsystem. MFC after: 2 weeks
* Revert r221308, since it incorrectly zero'd both client andrmacklem2011-05-041-6/+3
| | | | server stats when "-c" or "-s" was specified.
* Fixed bad format and misorder.ru2011-05-031-4/+4
|
* Call pam_setcred() before login_getpwclass to support home directoriesdfr2011-05-031-2/+14
| | | | | on GSS-API authenticated NFS where the kerberos credentials need to be saved so that the kernel can authenticate to the NFS server.
* Change the way rctl interfaces with jails by introducing prison_raccttrasz2011-05-031-4/+4
| | | | | | structure, which acts as a proxy between them. This makes jail rules persistent, i.e. they can be added before jail gets created, and they don't disappear when the jail gets destroyed.
* Minor updates to the clang and tblgen manpages.dim2011-05-022-14/+9
|
* Upgrade our copy of llvm/clang to r130700, from upstream's trunk.dim2011-05-021-15/+16
|
* Fix nfsstat.1 to indicate that "-z" now works forrmacklem2011-05-011-2/+1
| | | | | | | the new NFS subsystems after r221308. This is a content change. MFC after: 2 weeks
* Fix nfsstat so that the "-z" option works for thermacklem2011-05-011-3/+6
| | | | | | new NFS subsystem. MFC after: 2 weeks
OpenPOWER on IntegriCloud