summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* When in -U mode do avoid setting SUID bits, but do not modify the modebrooks2013-01-311-3/+2
| | | | | | variable so the intended mode can be logged correctly if -M is specified. Sponsored by: DARPA, AFRL
* - Refresh code with latest OpenBSD revisions.delphij2013-01-2914-87/+71
| | | | | | | | | - Remove $DragonFly$ tags as they are using git nowadays and VCS tags will not help merging. - Other changes to Copyright headers to make them consistent with other source code, we intend to fork from this point. Reviewed by: pfg
* - Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromgabor2013-01-2915-0/+4946
| | | | | | | | DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project
* - Show page faults requiring I/O when -s invoked.zont2013-01-281-0/+3
| | | | | Reviewed by: alc MFC after: 2 weeks
* - Show page faults requiring I/O on vmstat display.zont2013-01-281-36/+40
| | | | | Reviewed by: alc MFC after: 2 weeks
* - Remove forgotten commented out debug codegabor2013-01-271-15/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
* - Simplify and unify diagnostic and error message handlinggabor2013-01-271-12/+8
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
* truss: use 'e' flag for fopen instead of fcntl(.., FD_CLOEXEC)mjg2013-01-271-7/+4
|
* truss: if file requested with -o flag could not be opened print the reasonmjg2013-01-271-1/+1
| | | | MFC after: 3 days
* Fix style nit in dtc man page: sentences should start on new lines.theraven2013-01-251-58/+86
| | | | Reported By: joel
* Install the NLS catalog in the C directory rather than en_US.US-ASCIIbrooks2013-01-241-1/+1
| | | | | which is a link to C. This allow the makefs mtree manifest mode to find the file.
* Explicitly include headers that are implicitly included by libstdc++. Fixestheraven2013-01-236-4/+24
| | | | building dtc with libc++.
* Remove documentation of the old -M option.brooks2013-01-221-5/+2
| | | | Sponsored by: DARPA, AFRL
* Remove EOL whitespace.joel2013-01-221-11/+11
|
* Minor mdoc fixes.joel2013-01-221-4/+2
|
* Fix the missing sentence that ended in the middle in the man page for dtc (alsotheraven2013-01-221-1/+4
| | | | spotted by gavin).
* Fix logic error in explicitly specified dtb versions spotted by gavin.theraven2013-01-221-1/+1
|
* Use pluralies() for "entry"/"entries".glebius2013-01-221-1/+1
|
* Import new (BSDL) device tree compiler. Now built by default, so that it can'ttheraven2013-01-2215-0/+5061
| | | | | | | | | | be used on the host system (and not installed on the device, if required). The GPL'd one is still available if there are any devices that need it (make universe passes with it, including kernels that use fdt, but there may be some out-of-tree ones). WITH_GPL_DTC can be used to select the old one, for now. Probably won't be MFC'd, but we'll remove the GPL'd version in head after the new one has had a lot more testing and ship it in 10.0.
* Make "install -l s[ar]" act like "ln -sfh" as intended. This fixesbrooks2013-01-221-1/+14
| | | | | installation of symbolic links where the target is a link is to an existing directory.
* When copying the complement of the string loop to WINT_MAX as we are dealingandrew2013-01-221-1/+2
| | | | | with a wint_t. WINT_MAX and WCHAR_MAX are the same on most architectures except ARM EABI where wint_t is signed and wchar_t is unsigned.
* - Avoid unnecessary strdup()gabor2013-01-201-2/+2
| | | | | Submitted by: ache MFC after: 5 days
* Remove EOL whitespace.joel2013-01-191-2/+2
|
* - Move 'showthreads' check out of fmt.c.jhb2013-01-191-4/+3
| | | | | - Update shadow copy of fmt_argv() prototype in w.c and fix calls for additional parameter.
* Set showthread = 0 for w(1).delphij2013-01-181-0/+1
| | | | X-MFC: together with r245610
* Introduce six new options from NetBSD:brooks2013-01-183-53/+733
| | | | | | | | | | | | | | | | | | * -M <metalog> Log metadata in mtree format. * -D <destdir> Log paths relative to <destdir>. * -h <hash> Log digest of type <hash>. * -T <tags> Specify which mtree tags to log. * -l <linkflag> Create hard or symbolic links (allows logging). * -U Install without root privileges (owner, group, mode, and flags can be logged via -M NOTE: In the interest of compatibility with NetBSD and because it is the obvious letter, the nearly useless -M option (disable mmap) has been repurposed. Sponsored by: DARPA, AFRL Obtained from: NetBSD Reviewed by: bz
* Remove default support for 1aout section manpages. There haven't beenbrooks2013-01-162-2/+2
| | | | any since at least July 2002.
* Add myself as a port committer (with eadler@ and bdrewery@ as mentors).dbn2013-01-151-0/+1
| | | | | | While in the repository, add myself to calendar.freebsd. Approved by: eadler/bdrewery (mentor)
* Remove stray tabs.jlh2013-01-141-2/+2
| | | | | | Submitted by: kib Approved by: kib (mentor) MFC after: 1 week
* Allow commands without any additional arguments, as stated in thejlh2013-01-141-2/+2
| | | | | | | | | manpage. While here, exit early when there is nothing to do. PR: 168415 Submitted by: Zhihao Yuan (initial version) MFC after: 1 week Approved by: kib (mentor)
* procstat: only one mode flag can be specified, but required check for 'i'mjg2013-01-121-2/+2
| | | | | | and 'j' modes was missing. Fix that. MFC after: 3 days
* Implement the -N <dbdir> option which allows an alternate passwd andbrooks2013-01-113-30/+61
| | | | | | | | | group file to be used. This is useful for installing on systems where a user or group does not currently exist. Sponsored by: DARPA, AFRL Obtained from: NetBSD MFC after: 5 days
* Use calloc() to get zeroed memory.delphij2013-01-081-3/+2
| | | | MFC after: 1 month
* Following r226271, allow disabling lzma support with "WITHOUT_LZMA_SUPPORT".obrien2013-01-082-5/+19
| | | | | | Correct r226271 which should have used WITHOUT_BZIP2_SUPPORT per r166255. Obtained from: Juniper Networks
* Fix a signed/unsigned comparison when wchar_t is unsigned by casting theandrew2013-01-061-1/+1
| | | | wchar_t to a wint_t.
* Fix a segfault when bsdgrep -i is given an empty pattern string.markj2013-01-051-1/+1
| | | | | | | PR: bin/172865 Reviewed by: gabor Approved by: emaste (co-mentor) MFC after: 1 week
* - Fix handling of the case when multiple patterns are specified in a singlegabor2013-01-051-2/+12
| | | | | | | | command line argument, separated by newlines PR: bin/173673 Submitted by: ache MFC after: 1 week
* Follow calloc convention in other code, this is functionally identicaldelphij2013-01-051-1/+1
| | | | to its previous form.
* Constify arguments. While I'm there, also add a static for usage().delphij2013-01-041-3/+3
| | | | MFC after: 2 weeks
* Add missing DPADD.antoine2013-01-011-0/+1
|
* - Use BN_set_negative() and BN_is_negative() instead of subtracting orkevlo2012-12-303-42/+66
| | | | | | | comparing to zero. - Fix fractional number exponentiation, especially for negative exponents. Obtained from: OpenBSD
* Upgrade our copy of llvm/clang to 3.2 release.dim2012-12-231-4/+4
| | | | | | | | | | Release notes for llvm: http://llvm.org/releases/3.2/docs/ReleaseNotes.html Release notes for clang: http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html MFC after: 2 weeks
* Make struct fstate aligned to the same as an int as its pointer is cast toandrew2012-12-221-1/+1
| | | | | an int pointer in args.c. This fixes an issue with ARM where the struct will be byte aligned but an int pointer must be 4 byte aligned.
* - Change the memory heuristics to an actually working onegabor2012-12-201-19/+15
| | | | | Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com> Prodded by: kib
* Make bsdgrep behave as gnugrep and as documented: -m should only stopeadler2012-12-203-3/+4
| | | | | | | | | reading the specific file, not any file. Tested by: frogs (irc) Reviewed by: gabor Approved by: cperciva (implicit) MFC after: 1 week
* POSIX requires that non-existent or null arguments be treated as if aeadler2012-12-181-1/+1
| | | | | | | | | | | | | zero argument were supplied. Add a regression test to catch this case as well. PR: bin/174521 Submitted by: Daniel Shahaf <danielsh@elego.de> (pr) Submitted by: Mark Johnston <markjdb@gmail.com> (initial patch) Reviewed by: jilles Approved by: cperciva (implicit) MFC after: 3 weeks
* - Use unsigned int for values obtained with sysctlbyname(). This fixesgabor2012-12-172-4/+9
| | | | | | | sparc64 performance problems. Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com> Tested by: trasz
* Use even more conventional conversion routines.grog2012-12-131-1/+1
| | | | Reported by: peterj@
* Reluctantly remove one of the most extraordinary numeric conversiongrog2012-12-131-7/+5
| | | | routines I have ever seen and replace with something far more boring.
* Give users a hint when their locate database is too small.eadler2012-12-101-1/+3
| | | | | | | Reviewed by: wblock, gcooper Reviewed by: "Lowell Gilbert" <lgfbsd@be-well.ilk.org> Approved by: cperciva (implicit) MFC after: 3 weeks
OpenPOWER on IntegriCloud