summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* - Fix -l and -L by really surpressing output and just showing filenamesgabor2010-07-251-1/+1
| | | | | Submitted by: swell.k@gmail.com Approved by: delphij (mentor)
* - Fix --color behaviour to only output color sequences if stdout is a ttygabor2010-07-253-32/+60
| | | | | | | | | | | | or if forced mode is specified [1] - While here, add some alternative names for the options and make then case-insensitive - Fix -q and -l behaviour [2] - Some small changes to make the code easier to review Submitted by: swell.k@gmail.com [1], dougb [2] Approved by: delphij (mentor)
* Fix crashes when using grep -R:delphij2010-07-232-11/+16
| | | | | | | | - Explicitly pre-zero memory for fts_open parameters. - Don't test against directory patterns when we are testing direct leaf of current directory. While I'm there plug a few of memory leaks.
* - Add Russian catalog [1]gabor2010-07-233-4/+19
| | | | | | | | | - Fix two minor nits in manpage [2] - style.Makefile(5) Submitted by: pluknet <pluknet at gmail.com> [1], Alex Kozlov <spam@rm-rf.kiev.ua> [2] Reviewed by: delphij
* Add BSD grep to the base system and make it our default grep.gabor2010-07-2215-0/+2568
| | | | | | | | | | | | | | | | | | | | | | | | Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC), lower memory usage than GNU grep, GNU compatibility, BSD license. TODO: Performance is somewhat behind GNU grep but it is only significant for bigger searches. The reason is complex, the most important factor is that GNU grep uses lots of optimizations to improve the speed of the regex library. First, we need a modern regex library (practically by adopting TRE), add support for GNU-style non-standard regexes and then reevalute the performance issues and look for bottlenecks. In the meantime, for those, who need better performance, it is possible to build GNU grep by setting WITH_GNU_GREP. Approved by: delphij (mentor) Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/), freegrep (http://github.com/howardjp/freegrep) Sponsored by: Google SoC 2008 Portbuild tests run by: kris, pav, erwin Acknowledgements to: fjoe (as SoC 2008 mentor), everyone who helped in reviewing and testing
* Build clang libraries by default with -fno-exceptions and withrpaulo2010-07-221-0/+1
| | | | | | | | | -fno-rtti. The clang libaries that really use exceptions and virtual functions can enable LLVM_REQUIRES_EH and LLVM_REQUIRES_RTTI respectively. This saves space on the resulting binaries and follows what's being done upstream. Submitted by: Dimitry Andric <dimitry at andric.com>
* Upgrade our Clang in base to r108428.ed2010-07-202-28/+91
| | | | | | | | | This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
* Partially revert r209312, restoring ability to fit "stray irqX" names intomav2010-07-191-6/+10
| | | | into available 10 characters by dropping "irq" in the middle of string.
* - Add myself to committers-src.dottijl2010-07-171-0/+1
| | | | | | - Add myself to calendar.freebsd Approved by: kib (mentor)
* Nervously welcoming myself to the family.jsa2010-07-161-0/+1
| | | | | | | Add myself to all the appropriate places, upload my pgp key, and announce my arrival to the FreeBSD world. Approved by: wxs@ (mentor)
* Remove more extraneous ;s.emaste2010-07-153-3/+3
|
* - Sort list of trace points.jhb2010-07-141-3/+3
| | | | | | - Note that 'y' (sysctl requests) is in the default set of trace points. MFC after: 3 days
* Fix spelling.attilio2010-07-141-5/+5
| | | | | | | Sponsored by: Sandvine Incorporated Submitted by: b.f. <bf1783 at googlemail dot com> MFC after: 2 weeks X-MFC: 210063
* Fix the way the segments are included in the gcore outputs (with theattilio2010-07-144-11/+30
| | | | | | | | | | | | | | | | | | | default invokation): - Right now if segments are not writable are not included. Remove this. - Right now if a segment is mapped with NOCORE the check is not honoured. Change this by checking the newly added flag, from libutil, KVME_FLAG_NOCOREDUMP. Besides that, add a new flag (-f) that forces a 'full' dump of all the segments excluding just the malformed ones. This might be used very carefully as, among the reported segments, there could be memory mapped areas that could be vital to program execution. Sponsored by: Sandvine Incorporated Discussed with: kib Reviewed by: emaste Tested by: Sandvine Incorporated MFC after: 2 weeks
* Remove extraneous ;emaste2010-07-121-1/+1
|
* Teach truss and xlint how to operate on 64-bit PowerPC systems.nwhitehorn2010-07-122-0/+378
|
* Fix an error in the EXAMPLES section of getopt(1), which is based onbcr2010-07-071-3/+3
| | | | | | | | | | | | | | the same fix present in NetBSD. Note: the getopt man page contains more antique information like this. An overhaul of the man page and/or sync with NetBSD would be the right thing to do. But since this is out of the scope of the PR, I'll leave it as it is for now. PR: docs/133118 Submitted by: Oleg A. Mamontov (oleg at mamontov dot net) Discussed with: jilles@ MFC after: 2 weeks
* Various changes to make locate compilable with WARNS=6. Note that theregavin2010-06-282-12/+13
| | | | | | | | is still one issue on FreeBSD/arm (signed vs unsigned char) which prevents actually bumping this to WARNS=6 - I'm still considering the correct solution to this issue. Tested by: make universe
* Make WARNS=6 safe, mainly by casting to intmax_t and printing with %jugavin2010-06-282-16/+17
| | | | | | | where needed. Also, fix bad indentation on lines already affected by the above changes. Tested with: make universe
* Make WARNS=6 safe.gavin2010-06-282-5/+4
| | | | Tested by: make universe
* Make the second example command more closely match the demo output, and asgavin2010-06-271-2/+2
| | | | | a side effect more clearly show the change in command lines between the first and second example invocations.
* Fix transfer statistics in the "send file" case - The conditional usedgavin2010-06-271-4/+1
| | | | | | | | | | | | | to print the stats were using an uninitialised variable. [1] Fix trasnfer statistics in the "receive file" case - the statistics struct was being cleared both before and after the initial connect to the remote server. As a result, the printed time and calculated bandwidth covers the time to connect ad well as the time to transfer the file. This may not be ideal, but now at least matches the "send file" case. Found by: clang static analyser [1] Reviewed by: imp
* Fix core dump when server fails to respond.gavin2010-06-271-1/+4
| | | | Reviewed by: imp
* Add a -t switch for masking output that's above or below certain thresholds.brian2010-06-202-3/+28
| | | | | | | | | This switch makes it a lot easier to locate problem areas when a process is threatening to consume all of your disk space. PR: 144192 Submitted by: gk MFC after: 3 weeks
* Variable 'getmap' is unused.gavin2010-06-191-2/+2
| | | | Found by: clang static analyzer
* Do not print first digits of IRQ number if whole number doesn't fit.mav2010-06-181-12/+11
|
* - Update GCC reference from 3.3 to 4.2 [1]gabor2010-06-171-3/+4
| | | | | | - Add reference to c99(7) Submitted by: stefanf
* Add a new column to the output of vmstat -z to indicate the numbersbruno2010-06-151-4/+5
| | | | | | | | | | | | | of times the system was forced to sleep when requesting a new allocation. Expand the debugger hook, db_show_uma, to display these results as well. This has proven to be very useful in out of memory situations when it is not known why systems have become sluggish or fail in odd ways. Reviewed by: rwatson alc Approved by: scottl (mentor) peter Obtained from: Yahoo Inc.
* err() takes a printf format.ed2010-06-151-2/+2
| | | | | Submitted by: Pawel Worach Spotted by: clang
* If the compressed data is larger than the uncompressed,kientzle2010-06-142-2/+13
| | | | | | | | | | report the compression ratio as 0% instead of displaying nonsense triggered by numeric overflow. This is common when dealing with uncompressed files when the I/O blocking causes there to be small transient differences in the accounting. Thanks to: Boris Samorodov
* These files are no longer required since r207607gavin2010-06-123-355/+0
|
* Install tblgen so partial / progressive builds are still possible.des2010-06-121-1/+1
|
* Use same table markup as in hexdump.1uqs2010-06-111-6/+6
|
* Several style fixes as prompted by bde@.delphij2010-06-101-28/+22
| | | | | While I'm there, loosen the st_nlink check and fix grammar for 1 extra links.
* Make the char *n_name member of struct nlist 'const'.bz2010-06-101-1/+1
| | | | | | | | | | This avoids errors or __DECONST() from places with higher WARNS levels. Adjust a local cache variable in ipcs to const as well to compile in the new world order. Suggested by: jhb Reviewed by: jhb, kib, brueffer (man)
* - Axe out signal handling code, the shell will take care of thisgabor2010-06-101-10/+0
| | | | | Suggested by: jilles Approved by: delphij (mentor)
* - Fix style(9)gabor2010-06-101-2/+2
| | | | | Submitted by: ed Approved by: delphij (mentor)
* Hook clang into the build on i386/amd64/powerpc.rdivacky2010-06-091-0/+5
| | | | Approved by: ed (mentor)
* Import the build makefiles for clang/LLVM.rdivacky2010-06-094-0/+70
| | | | Approved by: ed (mentor)
* Check return value from archive_read_new().delphij2010-06-091-1/+3
| | | | | | | Found with: Coverity Prevent(tm) CID: 8462 Reviewed by: des MFC after: 1 week
* fix memset() calls.edwin2010-06-091-2/+2
| | | | | Found with: Coverity Prevent(tm) CID: 8531
* Follow up revision 208888 with purely ident changes.delphij2010-06-071-6/+6
| | | | MFC after: 1 week
* Correct a bug in gzip(1): make sure that initialize isb with fstat() ondelphij2010-06-071-3/+9
| | | | | | | | input file before using it. PR: bin/147275 Submitted by: thomas MFC after: 1 week
* - Fix signal handling in bc/dc. Now Ctrl-C terminates the execution.gabor2010-06-062-36/+5
| | | | | Requested by: gk (via private mail) Approved by: delphij (mentor)
* - Fig segmentation faultgabor2010-06-061-1/+6
| | | | Submitted by: Hizel Ildar <hizel@vyborg.ru> (via current@)
* Make clang happier by removing unused assignments.edwin2010-06-051-16/+16
|
* Fix warnings about uninitialized variables.edwin2010-06-051-0/+2
| | | | | | | It was mostly harmless since strftime() only used %a and %b anyway. Found with: Coverity Prevent(tm) CID: 7769
* Fix: when unable to parse the sequence string, erase everything.edwin2010-06-051-2/+2
| | | | | Found with: Coverity Prevent(tm) CID: 7888
* Fix memory-leak at the processing of multiple calendars.edwin2010-06-051-1/+4
| | | | | Found with: Coverity Prevent(tm) CID: 7085
* Properly check the return value of chdir, even if it is a "thisedwin2010-06-051-1/+2
| | | | | | | should not happen" case. Found with: Coverity Prevent(tm) CID: 4932
OpenPOWER on IntegriCloud