summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos - remove duplicate "the".brucec2011-02-215-5/+5
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-202-8/+12
| | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
* Replace hard-coded value by Julian2Gregorian converter function.osa2011-02-182-1/+11
|
* Fix the beginning day of the Great Lent, it starts on Monday for 7 weeks ↵osa2011-02-171-2/+6
| | | | | | | before Paskha. Fix the Exaltation of the Holy Cross day. Add more Twelve holidays (dvunadesyatye prazdniki).
* Properly check for errors from waitpid().jhb2011-02-151-4/+4
| | | | | Submitted by: gcooper MFC after: 1 week
* Synthesize the change from NetBSD's 1.33:dougb2011-02-111-1/+5
| | | | | | | "Do not crash if a date cannot be represented (localtime returning NULL), use the Epoch value instead." Obtained from: njoly@NetBSD.org
* Always convert Paskha day from Julian (old) to Gregorian (new) style byosa2011-02-091-2/+2
| | | | adding 13 days. Bug introduced in 1.13 revision.
* Fix Paskha and Paskha-specific holidays.osa2011-02-091-0/+1
|
* Update manpage to remove CRT reference.gjb2011-02-071-2/+2
| | | | | | | | PR: 154441 Submitted by: Ben Haga (bhaga of absoludicrous com) Suggestion by: pluknet Approved by: keramida (mentor) MFC after: 3 days
* - Use LINE_MAX from limits.h as the maximum line length instead ofjh2011-02-071-6/+12
| | | | | | | | | BUFSIZ. Use LINE_MAX * 2 as the buffer size (BSIZE). - Error out if we encounter a line longer than LINE_MAX. The previous behavior was to silently split long lines and produce corrupted output. PR: bin/151384
* Handle EOF when skipping lines.jh2011-02-071-1/+4
|
* Make sys_signame upper case.jilles2011-02-042-2/+2
| | | | | | | | | | | | This matches the constants from <signal.h> with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write. 'kill -l', 'trap', 'trap -l' output is now upper case. In Turkish locales, signal names with an upper case 'I' are now accepted, while signal names with a lower case 'i' are no longer accepted, and the output of 'killall -l' now contains proper capital 'I' without dot instead of a dotted capital 'I'.
* 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
OpenPOWER on IntegriCloud