summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bring in the change from NetBSD 1.12:dougb2010-12-051-0/+7
| | | | | | "document default format." Obtained from: yamt@NetBSD.org
* Bring in the following changes from NetBSD. See the discussion at:dougb2010-12-051-7/+10
| | | | | | | | | | | | | http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44128 1.29 "Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it successfully prints mtimes after 2038." 1.30 "Improve previous with comments." Obtained from: dholland@NetBSD.org (both)
* Fix an "unused variable" error that gets us all the way to WARNS=6dougb2010-12-052-4/+3
|
* Bring in the update from NetBSD 1.28:dougb2010-12-051-25/+26
| | | | | | | | | "Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)" Because of code differences I had to hand-apply parts of the patch, so responsibility for errors goes to me. Obtained from: lukem@NetBSD.org
* Bring in the update from NetBSD 1.19, the documentation of readlink -fdougb2010-12-051-4/+17
| | | | | | | | | | "PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't grok -f, and there's no alternative (+fix) Patch applied with minor tweak (%y -> %R, as it was already taken) plus some nits from myself. Thanks!" Obtained from: elad@NetBSD.org
* Bring in a new feature, adding a -f option to readlink to print the pathdougb2010-12-051-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the target, similar to realpath(1). See the discussion at: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=34662 This brings in the following changes: 1.24 "PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't grok -f, and there's no alternative (+fix) Patch applied with minor tweak (%y -> %R, as it was already taken) plus some nits from myself. Thanks!" Obtained from: elad@NetBSD.org 1.25 "Fix a segfault when doing 'stat -f %R' on the stdin file handle, instead fake the filename '(stdin)' like the %N format." Obtained from: mlelstv@NetBSD.org 1.27 "The ofmt variable is actually a bit mask (not the character that was in the format string) so that we can "or" it with the bits in the formats variable. This fixes the missing " -> " in front of the real path (when you use %SR). Also, the ?: needs another space." Obtained from: atatat@NetBSD.org I am purposely omitting the following changes: 1.23 A humanize_number(3) clone that should better be implemented by actually using humanize_number(3) 1.26 This is the removal of license clause 3 and 4, already handled by imp in r203971
* Bring in the change from NetBSD 1.22:dougb2010-12-051-3/+3
| | | | | | | | | | | | | "Fix a trivial truncation case, and eliminate a corner case that might print a nul character." I am purposely bypassing the following versions: 1.19 A build infrastructure change that does not apply to us 1.20 A feature I am not interested in, but don't object if someone else wants to pick it up 1.21 A build infrastructure change that does not apply to us Obtained from: atatat@NetBSD.org
* Add my own documentation for the change in our r216196, aka NetBSD's 1.18dougb2010-12-051-0/+4
| | | | | | For -L if stat(2) fails, fall back to lstat(2). .Dd purposely not bumped because more changes are coming.
* Bring in the change from NetBSD 1.18:dougb2010-12-051-3/+13
| | | | | | | | | | "If using stat (the -L flag) and it fails, fall back to lstat(). It may be the case that we're examining a broken symlink, and anything is better than nothing." The changes in 1.14 through 1.17 were not relevant to us. Obtained from: atatat@NetBSD.org
* Move most of the remaining USD/PSD/SMM papers into share/docuqs2010-12-0428-10045/+0
|
* Add ability to decompress different format manual pages.gordon2010-12-031-25/+79
| | | | | | Add support for .so directive in manual pages. Approved by: mentor (wes@)
* Decode IPC_CREAT and IPC_EXCL for semget(2).delphij2010-12-021-0/+2
| | | | | | PR: bin/152781 Submitted by: Anton Yuzhaninov <citrin citrin ru> MFC after: 2 weeks
* Don't error out while searching for empty directories.kevlo2010-12-021-1/+1
| | | | Submitted by: Bakul Shah <bakul at bitblocks dot com>
* Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generatekaiw2010-11-282-1/+5
| | | | | | | a deterministic archive symbol table (i.e. timestamp for the symbol table member header is set to 0). Submitted by: Erik Cederstrand
* Fix typo.brucec2010-11-271-1/+1
|
* Pet make checkdpadd.uqs2010-11-251-0/+1
|
* Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operationnwhitehorn2010-11-231-4/+4
| | | | | | | | of locate(1) on systems on which char is unsigned by default (ARM and PowerPC). Reported by: Paul Mather MFC after: 4 days
* Restore the (state) and \n printout when not using -T.gnn2010-11-221-2/+3
| | | | | Pointed out by: brucec@ MFC after: 3 weeks
* hdr.elf.e_ident[EI_OSABI] is not a bitmask so '==' should been used.brucec2010-11-221-2/+2
| | | | Reported by: Artem Belevich <fbsdlist at src.cx>
* Fix some more warnings found by clang.brucec2010-11-222-0/+2
|
* Add the ability for GDB to printout the thread name along with otherattilio2010-11-221-0/+11
| | | | | | | | | | | | | | | | | | | | thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
* Don't generate input() since it's not used.brucec2010-11-221-1/+1
|
* Various syntactic tweaks to satisfy style(9). No change to execution.mckay2010-11-211-14/+14
| | | | Submitted by: gcooper@
* xargs can be fooled by exiting children that it did not start, causingmckay2010-11-211-5/+118
| | | | | | | | | | it to kick off a new command before the previous has finished, resulting in corrupted (interleaved) output. It is also fooled by non-exiting children it did not start, failing to exit until all extraneous children have exited. This patch makes xargs keep track of children it starts, ignoring pre-existing ones.
* Remove unused variablekevlo2010-11-201-1/+1
|
* sh: Add printf builtin.jilles2010-11-192-7/+34
| | | | | | | | | | | | | | | | | This was removed in 2001 but I think it is appropriate to add it back: * I do not want to encourage people to write fragile and non-portable echo commands by making printf much slower than echo. * Recent versions of Autoconf use it a lot. * Almost no software still wants to support systems that do not have printf(1) at all. * In many other shells printf is already a builtin. Side effect: printf is now always the builtin version (which behaves identically to /usr/bin/printf) and cannot be overridden via PATH (except via the undocumented %builtin mechanism). Code size increases about 5K on i386. Embedded folks might want to replace /usr/bin/printf with a hard link to /usr/bin/alias.
* Fix fd leakkevlo2010-11-191-0/+1
| | | | MFC after: 3 days
* Close file and directory descriptorskevlo2010-11-191-0/+3
| | | | MFC after: 3 days
* When netstat was run with -i/-I and -w1 to produce running counters, the idroprstone2010-11-181-0/+1
| | | | | | | field printed an absolute value rather than the delta from the last value Approved by: emaste (mentor) MFC after: 1 week
* Add new, per connection, statistics for TCP, including:gnn2010-11-174-18/+39
| | | | | | | | | | Retransmitted Packets Zero Window Advertisements Out of Order Receives These statistics are available via the -T argument to netstat(1). MFC after: 2 weeks
* Memory stats are reported in bytes, not pages.brucec2010-11-131-10/+10
| | | | | | PR: docs/151283 Submitted by: Bas Smeelen <b.smeelen at ose.nl> MFC after: 3 days
* Set FD_CLOEXEC for the output file only when the file has been specifiedjh2010-11-131-6/+7
| | | | | | | | | with the -o option. Setting the flag for stderr (the default) could cause the traced process to redirect stderr to a random file. PR: bin/152151 Submitted by: ashish MFC after: 5 days
* Add my birthday to the calendar so everyone can send me presents.zack2010-11-101-0/+1
| | | | Approved by: zml (mentor)
* Unbreak the test target by re-generating the initial scanneruqs2010-11-092-183/+207
| | | | | | | | using an updated flex(1) binary. Also ignore the changing $FreeBSD$ ID lines when doing the diff. This needs additional obfuscation, to not upset the svn precommit hooks :/
* Fix typos.brucec2010-11-091-3/+3
| | | | | PR: bin/148894 Submitted by: olgeni
* Fix the build on 64-bit hosts. WARNS=6 fails on them.obrien2010-11-091-2/+2
|
OpenPOWER on IntegriCloud