summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in example getopt(1) script: $i vs $1 [1]uqs2011-01-261-17/+17
| | | | | | | | While here apply style hammer. PR: docs/154289 [1] Submitted by: Jamie Landeg Jones <jamie@bishopston.net> MFC after: 1 week
* Add -H flag to print thread id.dchagin2011-01-262-3/+15
|
* Remove dead code.jhb2011-01-251-1/+0
| | | | MFC after: 2 weeks
* Use test(1) operators and test for the catpage not being older than theuqs2011-01-251-2/+2
| | | | | | | | | manpage. Identical mtimes (as generated by buildworld for these files) precluded catpages from working. Approved by: gordon
* While printing out the WSID and CPU ID only the first time it appears forrwatson2011-01-241-8/+2
| | | | | | | | | | each workstream, rather than on every protocol, is prettier, it makes machine-parsing of netstat -Q output a lot harder. Repeat the information and hope that the user forgives us slightly dense formatting. MFC after: 3 days Reported by: bz Sponsored by: Juniper Networks
* Fix off-by-one whitespace error in netstat -Q workstream listing.rwatson2011-01-241-4/+4
| | | | | | Reported by: bz MFC after: 3 days Sponsored by: Juniper Networks
* Touch up the sample memory usage numbers a bit, to avoid wrappingkeramida2011-01-231-3/+6
| | | | | | | | | on terminal boundary. While here add definition for 'G' and fix the indentation of 'K' units. Submitted by: plunket PR: docs/153614 MFC after: 3 days
* Update to upstrea version 2.5.6.fanf2011-01-211-16/+25
| | | | | | | Detect IO errors properly. Write #line directives to the correct output stream. Obtained from: http://dotat.at/prog/unifdef
* - Hide the internal scope address representation of the KAME IPv6ume2011-01-203-22/+36
| | | | | | | | stack from the output of `netstat -ani'. - The node-local multicast address in the output of `netstat -rn' should be handled as well. Spotted by: Bernd Walter <ticso__at__cicely7.cicely.de>
* Update to upstream version 2.3fanf2011-01-181-15/+10
| | | | | | | Only significant change is to fix a bu when the output file overwrites the input when the input is redirected. Obtained from: http://dotat.at/prog/unifdef
* Add two more features to cpuset(1):jhb2011-01-142-5/+43
| | | | | | | | | - Add a new -C flag to create a new cpuset and move an existing pid into that set. - Allow 'all' to be specified for a cpu list (e.g. cpuset -s 1 -l all) which maps to the list of all CPUs in the system. MFC after: 2 weeks
* sed: Try hard links to make -i target available continually.jilles2011-01-081-4/+21
| | | | | | | | | | | | | | | | | | | | | When creating a backup file, sed renamed the original before renaming the changed copy into place, leading to a short time when no file with the original name was present (usually only visible on SMP systems). Try creating the backup file using a hard link instead, avoiding this problem. If creating the hard link fails for any reason, fall back to the old rename method. When not creating a backup file, sed already renamed the changed copy onto the original. This remains unchanged. I am not adding the suppression of redundant fchown/fchmod to this commit, because FreeBSD appears to check this in the kernel (for msdosfs at least). PR: bin/153261 Submitted by: Pedro F. Giffuni Reviewed by: dds (older version) Obtained from: Illumos MFC after: 2 weeks
* Retire TARGET_ABI.imp2011-01-071-1/+1
| | | | | | | | | | | | | | | Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces MACHINE_ARCH=mipse[lb] TARGET_ABI=n64. MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated this much, but implemented this to preserve as much of the TARGET_ABI functionality that I could. Since its presence doesn't affect the working cases, I've kept it in for now. Added mips64e[lb] to make universe, so more kernels build. And I think this (finally) closes the curtain on the tbemd tree.
* Fix typo: March -> September.osa2011-01-051-1/+1
|
* Add myself.jpaetzel2011-01-021-0/+1
|
* printf: Do not use sh memory functions in sh builtin.jilles2010-12-291-13/+0
| | | | | | These functions throw exceptions if they fail, possibly causing memory leaks. The normal out-of-memory handling suffices. The INTOFF around almost all of printf prevents memory leaks due to SIGINT.
* Start sentences on a new line to ease life for translators. Tweak thejhb2010-12-281-7/+8
| | | | | | wording in a few places. MFC after: 1 week
* Revert most of r210764, now that mdocml does the rightuqs2010-12-283-6/+6
| | | | | | thing with empty quotation macros. Requested by: Alex Kozlov
* Fix style bug introduced in r216696.ed2010-12-271-1/+2
| | | | Additional indentation caused the line to become longer than 80 columns.
* Document the syntax accepted by the `-M` option.kaiw2010-12-261-0/+129
| | | | Obtained from: elftoolchain
* Improve the description of the `-q` option.kaiw2010-12-261-13/+5
| | | | Obtained from: elftoolchain
* * Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsiskaiw2010-12-261-31/+75
| | | | | | | | | | | section. * Document the `-l`, `-M` and `-S` options. * Improve the text describing the behavior of the `-r` option. * Start a section on standard compliance. * Indicate in the synopsis that the `-S` and `-s` options are mutually exclusive. Obtained from: elftoolchain
* o Fix -u flag description: it takes a username as an argument.maxim2010-12-251-1/+1
| | | | | | PR: docs/153416 Submitted by: Eitan Adler MFC after: 1 week
* Fix typo (Pashka -> Paskha).osa2010-12-253-3/+3
|
* Slightly improve output of lock(1).ed2010-12-251-1/+8
| | | | | | - Remove the /dev/ portion of the TTY name. - In case we use lock -p, print the username that was used to obtain the password hash.
* sh: Make warnings in the printf builtin non-fatal, like in the program.jilles2010-12-201-17/+13
| | | | | | | | The #define for warnx now behaves much like the libc function (except that it uses sh command name and output). Also, it now uses C99 __VA_ARGS__ so there is no need for three different macros for 0, 1 or 2 parameters.
* Add __unusedcharnier2010-12-201-1/+1
|
* Add __unused. Ansi prototypes.charnier2010-12-1920-470/+204
|
* Add __unused. Ansi prototypes.charnier2010-12-191-33/+18
|
* - Signal that data should not be modified.lulf2010-12-182-2/+4
|
* Bring in the relevant changes from NetBSD's 1.31:dougb2010-12-181-3/+3
| | | | | | | | | "Use strlcpy, not strncpy, when the desired semantics are strlcpy's rather than strncpy's." Note: NetBSD's 1.32 is their adoption of our r216206 Obtained from: dholland@NetBSD.org
* Revert r216423 per request from Jilles.delphij2010-12-141-10/+10
| | | | | | | The new behavior prevents us from being able to bail out explicitly on unknown options that we have not implemented. BASH for instance have introduced a '-v' for printf(1) builtin and it seems to be bad to pretend that we supported it and have a script break silently.
* When printf is being used as a sh(1) builtin, it can not calldelphij2010-12-141-3/+1
| | | | | | | exit(3) as pointed out by jilles@ so revert to using return(), also change the return value back to 1 as requested by bde@. This is logically a revert of revision 216422.
* Move sysctl invocation to using a variable that's fully pathed.gordon2010-12-141-2/+3
| | | | | | | This prevents errors for users that don't have /sbin in their PATH. Submitted by: Max Boyarov Approved by: mentor (wes@ implicit)
* We work on ctype's and not only on numbers so set LC_ALL instead ofdelphij2010-12-141-1/+1
| | | | | | | | LC_NUMERIC. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos
* IEEE Std 1003.1-2008, Section 1.4, Utility Description Defaults saysdelphij2010-12-141-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | that when the options section is listed as "None", utility shall recognize "--" as a first argument to be discarded. This implementation is largely based on OpenBSD implementation but we do slightly differently: a) We skip argv[0] as the first step; b) We test whether the next argument is "--" and ignore it. With this change one will get: %printf usage: printf format [arguments ...] %printf -v -v%printf -- -v -v% %printf -- usage: printf format [arguments ...] Which matches the behavior observed on a Debian system but different from the Illumos change.
* Make use of EX_USAGE for usage().delphij2010-12-141-2/+4
|
* The only caller of mknum() provides a char instead of an int, so make itdelphij2010-12-131-2/+2
| | | | | | | | match the definition. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos
* Move locale.h include to the beginning header section as pointed out bydelphij2010-12-131-3/+2
| | | | | | style(9) Submitted by: Pedro F. Giffuni <giffunip tutopia.com>
* FreeBSD committer Dan Moschuk has passed away. Here is his death notice:imp2010-12-131-1/+1
| | | | | | http://www.lifenews.ca/thespec/profile/98251--moschuk-daniel PR: 147479
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-11422-1688/+38
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Bring in the change from OpenBSD's 1.14:dougb2010-12-091-2/+4
| | | | | | | | | | "synchronize synopsis and usage; "-l", "-r", "-s" and "-x" are mutually exclusive; while here, slightly improve spacing in the source code so it fits on a 80-column display again. diff greatly improved by martynas@" Obtained from: sobrado@OpenBSD.org
* printf: Remove support for building as a csh builtin.jilles2010-12-081-8/+2
| | | | | | | | | | The #define BUILTIN was for building as a csh (not tcsh) builtin. Given that csh was replaced by tcsh years ago there is no point in keeping this. The #define SHELL is for building as an sh builtin and is in active use. This commit does not change the /bin/sh and /usr/bin/printf binaries.
* Add myself to calendar.freebsd and committers-ports.dotflo2010-12-071-0/+1
| | | | Approved by: fjoe (mentor)
* Don't write the terminating NUL past end of buffer.jh2010-12-061-1/+1
| | | | | PR: bin/152345 Submitted by: Mateusz Guzik
* Bring in the change from NetBSD 1.28:dougb2010-12-051-3/+3
| | | | | | | | "\\ -> \e" Obtained from: joerg@NetBSD.org Bump .Dd because we're now up to date with the latest NetBSD version
* Bring in the following changes from NetBSD:dougb2010-12-051-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.21 "Document the flags displayed by the default format, and mention their short names. From espie@openbsd via jmc@openbsd." 1.24 "Fix three variable names. From Todd T. Fries via Jason McIntyre." Obtained from: wiz@NetBSD.org (previous 2) 1.25 "Be consistent: document the birthtime field of struct stat for the "B" field specifier." Obtained from: reed@NetBSD.org 1.26 "Drop trailing space." Obtained from: wiz@NetBSD.org 1.27 "Since we have st_birthtime in struct stat, it is in default display." Obtained from: enami@NetBSD.org Purposely skipping the following revisions: 1.22 NetBSD-specific change 1.23 Removal of license clauses 3 and 4, already handled by imp in our r203971
* Bring in the change from NetBSD 1.20:dougb2010-12-051-2/+2
| | | | | | "Make sentence easier to parse. From jsing@openbsd via jmc@openbsd." Obtained from: wiz@NetBSD.org
* Bring in the changes from NetBSD 1.16 that we did not already have.dougb2010-12-051-2/+2
| | | | | | "Some fixes from jmc@openbsd." Obtained from: wiz@NetBSD.org
* Bring in the changes from NetBSD 1.13 that we did not already have, withdougb2010-12-051-4/+9
| | | | | | | | some differences. "Sort options. Use more mdoc macros. Some nit fixes. Bump date." Obtained from: wiz@NetBSD.org
OpenPOWER on IntegriCloud