summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* fgetc returns an int not a char.bz2016-05-021-2/+1
| | | | | Found by: powerpc builds failing due to comparing with EOF raised: "comparison is always false due to limited range of data type"
* usr.bin: minor spelling fixes on comments.pfg2016-05-016-6/+6
| | | | No functional change.
* localedef(1): minor spelling fixes on comments.pfg2016-05-014-4/+4
| | | | No functional change.
* Remove useless calls to basename().ed2016-05-011-3/+2
| | | | | | | | | | | | | | There are a couple of places in the source three where we call basename() on constant strings. This is bad, because the prototype standardized by POSIX allows the implementation to use its argument as a storage buffer. This change eliminates some of these unportable calls to basename() in cases where it was only added for cosmetical reasons, namely to trim argv[0]. There's nothing wrong with setting argv[0] to the full path. Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D6093
* When checking for binary file, check if ch is not EOF only ch actually gotbapt2016-04-301-1/+3
| | | | | | a value assigned Reported by: pfg
* Update from subversion 1.9.2 to 1.9.4.dim2016-04-302-4/+4
| | | | | | | | | | | | | | | This contains only bug fixes, no new features. The repository format is also unchanged from 1.9.2. Full list of changes between 1.9.4 and earlier versions: https://svn.apache.org/repos/asf/subversion/tags/1.9.4/CHANGES Note that the two security issues fixed in 1.9.4 (CVE-2016-2167 and CVE-2016-2168) do not affect the version of Subversion in the FreeBSD base system, since neither SASL nor Apache modules are enabled. Relnotes: yes MFC after: 2 weeks
* import sdiff(1) from GSoC 2012bapt2016-04-2936-0/+3357
| | | | | | | | | | | | | | | | | | | | | | | | | | | Import sdiff(1) from the diff version written by Raymond Lai, improved during GSoC 2012 by Jesse Hagewood. Compared to the version done in during that summer of code: - Remove the zlib frontend: zsdiff - Compatible output (column size and separators) with GNU sdiff Compared to GNU sdiff in ports: - The only difference is padding using spaces vs tabs Compared to OpenBSD and NetBSD import: - Implement missing options (including long options) from GNU sdiff - Improved support for the edition mode (signal handling) - Output visually compatible with GNU sdiff: size of columns While here import regression tests from NetBSD adapted to fit the output as expected by GNU sdiff Reviewed by: emaste (in part) Obtained from: OpenBSD, NetBSD, GSoC 2012 Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5981 Differential Revision: https://reviews.freebsd.org/D6032 (diff with NetBSD version) Differential Revision: https://reviews.freebsd.org/D6033 (diff with OpenBSD version)
* Fix including Kyuafile in packaged base system.gjb2016-04-291-1/+2
| | | | | | | | | | | | Fix a related typo while here. Note, this change results in the Kyuafile inclusion in the runtime package, which needs to be fixed, however addresses the PR as far as I can tell in my tests. PR: 209114 Submitted by: ngie Sponsored by: The FreeBSD Foundation
* Small typo.pfg2016-04-281-1/+1
|
* Use MIN() macro from sys/param.h.araujo2016-04-271-1/+1
| | | | MFC after: 2 weeks.
* Use MIN() macro from sys/param.h.araujo2016-04-271-1/+1
| | | | MFC after: 2 weeks.
* Use macro MIN() from sys/param.h.araujo2016-04-271-1/+1
| | | | MFC after: 2 weeks.
* Use MIN() macro from sys/param.h.araujo2016-04-271-2/+2
| | | | MFC after: 2 weeks.
* Use MIN() instead of MAX() as the previous syntax was wrote in a weird andaraujo2016-04-261-1/+1
| | | | | | | confused way: "prec > 9 ? 9 : prec". Submitted by: pfg, ngie and luke <luke.tw@gmail.com> MFC after: 2 weeks.
* Example RIPE whois query with options and spaces.fanf2016-04-251-6/+26
| | | | | Since it is used in the example, mention the -- option in the synopsis even though it is a universal standard, and tweak to fit it on one line.
* Try to make gcc builds happy again by removing a redundant declaration.bz2016-04-251-1/+0
|
* Adjust a type from r267490.pfg2016-04-241-1/+1
| | | | | Independent of the maximum length, the return type for strnlen(3) is always size_t.
* patch(1): avoid signed integer overflow when debugging.pfg2016-04-241-2/+2
| | | | | | | | Integer i is used to index p_end of type LINENUM (actually long). Match the types. MFC after: 5 days
* GC duplicate define.sobomax2016-04-231-2/+0
|
* Improve performance in a few key areas:sobomax2016-04-2321-192/+1037
| | | | | | | | | | | | | | | | | | | | o Split the compression across several worker threads. By default, "several" matches number of CPUs, capped at 24 for sanity when running on a very big hardwares. Provide option to set that number manually; o Fix bug inherited from the mkulzma (R.I.P) which degraded already slow LZMA compression even further by calling function to release compression state after processing each block. It is neither documented as required nor actually required by the LZMA library. This caused spree of system calls to release memory and then map it again for every block. LZMA compression is more than 2x faster after this change alone; o Record time it takes to do compression and report throughput achieved. o Add simple first-level 256 entry hash table for de-dup code, so it's not becoming a bottleneck at big files.
* Use roundup2() macro from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use MIN() macro from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* kernel: use our nitems() macro when it is available through param.h.pfg2016-04-211-5/+5
| | | | | | No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current
* elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeemaste2016-04-217-7/+7
| | | | | | | | It's provided by sys.mk so there's no need to derive it from ${.CURDIR}. Suggested by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5998
* Bring a little more compability with GNU units 2.12eadler2016-04-212-14/+34
| | | | | | | | | | | - notionally support a 'history file' flag. This doesn't do much now, but is there to prevent scripts written against GNU units from breaking - correctly gracefully quit rather than exit (this will make it easier to support a history file in the future) - remove the "t" flag from fopen which was there to support windows. We have not supported windows since at the latest, the introduction of capsicum.
* Plug memory leaksbapt2016-04-202-0/+5
| | | | | Reported by: Coverity CID= 1338535, 1338536, 1338542, 1338569, 1338570
* Fix bad checking of the return of realloc(3)bapt2016-04-201-1/+1
| | | | | | Reported by: Coverity CID: 1007335 MFC after: 3 days
* Fix typo: actually test the return of strchr(3)bapt2016-04-201-1/+1
| | | | | | Reported by: Coverity CID: 1007335 MFC after: 3 days
* Partially revert the change on r298325 where there is anaraujo2016-04-201-1/+1
| | | | | | | (-1) casted to a pointer. Submitted by: pfg MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-201-2/+2
| | | | | | Small cosmetic change. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-203-10/+10
| | | | | | gethostbyname(3) will return NULL for error status. MFC after: 2 weeks.
* Fix build breakage introduced by r298253.delphij2016-04-191-1/+1
|
* Rename units.lib -> definitions.unitseadler2016-04-193-3/+167
| | | | | - this matches GNU units 2.12 add ISO country codes from units 2.12
* Remove pathnames.headler2016-04-192-34/+1
| | | | | - it only holds a single constant - it doesn't exist in the GNU variant
* Use NULL instead of 0 for pointers.araujo2016-04-192-4/+4
| | | | | | realloc will return NULL in case it cannot allocate memory. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainemaste2016-04-187-7/+7
| | | | | | | This produces a nicer path in debug info and build logs. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* User NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | getservent(3) returns NULL on EOF or error. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | fopen(3) will return NULL in case it cannot open the STREAM. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-4/+4
| | | | | | realloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Use NULL for pointers.araujo2016-04-181-1/+1
| | | | | | | strrchr(3) will return NULL if the character does not appears in the string. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-183-7/+7
| | | | | | Also malloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Use NULL instead of 0.araujo2016-04-181-3/+3
| | | | | | strtok(3) will return NULL when no more tokens remain. MFC after: 2 weeks.
* Note that mklocale(1) and colldef(1) are no longer usedbapt2016-04-172-2/+16
| | | | | | mklocale and colldef has been replaced by localedef, but they have to be kept until 10.2 is EOL for mklocale (it has been added to 10.3 as a bootstrap tools) and until 10.3 is EOL for colldef (it has never been added to bootstrap tools)
* Use the nitems() macrobapt2016-04-171-2/+4
|
* mail: Don't truncate mtime of mailbox to microseconds.jilles2016-04-171-9/+9
|
* Fix a mandoc -Tlint warningbapt2016-04-161-1/+1
|
OpenPOWER on IntegriCloud