aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos - remove duplicate "the".Rebecca Cran2011-02-215-5/+5
| | | | | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.Dimitry Andric2011-02-202-8/+12
| | | | | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg. Notes: svn path=/head/; revision=218893
* Replace hard-coded value by Julian2Gregorian converter function.Sergey A. Osokin2011-02-182-1/+11
| | | | Notes: svn path=/head/; revision=218797
* Fix the beginning day of the Great Lent, it starts on Monday for 7 weeks ↵Sergey A. Osokin2011-02-171-2/+6
| | | | | | | | | | before Paskha. Fix the Exaltation of the Holy Cross day. Add more Twelve holidays (dvunadesyatye prazdniki). Notes: svn path=/head/; revision=218771
* Properly check for errors from waitpid().John Baldwin2011-02-151-4/+4
| | | | | | | | Submitted by: gcooper MFC after: 1 week Notes: svn path=/head/; revision=218707
* Synthesize the change from NetBSD's 1.33:Doug Barton2011-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 Notes: svn path=/head/; revision=218535
* Always convert Paskha day from Julian (old) to Gregorian (new) style bySergey A. Osokin2011-02-091-2/+2
| | | | | | | adding 13 days. Bug introduced in 1.13 revision. Notes: svn path=/head/; revision=218473
* Fix Paskha and Paskha-specific holidays.Sergey A. Osokin2011-02-091-0/+1
| | | | Notes: svn path=/head/; revision=218471
* Update manpage to remove CRT reference.Glen Barber2011-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 Notes: svn path=/head/; revision=218421
* - Use LINE_MAX from limits.h as the maximum line length instead ofJaakko Heinonen2011-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 Notes: svn path=/head/; revision=218411
* Handle EOF when skipping lines.Jaakko Heinonen2011-02-071-1/+4
| | | | Notes: svn path=/head/; revision=218410
* Make sys_signame upper case.Jilles Tjoelker2011-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'. Notes: svn path=/head/; revision=218285
* Fix typo in example getopt(1) script: $i vs $1 [1]Ulrich Spörlein2011-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 Notes: svn path=/head/; revision=217890
* Add -H flag to print thread id.Dmitry Chagin2011-01-262-3/+15
| | | | Notes: svn path=/head/; revision=217873
* Remove dead code.John Baldwin2011-01-251-1/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=217858
* Use test(1) operators and test for the catpage not being older than theUlrich Spörlein2011-01-251-2/+2
| | | | | | | | | | | | manpage. Identical mtimes (as generated by buildworld for these files) precluded catpages from working. Approved by: gordon Notes: svn path=/head/; revision=217831
* While printing out the WSID and CPU ID only the first time it appears forRobert Watson2011-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 Notes: svn path=/head/; revision=217776
* Fix off-by-one whitespace error in netstat -Q workstream listing.Robert Watson2011-01-241-4/+4
| | | | | | | | | Reported by: bz MFC after: 3 days Sponsored by: Juniper Networks Notes: svn path=/head/; revision=217775
* Touch up the sample memory usage numbers a bit, to avoid wrappingGiorgos Keramidas2011-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 Notes: svn path=/head/; revision=217746
* Update to upstrea version 2.5.6.Tony Finch2011-01-211-16/+25
| | | | | | | | | | Detect IO errors properly. Write #line directives to the correct output stream. Obtained from: http://dotat.at/prog/unifdef Notes: svn path=/head/; revision=217698
* - Hide the internal scope address representation of the KAME IPv6Hajimu UMEMOTO2011-01-203-21/+35
| | | | | | | | | | | 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> Notes: svn path=/head/; revision=217642
* Update to upstream version 2.3Tony Finch2011-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 Notes: svn path=/head/; revision=217550
* Add two more features to cpuset(1):John Baldwin2011-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 Notes: svn path=/head/; revision=217416
* sed: Try hard links to make -i target available continually.Jilles Tjoelker2011-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 Notes: svn path=/head/; revision=217133
* Retire TARGET_ABI.Warner Losh2011-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. Notes: svn path=/head/; revision=217123
* Fix typo: March -> September.Sergey A. Osokin2011-01-051-1/+1
| | | | Notes: svn path=/head/; revision=217025
* Add myself.Josh Paetzel2011-01-021-0/+1
| | | | Notes: svn path=/head/; revision=216895
* printf: Do not use sh memory functions in sh builtin.Jilles Tjoelker2010-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. Notes: svn path=/head/; revision=216809
* Start sentences on a new line to ease life for translators. Tweak theJohn Baldwin2010-12-281-7/+8
| | | | | | | | | wording in a few places. MFC after: 1 week Notes: svn path=/head/; revision=216769
* Revert most of r210764, now that mdocml does the rightUlrich Spörlein2010-12-283-6/+6
| | | | | | | | | thing with empty quotation macros. Requested by: Alex Kozlov Notes: svn path=/head/; revision=216756
* Fix style bug introduced in r216696.Ed Schouten2010-12-271-1/+2
| | | | | | | Additional indentation caused the line to become longer than 80 columns. Notes: svn path=/head/; revision=216737
* Document the syntax accepted by the `-M` option.Kai Wang2010-12-261-0/+129
| | | | | | | Obtained from: elftoolchain Notes: svn path=/head/; revision=216719
* Improve the description of the `-q` option.Kai Wang2010-12-261-13/+5
| | | | | | | Obtained from: elftoolchain Notes: svn path=/head/; revision=216717
* * Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsisKai Wang2010-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 Notes: svn path=/head/; revision=216716
* o Fix -u flag description: it takes a username as an argument.Maxim Konovalov2010-12-251-1/+1
| | | | | | | | | PR: docs/153416 Submitted by: Eitan Adler MFC after: 1 week Notes: svn path=/head/; revision=216698
* Fix typo (Pashka -> Paskha).Sergey A. Osokin2010-12-253-3/+3
| | | | Notes: svn path=/head/; revision=216697
* Slightly improve output of lock(1).Ed Schouten2010-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. Notes: svn path=/head/; revision=216696
* sh: Make warnings in the printf builtin non-fatal, like in the program.Jilles Tjoelker2010-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. Notes: svn path=/head/; revision=216606
* Add __unusedPhilippe Charnier2010-12-201-1/+1
| | | | Notes: svn path=/head/; revision=216585
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-1920-470/+204
| | | | Notes: svn path=/head/; revision=216564
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-33/+18
| | | | Notes: svn path=/head/; revision=216562
* - Signal that data should not be modified.Ulf Lilleengen2010-12-182-2/+4
| | | | Notes: svn path=/head/; revision=216542
* Bring in the relevant changes from NetBSD's 1.31:Doug Barton2010-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 Notes: svn path=/head/; revision=216512
* Revert r216423 per request from Jilles.Xin LI2010-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. Notes: svn path=/head/; revision=216447
* When printf is being used as a sh(1) builtin, it can not callXin LI2010-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. Notes: svn path=/head/; revision=216439
* Move sysctl invocation to using a variable that's fully pathed.Gordon Tetlow2010-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) Notes: svn path=/head/; revision=216426
* We work on ctype's and not only on numbers so set LC_ALL instead ofXin LI2010-12-141-1/+1
| | | | | | | | | | | LC_NUMERIC. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos Notes: svn path=/head/; revision=216424
* IEEE Std 1003.1-2008, Section 1.4, Utility Description Defaults saysXin LI2010-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. Notes: svn path=/head/; revision=216423
* Make use of EX_USAGE for usage().Xin LI2010-12-141-2/+4
| | | | Notes: svn path=/head/; revision=216422
* The only caller of mknum() provides a char instead of an int, so make itXin LI2010-12-131-2/+2
| | | | | | | | | | | match the definition. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos Notes: svn path=/head/; revision=216418