summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE}des2011-10-132-5/+7
| | | | | | instead of $(uname -m). Pointed out by: nyan@
* Make kdump compile cleanly at WARNS level 6, with one exception: thedes2011-10-123-28/+44
| | | | | | | | | | ipfilter headers contain a duplicated function declaration. Turn off -Werror to allow kdump to compile in spite of this. It would be neat to be able to turn off -Werror on a file-by-file basis... PR: bin/161478 Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Add myselfgleb2011-10-121-0/+1
| | | | Approved by: mdf (mentor)
* Add symlink from clang to clang-cpp, so you can use CPP=clang-cpp indim2011-10-121-2/+4
| | | | | | Makefiles. Also add a manpage symlink for it. MFC after: 3 days
* Add manpage symlink for clang++(1).dim2011-10-121-0/+1
| | | | | PR: docs/149051 MFC after: 3 days
* - Fix an off-by-one bug in addgroup().delphij2011-10-121-2/+2
| | | | | | | | - Fix the error message when setgid() failed. PR: bin/161509 Submitted by: Jeremy Huddleston <jeremyhu apple com> MFC after: 2 weeks
* - Fix counting of match limit (-m)gabor2011-10-121-1/+1
| | | | | Reported by: Nali Toja <nalitoja@gmail.com> Approved by: delphij (mentor)
* - Use getprogname() instead of __prognamegabor2011-10-114-22/+43
| | | | | | | | - Allow disabling bzip2 support with WITHOUT_BZIP2 - Fix handling patterns that start with a dot - Remove superfluous semicolon Approved by: delphij (mentor)
* Add a new trace point, KTRFAC_CAPFAIL, which traces capability checkdes2011-10-114-11/+53
| | | | failures. It is included in the default set for ktrace(1) and kdump(1).
* The previous commit did not fix the issue since it did not prevent signdes2011-10-111-8/+8
| | | | | | extension. Cast to u_register_t first, then to uintmax_t. Submitted by: bde@
* Cast to unsigned for %#jx.des2011-10-111-1/+1
| | | | Noticed by: jh@
* Incorporate recent changes from NetBSD. Most notable change is the additiondelphij2011-10-104-33/+233
| | | | | | of support of decompressing xz files. Obtained from: NetBSD
* Address some of bde@'s concerns with the new code.des2011-10-081-72/+71
|
* Teach kdump(1) to decode capability bitmasks.des2011-10-082-0/+9
| | | | MFC after: 3 weeks
* Fix the dependency issue properly by a) moving kdump_subr.c to the frontdes2011-10-081-6/+2
| | | | of the SRCS list and b) listing kdump_subr.h in DPSRCS.
* Bring ioctlname() in line with all the other *name() functions, whichdes2011-10-082-31/+21
| | | | | | | actually print the name (or the numeric value, if they can't figure out the correct name) instead of just returning a pointer to it. Also, since ioctl numbers are not and probably never will be unique, drop support for using a switch statement instead of an if/else chain.
* I appreciate the logic behind using a (void) cast to indicate that thedes2011-10-082-155/+155
| | | | | | | | return value is intentionally ignored, but frankly, all it does is get in the way of the code. Also fix a few other incorrect casts, such as (void *)malloc(foo) and passing signed values to %x.
* Fix casting.des2011-10-082-74/+75
|
* Whitespace.des2011-10-081-90/+90
|
* C has had swicth statements for 40 years or so. It's about time wedes2011-10-081-93/+143
| | | | started using them.
* Sort and line up.des2011-10-081-38/+37
|
* 1) Some of the #defines or enums for which we auto-generate namingdes2011-10-084-72/+37
| | | | | | | | | | | | | functions may be wider than int, so use intmax_t throughout. Also add missing casts in printf() calls. 2) Clean up some of the auto-generated code to improve readability. 3) Auto-generate kdump_subr.h. Note that this requires a semi-ugly hack in the Makefile to make sure it is generated before make(1) tries to build kdump.c, or preprocess it for 'make depend'. MFC after: 3 weeks
* Remove extraneous WARNS=7.ed2011-10-081-2/+0
| | | | | | | WARNS above 6 has no use. Also, all of usr.bin is also built with WARNS=6 by default. Discussed with: edwin
* Add myself.jceel2011-10-071-0/+1
| | | | Approved by: wkoszek (mentor)
* Fix build on i386 and arm.delphij2011-10-061-1/+1
| | | | | Tested with: make universe Pointy hat to: delphij
* Update BSD grep to the latest development version. It has some codegabor2011-10-0516-521/+2527
| | | | | | | | | | | | | backported that was written for the TRE integration project in Google Summer of Code 2011. This is a temporary solution until the whole regex library is not replaced so that BSD grep development can continue and the backported code gets some review and testing. This change only improves scalability slightly, there is no big performance boost yet but several minor bugs have been found and fixed. Approved by: delphij (mentor) Sposored by: Google Summer of Code 2011 MFC after: 1 week
* latin1 -> utf8des2011-10-041-1/+1
|
* Handle the situation where fixups_close() has been called but more fixupsadrian2011-10-041-1/+1
| | | | | | | | | | are still available on the queue. Without this, the fixups producer/consumer pipeline will artifically terminate before all of the fixups have been processed, leading to incomplete updates and generally quite unhappy users. Submitted by: mux
* Update the comment to reflect what is actually going on.adrian2011-10-041-1/+1
| | | | Submitted by: mux
* Correct column with for device numbers made in previous change.ed2011-10-011-1/+1
| | | | The device number should be displayed using only five columns -- not eight.
* Fix a few grammar and mdoc nits in script.1gjb2011-09-291-14/+19
| | | | | | | PR: 161088 Submitted by: Ben Kaduk ( kaduk % mit ! edu ) MFC after: 1 week Need-MFC: 225809
* - I am not the oldest committer alive (yet)eadler2011-09-281-1/+1
| | | | Approved by: bapt (mentor)
* - fix whitespace issue in calendareadler2011-09-281-1/+1
| | | | | | | - add a n after \ Submitted by: brueffer Approved by: bapt (mentor)
* Get rid of major/minor number distinction.ed2011-09-284-9/+8
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* - add myself to calendareadler2011-09-281-0/+1
| | | | Approved by: sahil (mentor)
* Sync RCS id with NetBSD, this was intentionally omitted from the advisorydelphij2011-09-281-1/+1
| | | | | | in order to reduce patchset size. MFC after: 3 days
* Include limits.h instead of sys/limits.h to improve portability.crees2011-09-281-2/+1
| | | | | | | PR: bin/150772 Submitted by: Derrick Brashear <shadow@gmail.com> Reviewed by: Garrett Cooper <yanegomi@gmail.com> Approved by: cognet
* MFprojects/hid:mav2011-09-284-142/+383
| | | | | | | | | | | | | | Import the rest of HID improvements from the branch: - improve report descriptor parser in libusbhid to handle several kinds of reports same time; - add to the libusbhid API two functions wrapping respective kernel IOCTLs for reading and writing reports; - tune uhid IOCTL interface to allow reading and writing arbitrary report, when multiple supported by the device; - teach usbhidctl to set output and feature reports; - make usbhidaction support all the same item names as bhidctl. Sponsored by: iXsystems, inc.
* Fix handling of corrupt compress(1)ed data. [11:04]bz2011-09-282-18/+36
| | | | | | | | | | Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix
* Document the fact that passive mode is now the default.des2011-09-272-8/+10
| | | | Update copyright dates and strip my middle name.
* When script(1) reads EOF from input it starts spinning on zero-bytetrociny2011-09-272-12/+29
| | | | | | | | | | | | | | | | reads eating 100% CPU. Fix this by skipping select on STDIN after reading EOF -- permanently if STDIN is not terminal and for one second if it is. Also after reading EOF from STDIN we have to pass it to the program being scripted. The previous approach was to write zero bytes into the pseudo-terminal. This does not work because zero-byte write does not have any effect on read. Fix this by sending VEOF instead. Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org> Discussed with: kib, Chris Torek <chris.torek@gmail.com> Approved by: kib MFC after: 1 week
* Use fseeko() instead of fseek(). The rest of the code is off_t-aware,des2011-09-271-2/+2
| | | | | | | | but the use of fseek() means fetch(1) can't correctly resume a transfer that was interrupted past the 2 GB mark. Pointed out by: ache@ MFC after: 3 weeks
* Followup to r225599: the fseek() was a no-op since the file was openeddes2011-09-271-8/+8
| | | | | | | | | in append mode. Open it in read-write mode instead. Also move the fseek up one level to cover the (unlikely but not impossible) case where the server accepts ranges but does not send a Content-Size header. PR: bin/117277 MFC after: 3 weeks
* When resuming an HTTP download, we failed to verify that the rangedes2011-09-151-0/+14
| | | | | | | | | | | | | | | | returned by the server matched what we requested, and blindly appended what we received to what we already had. This could go two ways: if the delivered offset was higher than expected, the local file would contain duplicate data, while if it was lower than expected, there would be data missing from the middle of the file. Furthermore, if the transfer was interrupted again, each subsequent attempt would compound the error. Fix the first problem by restarting the transfer from scratch if there is a gap, and the second by explicitly seeking to the correct location in the local file so as to overwrite any duplicated data. PR: bin/117277 Approved by: re (kib) MFC after: 3 weeks
* It seems when I added code for affine unit changes to units, Idwmalone2011-09-151-3/+5
| | | | | | | forgot to tell the man page we could now convert Celsius to Fahrenheit. Approved by: re (kib) MFC after: 1 month
* Fix typos in error messages.brueffer2011-09-131-3/+3
| | | | | | Found by: kib Approved by: re (kib) MFC after: 1 week
* Fix csup to allow case insensitive server names in the auth file,brueffer2011-09-131-1/+1
| | | | | | | | | just as advertised in the manpage. PR: 158652 Submitted by: stephen Approved by: re (kib) MFC after: 1 week
* Fix nfsstat(1) so that it prints out correct stats for thermacklem2011-08-231-23/+23
| | | | | | | | | new NFS server when the "-e" option is not used. The bug was that srvrpccnt[] was being indexed by NFSPROC_XXX when it needs to be indexed by NFSV4OP_XXX. Tested by: hrs Approved by: re (bz)
* Fix nfsstat(1) so that it prints out correct stats for thermacklem2011-08-231-18/+18
| | | | | | | | | | new NFS server when the "-w" option is used. The problem was spotted by hrs@ during testing where srvrpcnt[] must be indexed by NFSV4OP_XXX and not NFSPROC_XXX. Submitted by: hrs Approved by: re (bz) MFC after: 2 weeks
* - Fix exclusion of directories from a recursive searchgabor2011-08-171-14/+5
| | | | | | | - Use FTS_SKIP for exclusion instead of custom code Submitted by: ttsestt@gmail.com Approved by: re (kib), delphij (mentor)
OpenPOWER on IntegriCloud